![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 43
|
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 |
|
Board Regular
Join Date: Feb 2002
Location: North Alabama, USA
Posts: 105
|
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 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
=SUMPRODUCT((Sheet1!A2:A40=A2:A40),B2:B40) |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Feb 2002
Posts: 43
|
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 |
|
New Member
Join Date: Feb 2002
Posts: 43
|
Oops sorry Aladin - just spotted your post. Will check it out. Many thanks.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|