Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am not sure if there is a way to prevent a formula from running once since
it has to evaluate the formula to determine the results, but the easiest way is to change the FALSEPART of your IF function as follows: =(IF(G1670,(G167*F167),"")) If the formula evaluates to false, then Excel will display an empty cell instead of "$0". "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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I copy a page setup fron one workbook to another | Excel Discussion (Misc queries) | |||
function to make a running total | Excel Discussion (Misc queries) | |||
How to use cell fron different sheet in IF statement | Excel Discussion (Misc queries) | |||
Checking to see that a CHART exists prior to running a simple command | Excel Discussion (Misc queries) | |||
Copy variable ranges fron difernte shets | Excel Worksheet Functions |