Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array | Excel Worksheet Functions | |||
apply cell names to formulas in multiple worksheets | Excel Worksheet Functions | |||
COUNTIF or SUMPRODUCT counting multiple criteria | Excel Worksheet Functions | |||
Multiple Criteria IF Nesting | Excel Worksheet Functions |