View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
John C[_2_] John C[_2_] is offline
external usenet poster
 
Posts: 1,358
Default Command to make a forumula fron not running

This could be your formula in H166:
=IF((G166*F166),G166*F166,"")
Essentially, if G166 x F166 is anything other than 0, it will populate the
cell, otherwise, it will leave it blank.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"boxterduke" wrote:

Hello there,

Is there an excel command to skip a formula from being used if there is no
information in the cell?

See below for example.

F G H
I J
---------------------------------------------------------------------
166 $5.85 92,870.00 $542,868 67,340 $393,633
---------------------------------------------------------------------
167 $6.14 $0 14,700 $90,225

In row 166 the formula for cell H166 is =(IF(G1660,(G166*F166)))

For row 167, since cell G167 is blank, I want the formula to be skipped
since I don't want cell H167 to show $0

The way I have it now is =(IF(G1670,(G167*F167),0)) but I don't want $0 to
be shown and instead of just clearing the cell I would like an automated way
to prevent the formula from running.

Thank you