Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need to revise formula | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) |