A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula Help



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2010, 05:41 PM posted to microsoft.public.excel.worksheet.functions
JLO
external usenet poster
 
Posts: 57
Default Formula Help

In my "Total Days" column, I have the following formula and it works:

E4 is Date sent to Vendor

=DATEDIF(A3,TODAY(),"d")

now, I want to add to this formula, if possible, to say if a date is entered
into the second column, then just calculate "Date Sent" - "Date Returned" in
the same "Total Days" column...is this possible?? I manually entered the "1"

Date sent to Vendor Date Returned From Vendor Total Days
out to Vendor
4/22/2010 4
4/22/2010 4/23/2010 1
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/26/2010 0
4/26/2010 0



  #2  
Old April 26th, 2010, 06:04 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
Default Formula Help

Hi,

=if(B3"",B3-A3,DATEDIF(A3,TODAY(),"d"))

"jlo" wrote:

In my "Total Days" column, I have the following formula and it works:

E4 is Date sent to Vendor

=DATEDIF(A3,TODAY(),"d")

now, I want to add to this formula, if possible, to say if a date is entered
into the second column, then just calculate "Date Sent" - "Date Returned" in
the same "Total Days" column...is this possible?? I manually entered the "1"

Date sent to Vendor Date Returned From Vendor Total Days
out to Vendor
4/22/2010 4
4/22/2010 4/23/2010 1
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/26/2010 0
4/26/2010 0



  #3  
Old April 26th, 2010, 06:07 PM posted to microsoft.public.excel.worksheet.functions
Per Jessen[_2_]
external usenet poster
 
Posts: 189
Default Formula Help

Hi

Try this:

=IF(B3="";DATEDIF(A3,TODAY(),"d"),DATEDIF(A3,B3,"d "))

Regards,
Per


On 26 Apr., 18:41, jlo wrote:
In my "Total Days" column, I have the following formula and it works: *

E4 is Date sent to Vendor

=DATEDIF(A3,TODAY(),"d")

now, I want to add to this formula, if possible, to say if a date is entered
into the second column, then just calculate "Date Sent" - "Date Returned" in
the same "Total Days" column...is this possible?? *I manually entered the "1"

Date sent to Vendor * * Date Returned From Vendor * * * Total Days
* * * * * * * * out to Vendor
4/22/2010 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *4
4/22/2010 * * * * * * * 4/23/2010 * * * * * * * * * * * * * * * * * * * * * * * *1
4/23/2010 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *3
4/23/2010 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *3
4/23/2010 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *3
4/23/2010 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *3
4/26/2010 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *0
4/26/2010 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *0


  #4  
Old April 26th, 2010, 06:12 PM posted to microsoft.public.excel.worksheet.functions
MS-Exl-Learner
external usenet poster
 
Posts: 135
Default Formula Help

=IF(AND(ISNUMBER(A3),ISNUMBER(B3)),DATEDIF(A3,B3," D"),IF(ISNUMBER(A3),DATEDIF(A3,TODAY(),"D"),"") )

OR

=IF(AND(A3"",B3""),DATEDIF(A3,B3,"D"),IF(A3" ",DATEDIF(A3,TODAY(),"D"),""))

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"jlo" wrote:

In my "Total Days" column, I have the following formula and it works:

E4 is Date sent to Vendor

=DATEDIF(A3,TODAY(),"d")

now, I want to add to this formula, if possible, to say if a date is entered
into the second column, then just calculate "Date Sent" - "Date Returned" in
the same "Total Days" column...is this possible?? I manually entered the "1"

Date sent to Vendor Date Returned From Vendor Total Days
out to Vendor
4/22/2010 4
4/22/2010 4/23/2010 1
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/26/2010 0
4/26/2010 0



  #5  
Old April 26th, 2010, 06:44 PM posted to microsoft.public.excel.worksheet.functions
JLO
external usenet poster
 
Posts: 57
Default Formula Help

Thank you. Works!

"Eduardo" wrote:

Hi,

=if(B3"",B3-A3,DATEDIF(A3,TODAY(),"d"))

"jlo" wrote:

In my "Total Days" column, I have the following formula and it works:

E4 is Date sent to Vendor

=DATEDIF(A3,TODAY(),"d")

now, I want to add to this formula, if possible, to say if a date is entered
into the second column, then just calculate "Date Sent" - "Date Returned" in
the same "Total Days" column...is this possible?? I manually entered the "1"

Date sent to Vendor Date Returned From Vendor Total Days
out to Vendor
4/22/2010 4
4/22/2010 4/23/2010 1
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/26/2010 0
4/26/2010 0



  #6  
Old April 26th, 2010, 07:23 PM posted to microsoft.public.excel.worksheet.functions
Joe User[_2_]
external usenet poster
 
Posts: 757
Default Formula Help

"jlo" wrote:
=DATEDIF(A3,TODAY(),"d")
now, I want to add to this formula, if possible, to say
if a date is entered into the second column, then just
calculate "Date Sent" - "Date Returned" in the same
"Total Days" column


=IF(B3="",TODAY(),B3) - A3


----- original message -----

"jlo" wrote:
In my "Total Days" column, I have the following formula and it works:

E4 is Date sent to Vendor

=DATEDIF(A3,TODAY(),"d")

now, I want to add to this formula, if possible, to say if a date is entered
into the second column, then just calculate "Date Sent" - "Date Returned" in
the same "Total Days" column...is this possible?? I manually entered the "1"

Date sent to Vendor Date Returned From Vendor Total Days
out to Vendor
4/22/2010 4
4/22/2010 4/23/2010 1
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/23/2010 3
4/26/2010 0
4/26/2010 0



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.