Excel: Formula for Sum and Matching Criteria

What formula can I use that will take the sum of data on sheet 2 and place it on sheet 1 if a criteria is met?

For example, I want a sum of ABC Company's revenue pulled from sheet 2 and have the sum placed on sheet 1 in the row for ABC Company, and the same for XYZ Company.

Sheet 1

Company

Revenue

ABC Company

 

XYZ Company

 

Sheet 2

Customer

Revenue

ABC Company

$24,030.00

ABC Company

$1,105.00

ABC Company

$0.00

ABC Company

$28,080.00

ABC Company

$0.00

ABC Company

$1,104.00

ABC Company

$1,250.00

ABC Company

$0.00

XY Z Company

$1,380.00

XY Z Company

$4,120.00

XY Z Company

$304.00

XY Z Company

$353.00

XY Z Company

$420.00

XY Z Company

$183.00

|

Dear respected Jack4z,

Good day! Thank you for posting to Microsoft Community. We are happy to help you.

As per your description,

 

=SUMIF(Sheet2!A:A, A2, Sheet2!B:B)

Image

If there is any misunderstanding, I apologize and please feel free to post back to us with more detailed information for better understanding and guiding you further.

Appreciate your patience and understanding and thank you for your time and cooperation.

Sincerely,

Waqas Muhammad

• Beware of Scammers posting fake Support Numbers here.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi,

You may create a Pivot Table as well.

Regards,

Ashish Mathur
www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Ms query

sql:

select Customer,sum(Revenue) from Sheet1 group by Customer;

Customer

sum(Revenue)

ABC Company

55569

XY Z Company

6760

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi respected Jack4z,

I'm writing a follow up this case, and I haven’t received any information from you, may I know have you checked above reply? Feel free to post back if you need further assistance.

Have a nice day and stay safe 😊

Best wishes

Waqas Muhammad

• Beware of Scammers posting fake Support Numbers here.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 23, 2024 Views 26 Applies to: