gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I have a formula that looks down column B to find a match and then adds the values across its row and sums its values by Years.
I have a new requirement that is sort of the same. In the above when it looks down column B it stops there and adds the years. If the value it searches for in B is listed two or more times, it doesnt add all the values. It stops at a Match.
My new situation needs it to add evrytime it finds the match down column B more like a SumIf than a Match formula.
Is this possible, or should I give up trying to alter this formula and find another way to get to my solution. I can find other ways but they are not very efficient. I am creating new tables and them doing a sumif........
Any help or suggestions are appreciated!
=IF(ISERROR(SUMPRODUCT(--(YEAR('Estimated Hrs & ODC'!$F$3:$FA$3)=H$7),INDEX('Estimated Hrs & ODC'!$F$6:$FA$1036,MATCH(CONCATENATE($C$5," ",$B10),'Estimated Hrs & ODC'!$B$6:$B$1036,0),0))),0,SUMPRODUCT(--(YEAR('Estimated Hrs & ODC'!$F$3:$FA$3)=H$7),INDEX('Estimated Hrs & ODC'!$F$6:$FA$1036,MATCH(CONCATENATE($C$5," ",$B10),'Estimated Hrs & ODC'!$B$6:$B$1036,0),0)))
I have a new requirement that is sort of the same. In the above when it looks down column B it stops there and adds the years. If the value it searches for in B is listed two or more times, it doesnt add all the values. It stops at a Match.
My new situation needs it to add evrytime it finds the match down column B more like a SumIf than a Match formula.
Is this possible, or should I give up trying to alter this formula and find another way to get to my solution. I can find other ways but they are not very efficient. I am creating new tables and them doing a sumif........
Any help or suggestions are appreciated!
=IF(ISERROR(SUMPRODUCT(--(YEAR('Estimated Hrs & ODC'!$F$3:$FA$3)=H$7),INDEX('Estimated Hrs & ODC'!$F$6:$FA$1036,MATCH(CONCATENATE($C$5," ",$B10),'Estimated Hrs & ODC'!$B$6:$B$1036,0),0))),0,SUMPRODUCT(--(YEAR('Estimated Hrs & ODC'!$F$3:$FA$3)=H$7),INDEX('Estimated Hrs & ODC'!$F$6:$FA$1036,MATCH(CONCATENATE($C$5," ",$B10),'Estimated Hrs & ODC'!$B$6:$B$1036,0),0)))