Thread: SOS
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default SOS

Ignore that last suggestion - I wasn't thinking clearly.

"JMB" wrote:

Or maybe

=SUMPRODUCT(--(Sheet1!A1:E10=A4:E4)*(Sheet1!F1:F10))/5
or
=SUMPRODUCT(--(Sheet1!A1:E10=TEXT(A4:E4,"00"))*(Sheet1!F1:F10))/5

depending on how your number codes are formatted (numeric or text). I
assumed the codes on your source sheet are text format.


"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