Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Command to make a forumula fron not running

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   Report Post  
Posted to microsoft.public.excel.misc
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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Command to make a forumula fron not running

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I copy a page setup fron one workbook to another Martina Excel Discussion (Misc queries) 2 April 24th 08 03:42 PM
function to make a running total Function running total Excel Discussion (Misc queries) 0 February 11th 08 06:03 AM
How to use cell fron different sheet in IF statement Cyberbiker Excel Discussion (Misc queries) 5 November 14th 07 02:15 PM
Checking to see that a CHART exists prior to running a simple command Anton Excel Discussion (Misc queries) 0 August 29th 06 06:30 AM
Copy variable ranges fron difernte shets optimus_1973 Excel Worksheet Functions 2 January 8th 06 04:39 AM


All times are GMT +1. The time now is 11:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"