Morning all,
I'm struggling to incorporate blank cells as a criteria in a SUMIF formula. I've attached an example of the data I'm working with.
Thanks in advance,
Snook
Morning all,
I'm struggling to incorporate blank cells as a criteria in a SUMIF formula. I've attached an example of the data I'm working with.
Thanks in advance,
Snook
Last edited by The_Snook; 10-17-2016 at 05:53 AM.
Try this:
=SUMIF($A$2:$A$21,"",$B$2:$B$21)
Incorporated like this:
=IF(D2="",SUMIF($A$2:$A$21,"",$B$2:$B$21),SUMIF($A$2:$A$21,D2,$B$2:$B$21))
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Cheers AliGW. The problem I've got is this criteria forms part of a larger SUMIFS formula so If I were to use this approach the formula would be quite extensive. Not a problem though I'll use SUMPRODUCT instead. I was just confused as to why it wasn't working.
Thanks,
Snook
You're welcome! It seems like one of Excel's little peculiarities.
You might also consider
=SUMIF($A$2:$A$21,D2&"",$B$2:$B$21)
Don
Please remember to mark your thread 'Solved' when appropriate.
Looks like a top tip to me xlnitwit, nice one!
Snook
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks