I have cell D5 to O5, which can be zero or greater.
I want sum of D5 to O5 in P5, if any value of this range is not blank.
Else it should be blank (not zero)
Note : if all the values are blank then it should not show result as zero.
I have cell D5 to O5, which can be zero or greater.
I want sum of D5 to O5 in P5, if any value of this range is not blank.
Else it should be blank (not zero)
Note : if all the values are blank then it should not show result as zero.
try this
=if(counta(D5:O5)>0,sum(d5:o5),"")
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Thank you FDibbins. Its working.
Good stuff, happy to help![]()
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
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. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks