Thanks:  0
Likes:  0

# Thread: sumif comparing columns ???

1. I need to compare one column of numerical data on one worksheet with another column in a different worksheet. Then, where the numbers are the same I need the corresponding numbers from a third column totalling.
Eg
Sheet1..........Sheet2
Col A...........Col A.....Col B
(If the contents of the range of cells in column A of Sheet 1 equal the contents of the range of cells in column A of Sheet 2 - then sum all the corresponding cells in column B of sheet 2)
Any ideas would be greatly appreciated.

2. Not quite enough information, but sounds like a CSE or array formula so check out http://www.cpearson.com/excel/array.htm

HTH
Rocky...

3. On 2002-03-27 07:47, rollo wrote:
I need to compare one column of numerical data on one worksheet with another column in a different worksheet. Then, where the numbers are the same I need the corresponding numbers from a third column totalling.
Eg
Sheet1..........Sheet2
Col A...........Col A.....Col B
(If the contents of the range of cells in column A of Sheet 1 equal the contents of the range of cells in column A of Sheet 2 - then sum all the corresponding cells in column B of sheet 2)
Any ideas would be greatly appreciated.
Try in Sheet2:

=SUMPRODUCT((Sheet1!A2:A40=A2:A40),B2:B40)

4. Thanks for the post, Rocky E.
Have looked at the link but, while =SUM(IF(A1:A10=B1:B10,1,0)) looks a possibility it only returns the number of cells in one range which are equal to their counterparts in the other range. I need a sum of the actual corresponding values from another column.

5. Oops sorry Aladin - just spotted your post. Will check it out. Many thanks.

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•