IF + SUMIF help please

LearningExcel86

New Member
Joined
Jul 26, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hi, I have a list of data that shows clients who may or may not be in a group. If not in a group the group column shows blank. Each client has a total and I am looking for a formula to calculate each groups total (which I have as =IF(D2=D1,””,SUMIF(D:D,D2,E:E)) which calculates the groups, but the blank group totals are coming up as zero as it is grouping all the blanks together as one. I need it to show the blanks as the singular amount. Can anyone help please?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
See if this does as required,
Excel Formula:
=IF(D2="",E2,IF(D2=D1,"",SUMIF(D:D,D2,E:E)))
 
Upvote 0
Solution
Would you mind sharing some sanitized sample data. If the group is blank, you could maybe refer to the cliënt number of name.

Edit: Or what @jasonb75 suggest. He saw the data through the question.
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,631
Members
449,241
Latest member
NoniJ

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top