Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi JMB,
Thank you for your prompt response. I did try out that. I didn't explain correctly - apologies mate. The 5 sets of codes of a line item in Sheet 1 need to be compared from many rows in Sheet 2, and sum up all the rows in sheet 2 where ALL 5 cells in sheet 1 exactly match! I really got myself into a pickle here mate. Any help is greatly appreciated. Please see Both the tables: SHEET 1 WBS Code - Cost Report 01 03 01 01 00 00 01 03 01 02 00 00 01 03 01 03 00 00 01 03 01 04 00 00 01 03 01 05 00 00 01 03 01 06 00 00 01 03 01 07 00 00 01 03 01 08 00 00 SHEET 2 WBS Code - Change Order Log 01 03 07 04 00 11 01 03 07 04 00 10 01 03 07 04 00 09 01 03 07 04 00 06 01 03 07 04 00 12 01 03 07 04 30 00 01 01 02 03 00 00 01 03 01 07 00 00 01 03 01 08 00 00 As you see, one row from 1 row of Sheet 1 need to be compared against many in Sheet 2, and sum up all the $ amount from Sheet 2 (L19:L65), and return the sum to each of the line item in sheet 1 where all 6 cells match. Thanks again mate. Cheers, Raj "JMB" wrote: Assuming the codes are on Sheet1 in A1:E10, the amounts you want to sum are on Sheet1 F1:F10 and the codes you are looking for are on Sheet2 A1:E1, try entering this in Sheet2 F1: =SUMPRODUCT(--(Sheet1!A1:A10&Sheet1!B1:B10&Sheet1!C1:C10&Sheet1! D1:D10&Sheet1!E1:E10=A1&B1&C1&D1&E1),Sheet1!F1:F10 ) Change ranges and sheet names as needed, but unless you have XL2007, you cannot use entire columns (ie A:A or A1:A65536). "Raj" wrote: , spread acrossHi Folks, Am new to this forum. I have a problem with comparing b/w 5 sets of cells on two different worksheets and pulling in the sume. For e.g., any line item in this cost report has a unique 10 character ID (2 characters each spread across 5 cells). This is the Cost account for a particular line item. I have about 200 line items in this cost report. Now this sheet needs to be linked to another worksheet (Change order log) to bring in total change orders against one particular line item. So the task at hand for me is to compare b/w 5 cells in one sheet to the corresponding 5 cells in another sheet, and return the sum of all the rows where the 5 cells match exactly. Hope some of the experts here can drop a line. Any help is appreciated. Thank you in advance. Raj. P.S. Please see the typical columns to compare. WBS Code 01 03 01 01 00 01 03 01 02 00 01 03 01 03 00 01 03 01 04 00 01 03 01 05 00 01 03 01 06 00 01 03 01 07 00 01 03 01 08 00 |