Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Space Elf
 
Posts: n/a
Default Creating Array formulas with multiple criteria

I need to use either sumif or match or whatever using multiple criteria. The
data is on 2 different worksheets.
Each sheet has 4 columns of data: Name, Company, Date, Charge
Because of the sheet layout, I'm not using lables
I need to search the second sheet and add the charges of every row that
matches the Name, Company and Date for each line on the first sheet.
Example: First Sheet
| Name | Company | Date | Charge |
| Joe | Shop | Mar 3 | $100.00 |
| Bill | Office | Mar 3 | $50.00 |
| Tom | Shop | Dec 6 | $100.00 |
Second Sheet
| Joe | Shop | Mar 3 | $25.00 |
| Bill | Office | Dec 6 | $50.00 |
| Joe | Shop | Mar 3 | $75.00 |
| Tom | Shop | Dec 6 | $100.00 |
For the first row of the first sheet, the search will add the charges from
rows 1 & 3 on the second sheet because the first three values match.

Any ideas out there?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default Creating Array formulas with multiple criteria

Hi

D2=SUMPRODUCT(--('First Sheet'!$A$2:$A$1000=A2),--('First
Sheet'!$B$2:$B$1000=B2),--('First Sheet'!$C$2:$C$1000=C2),'First
Sheet'!$D$2:$D$1000)
Adjust ranges for your layout, and copy the formula down. You can enchance
the formula above, defining all ranges referred to as dynamic named ranges,
so the formula will adjust automatically whenever rows are added/deleted on
sheet 'First Sheet'.

Arvi Laanemets



"Space Elf" wrote in message
...
I need to use either sumif or match or whatever using multiple criteria.

The
data is on 2 different worksheets.
Each sheet has 4 columns of data: Name, Company, Date, Charge
Because of the sheet layout, I'm not using lables
I need to search the second sheet and add the charges of every row that
matches the Name, Company and Date for each line on the first sheet.
Example: First Sheet
| Name | Company | Date | Charge |
| Joe | Shop | Mar 3 | $100.00 |
| Bill | Office | Mar 3 | $50.00 |
| Tom | Shop | Dec 6 | $100.00 |
Second Sheet
| Joe | Shop | Mar 3 | $25.00 |
| Bill | Office | Dec 6 | $50.00 |
| Joe | Shop | Mar 3 | $75.00 |
| Tom | Shop | Dec 6 | $100.00 |
For the first row of the first sheet, the search will add the charges from
rows 1 & 3 on the second sheet because the first three values match.

Any ideas out there?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ikr
 
Posts: n/a
Default Creating Array formulas with multiple criteria

"Space Elf" wrote in message
...
I need to use either sumif or match or whatever using multiple criteria.
The
data is on 2 different worksheets.
Each sheet has 4 columns of data: Name, Company, Date, Charge
Because of the sheet layout, I'm not using lables
I need to search the second sheet and add the charges of every row that
matches the Name, Company and Date for each line on the first sheet.
Example: First Sheet
| Name | Company | Date | Charge |
| Joe | Shop | Mar 3 | $100.00 |
| Bill | Office | Mar 3 | $50.00 |
| Tom | Shop | Dec 6 | $100.00 |
Second Sheet
| Joe | Shop | Mar 3 | $25.00 |
| Bill | Office | Dec 6 | $50.00 |
| Joe | Shop | Mar 3 | $75.00 |
| Tom | Shop | Dec 6 | $100.00 |
For the first row of the first sheet, the search will add the charges from
rows 1 & 3 on the second sheet because the first three values match.

Any ideas out there?


Use SUMPRODUCT to test multiple criteria (SUMIF used simply can use only one
criterion).

See this:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Ian


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Brad Excel Worksheet Functions 9 October 17th 05 09:00 PM
apply cell names to formulas in multiple worksheets BBurrows Excel Worksheet Functions 4 July 1st 05 05:35 PM
COUNTIF or SUMPRODUCT counting multiple criteria Peo Sjoblom Excel Worksheet Functions 0 May 31st 05 11:40 PM
Multiple Criteria IF Nesting BethB Excel Worksheet Functions 2 May 17th 05 12:14 AM


All times are GMT +1. The time now is 06:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"