Forum Discussion

pevenden's avatar
pevenden
Copper Contributor
May 19, 2025
Solved

include a static number when a cell has an entry

Hi all.

I am setting up a spreadsheet to tally entry fees for a clinic and show (horse industry). There is a $20 arena charge for those attending the show only. I have a column for attending the show but only want the arena charge to be included when there is something in that column. 

The column in question is D, I've totaled the cost columns in C, E, G with the total in H where I add the $20.  Would the 20 be better added in E but only if there is a number in D? what would be the formula?

 

 BCDEFGHIJ
Andrews, Susan2=B3*2003=D3*303=F3*25=C3+E3+G3+20 =H3-I3
Barz, Janica2=B4*2004=D4*306=F4*25=C4+E4+G4+20 =H4-I4
Bowman, Bonnie2=B5*2003=D5*303=F5*25=C5+E5+G5+20 =H5-I5
  • Change the formula in E3 to

    =IF(D3="", 0, D3*303+20)

    and remove the +20 from the formula in H3.

2 Replies

  • pevenden's avatar
    pevenden
    Copper Contributor

    Thanks Hans... 

    I did figure something out by changing the formula in E3 to this: =D3*30+IF(D3,20,0)

    Which i guess is pretty much the same thing... 

  • Change the formula in E3 to

    =IF(D3="", 0, D3*303+20)

    and remove the +20 from the formula in H3.

Resources