#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pat Pat is offline
external usenet poster
 
Posts: 210
Default Excel Formula

If the cell on which a formula is based is 0 or empty, I want the result that
is shown to be blank. How do I build that into the formula?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Excel Formula

=IF(A1=0,"",A1)

Hope this helps.

Pete

Pat wrote:
If the cell on which a formula is based is 0 or empty, I want the result that
is shown to be blank. How do I build that into the formula?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pat Pat is offline
external usenet poster
 
Posts: 210
Default Excel Formula


That almost does the trick. Here is the formula I am working with:

=(c4-b4)+1

If there is nothing in b4, how do I make the "if" statement work?

"Pete_UK" wrote:

=IF(A1=0,"",A1)

Hope this helps.

Pete

Pat wrote:
If the cell on which a formula is based is 0 or empty, I want the result that
is shown to be blank. How do I build that into the formula?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Excel Formula

=IF(OR(B4="",B4=0),"",C4-B4+1)

"Pat" wrote:

If the cell on which a formula is based is 0 or empty, I want the result that
is shown to be blank. How do I build that into the formula?

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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Excel Formula Issue [email protected] Excel Discussion (Misc queries) 2 August 16th 06 11:44 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 05:32 PM.

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

About Us

"It's about Microsoft Excel"