I have been trying to create a formula that decides whether a row matches a criteria, and then sums data in the row based on a second criteria. I have tried my luck with LOOKUP
,VLOOKUP
, HLOOKUP
, and INDEX
, but have not figured out a correct formula. The most common error I get back is #Value
when the sum would take place.
Example:
Let's say that the formula is in Q2. The formula needs to be able to match up A123 with the row A-123-4 (A2) and then sumif the row as long as the cells in that row are within the proper month MONTH($B$11:$I$11)=1
What I made initially was this:
{=SUM(IF(MONTH($B$11:$I$11)=1,$B2:$I2,0))}
The problem is that both of these are tables, so if the information gets rearanged using a filter, the data shifts. How can I get the formula to determine which row is the proper row to sumif?
mmm
or are they string text? Same with the ones in Q:AB? – Scott Craner