Return blank instead of 0

GingaNinga

New Member
Joined
Sep 1, 2017
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hello

I have a sum if in 3 columns that looks at the values of other columns, and returns 1 if YES, 0 if NO, and blank if N/A

I need to sum the total of all three of these columns, and return a blank if all three are blank.

In the screenshot below, I would like row 2 - column 4 to return a blank value (all other calculations on the other rows are correct)

The current formula in column 4 is: =SUMIF(AH7:AJ7,"<>",AH7:AJ7)

2022-03-01_10-03-06.jpg
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,891
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=IFERROR(1/(1/SUM(AH7:AJ7)),"")
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,891
Office Version
  1. 365
Platform
  1. Windows
What is the formula in AH7:AJ7 & do you need it, or is it just helper columns?
 

GingaNinga

New Member
Joined
Sep 1, 2017
Messages
24
Office Version
  1. 365
Platform
  1. Windows
What is the formula in AH7:AJ7 & do you need it, or is it just helper columns?
The formulas are:
AH7 =IF(AA7="N/A","",IF(AA7="YES",1,0))
AI7 =IF(AB7="N/A","",IF(AB7="YES",1,0))
AJ7 =IF(AC8="N/A","",IF(AC8="YES",1,0))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,891
Office Version
  1. 365
Platform
  1. Windows
Thanks for that, can you also answer my other question?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,891
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=IF(CONCAT(AH7:AJ7)="","",SUM(AH7:AJ7))
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,891
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,176,616
Messages
5,904,032
Members
435,068
Latest member
StacyJ01

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
Top