IFS formula returns zero. How do I get the cell to remain blank?

muad'ebe

New Member
Joined
Jun 12, 2002
Messages
18
The formula I am using -

=IFS($AD$28=1,'Hourly Rates'!$C$7,$AD$28=2,'Hourly Rates'!$K$7,$AD$28=3,'Hourly Rates'!$S$7,$AD$28=4,'Hourly Rates'!$AA$7,$AD$28=11,'Hourly Rates'!$AI$7,$AD$28=12,'Hourly Rates'!$AQ$7,$AD$28=13,'Hourly Rates'!$AY$7,$AD$28=14,'Hourly Rates'!$BG$7)

Sometimes the returned value is zero, and is entered into the cell as "0". I would like the cell to remain blank when the value returned is zero. Does anyone know how to modify/add to the formula to leave the cell blank instead of having a zero in it? (when value retuned is zero)

Thank you!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If you just want it to LOOK blank, then you can apply a special number format to the cell, which will make zero values appear blank.
 
Upvote 0
The easiest way would be to change the formatting of the cell, taking advantage of custom formatting:

0;-0;
for money:
$0.00;-$0.00;
 
Upvote 0
How about
Excel Formula:
=IFERROR(1/(1/IFS($AD$28=1,'Hourly Rates'!$C$7,$AD$28=2,'Hourly Rates'!$K$7,$AD$28=3,'Hourly Rates'!$S$7,$AD$28=4,'Hourly Rates'!$AA$7,$AD$28=11,'Hourly Rates'!$AI$7,$AD$28=12,'Hourly Rates'!$AQ$7,$AD$28=13,'Hourly Rates'!$AY$7,$AD$28=14,'Hourly Rates'!$BG$7)),"")
 
Upvote 0
Solution
How about
Excel Formula:
=IFERROR(1/(1/IFS($AD$28=1,'Hourly Rates'!$C$7,$AD$28=2,'Hourly Rates'!$K$7,$AD$28=3,'Hourly Rates'!$S$7,$AD$28=4,'Hourly Rates'!$AA$7,$AD$28=11,'Hourly Rates'!$AI$7,$AD$28=12,'Hourly Rates'!$AQ$7,$AD$28=13,'Hourly Rates'!$AY$7,$AD$28=14,'Hourly Rates'!$BG$7)),"")
Thank you!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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