Thread: datedif problem
View Single Post
  #2   Report Post  
bill gras
 
Posts: n/a
Default datedif problem

Hi Ron
Your formula only returns Datedif between Today()-T44 and does not
return the difference between T44-T45 if AG44 is blank

bill
--
bill gras

--
bill gras


"Ron Rosenfeld" wrote:

On Fri, 28 Oct 2005 02:07:12 -0500, Paul Sheppard
wrote:


bill gras Wrote:
Hi All
I need a date difference with a certain condition :
If AG44 is greater than 1 give me the date difference between T44 and
TODAY(),
if AG44 is blank (has a formula that returns a blank cell) than give me
the
date
difference between T44 and T45 and that needs to be coppied down to
3000 rows

can some one please help
regards bill
--
bill gras


Hi bill

Try this

=IF(AG441,SUM(TODAY()-T44),SUM(T44-T45))


Your use of the SUM function adds two unnecessary functions to your formula.
The same result ensues from:

=IF(AG441,TODAY()-T44,T44-T45)


--ron