Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jack
 
Posts: n/a
Default Need to revise formula

In a chart where columns G and L are used to record the entry and exit dates,
column S reflects the number of weeks (difference). I used the formula
=(L-G)/7. This formula works when dates are entered in columns G and L.
However, if either cell is empty, I get the "value" error message. How can I
revise the formula that produces a 0 if columns G and L arte empty?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Art
 
Posts: n/a
Default Need to revise formula

Jack,

In row 1, the following should work:
=IF(OR(G1=0,L1=0),0,(L1-G1)/7)

Art

"Jack" wrote:

In a chart where columns G and L are used to record the entry and exit dates,
column S reflects the number of weeks (difference). I used the formula
=(L-G)/7. This formula works when dates are entered in columns G and L.
However, if either cell is empty, I get the "value" error message. How can I
revise the formula that produces a 0 if columns G and L arte empty?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Need to revise formula

Not sure, but try in S2: =IF(COUNT(G2,L2)<2,"",(L2-G2)/7)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Jack" wrote in message
...
In a chart where columns G and L are used to record the entry and exit

dates,
column S reflects the number of weeks (difference). I used the formula
=(L-G)/7. This formula works when dates are entered in columns G and L.
However, if either cell is empty, I get the "value" error message. How

can I
revise the formula that produces a 0 if columns G and L arte empty?

Thanks



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
Need to revise formula Jack Excel Worksheet Functions 1 January 11th 06 01:24 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 12:36 AM.

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"