Google-sheets – How to return a blank or dash when one of the cells is left blank

formulasgoogle sheets

I am looking to calculate pricing and tax between 3 cells. Though if 1 of the cells is blank, I want the end result cell to be blank.

In this instance I have the: (order total * the tax rate) + the shipping quote.
But if there is no shipping quote, it is still populating with the first part.

I would like to set it so if there is not shipping quote, it stays blank, or even has a dash there instead.

This is the formula right now: =(F4*0.25)+G4

Best Answer

You need to inclose your formula within the IF function:

=IF(G4<>"", (F4*0.25)+G4,"-")

(Of course you can change the dash to something more meaningful, like No shipping quote)

As suggesteded at the comment the formula could also use ISBLANK

=IF(NOT(ISBLANK(G4)), (F4*0.25)+G4,"NO shipping quote")