COMPARE VALUEW IN 2 COLOUMNS and return the sum of the corresponding in Third Coloumn

devlin

New Member
Joined
Apr 12, 2011
Messages
3
COMPARE VALUEW IN 2 COLOUMNS and return the sum of the corresponding in Third Coloumn

EMP ID to be checked in 1st coloumn in worksheet 1. ALL IDs in coloumn in worksheet2. SUM of Coloumns corresponding to query in worksheet 2.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
COMPARE VALUEW IN 2 COLOUMNS and return the sum of the corresponding in Third Coloumn

EMP ID to be checked in 1st coloumn in worksheet 1. ALL IDs in coloumn in worksheet2. SUM of Coloumns corresponding to query in worksheet 2.

Looks like you want...

Sheet2:

=SUMPRODUCT(SUMIF($A$2:$A$400,Sheet1!$A$2:$A$20,$B$2:$B$400))

This formulas matches column A on Sheet2 with values in A2:A20 on Sheet1 and sums the associated numbers from B2:B400.

Adjust to suit.
 
Upvote 0
Hi the range provided is diff for columns A and B.
Let me try to rephrase my query and add a bit more to it.
Compare values in Column A in Worksheet 1 with values in worksheet 2, and then for a certain condition in column C of worksheet say=703000. Sum all corresponding values in column D,
Thanks,,
 
Upvote 0
Hi the range provided is diff for columns A and B.
Let me try to rephrase my query and add a bit more to it.
Compare values in Column A in Worksheet 1 with values in worksheet 2, and then for a certain condition in column C of worksheet say=703000. Sum all corresponding values in column D,
Thanks,,

Still not fully specified...

What is the range in column A on Sheet1?

Values in worksheet 2: In which range?

What is the range in column C and on which worksheet for which 703000 must hold?

Column D on which sheet?
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top