Hello, I am trying to find a formula that will conditionally sum a column of data (i.e. a sumif) based on whether the data is associated with (across from) a cell that matches a list of criteria from another tab. I've used a sumproduct formula that i've found elsewhere on another post.
The current formula reads:
=SUMPRODUCT(--(ISNUMBER(MATCH('Lookup Sheet'!$B1:$B1000,Criteria!A2:A14,0))),'Lookup Sheet'!$D1:$D1000)
My criteria are in a list A2:A14, the column to search in is in column B and with the associated data i'm looking to sum is in column D on 'Lookup Sheet'.
The catch is i'd only like the formula to sum if it finds a match to one of the criteria if its the 1st occurance of that criteria. So right now the formula i'm using returns double the answer i'm looking for for certain criteria matches, e.g. "landscaping" because it occurs twice in the list i'm searching through.
I've attached an example of what i'm trying to do with the current formula in place on the "criteria" tab on another post. Link below. The data i'm trying to conditionally sum based on potential matches to the multiple criteria is on the tab called look-up sheet.
http://www.excelforum.com/excel-gen...eria-with-only-1st-occurance.html#post2439611
Many thanks,
Eric
The current formula reads:
=SUMPRODUCT(--(ISNUMBER(MATCH('Lookup Sheet'!$B1:$B1000,Criteria!A2:A14,0))),'Lookup Sheet'!$D1:$D1000)
My criteria are in a list A2:A14, the column to search in is in column B and with the associated data i'm looking to sum is in column D on 'Lookup Sheet'.
The catch is i'd only like the formula to sum if it finds a match to one of the criteria if its the 1st occurance of that criteria. So right now the formula i'm using returns double the answer i'm looking for for certain criteria matches, e.g. "landscaping" because it occurs twice in the list i'm searching through.
I've attached an example of what i'm trying to do with the current formula in place on the "criteria" tab on another post. Link below. The data i'm trying to conditionally sum based on potential matches to the multiple criteria is on the tab called look-up sheet.
http://www.excelforum.com/excel-gen...eria-with-only-1st-occurance.html#post2439611
Many thanks,
Eric
Last edited: