#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default showing zero in cell

Hi
Could you tell me how to get zero or blank with this formula:-

=(V4-U4) both columns are dates but if there is no date in column V4 then it
shows -38694 could you tell me what formula I need to put in to make this
show as zero or blank if there is no date in V4.

Thanks
--
Clare
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default showing zero in cell

=IF(V4="",0,V4-U4)
--
Gary''s Student - gsnu200902
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default showing zero in cell

Try this:

=IF(OR(V4="",U4=""),"",V4-U4)

This will give a blank if either of the dates are missing. If you want
a zero, just change the third "" (in the middle of the formula) to 0.

Hope this helps.

Pete

On Aug 28, 3:01*pm, Clare wrote:
Hi
Could you tell me how to get zero or blank with this formula:-

=(V4-U4) both columns are dates but if there is no date in column V4 then it
shows -38694 could you tell me what formula I need to put in to make this
show as zero or blank if there is no date in V4.

Thanks
--
Clare


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default showing zero in cell

Hi

Tried this but it is coming with #Value! Any other ideas
--
Clare


"Gary''s Student" wrote:

=IF(V4="",0,V4-U4)
--
Gary''s Student - gsnu200902

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default showing zero in cell

Hi Clare,

I think you have the problem of cell formatting.

format your source cells as dates and result cell as general. I have tried
the formula given by Gary''s Student which works perfect with the above
formatting.

kindly check and click yes below, if it works
"Clare" wrote:

Hi
Could you tell me how to get zero or blank with this formula:-

=(V4-U4) both columns are dates but if there is no date in column V4 then it
shows -38694 could you tell me what formula I need to put in to make this
show as zero or blank if there is no date in V4.

Thanks
--
Clare



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default showing zero in cell

You get that error if you try to do arithmetic on text values. The
only bit of arithmetic you are trying to do is to subtract U4 from V4.
Consequently, one, or both, of those cells contains some text (which
might happen to look like a numeric value or date). This might work
(using Gary''s formula):

=IF(V4="",0,V4*1-U4*1)

The *1 will try to convert the text value into a number.

Hope this helps.

Pete

On Aug 28, 3:22*pm, Clare wrote:
Hi

Tried this but it is coming with #Value! *Any other ideas
--
Clare



"Gary''s Student" wrote:
=IF(V4="",0,V4-U4)
--
Gary''s Student - gsnu200902- Hide quoted text -


- Show quoted text -


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
Stop cell showing zero when returning a blank cell Sapper Excel Discussion (Misc queries) 2 April 26th 09 11:24 PM
showing an empty cell instead of a zero in a formulated cell. Frustrated in AL Excel Worksheet Functions 1 January 31st 08 10:05 PM
Showing Last value in a cell starguy Excel Discussion (Misc queries) 9 March 26th 06 11:56 PM
Adding numbers in one cell and showing total in seperate cell Deernad Construction Excel Discussion (Misc queries) 12 November 29th 05 07:32 PM
Showing the contents of a cell based on another cell Daminc Excel Worksheet Functions 9 November 10th 05 08:39 AM


All times are GMT +1. The time now is 12:37 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"