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
Roland
 
Posts: n/a
Default Need to revise formula

=IF(AND(L5=0,G5=0),0,(L5-G5)/7)


"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

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
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
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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