Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default =IF(L5<"",TODAY()-L5+1,"")

This formula has 4 criteria:
Date received (J5)
Date claimed (K5)
Storage Start Date (L5)
Elapsed Days (M5)

The first 2 criteria are self explanatory. Storage start date is initiated
if goods aren't claimed within 24 hrs. I need to stop the elapsed days as
soon as a value is is entered into Date Claimed M5 - at the moment it
continues to count.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default =IF(L5<"",TODAY()-L5+1,"")

So what is wrong with the formula that you give?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Michell Major" wrote in message
...
This formula has 4 criteria:
Date received (J5)
Date claimed (K5)
Storage Start Date (L5)
Elapsed Days (M5)

The first 2 criteria are self explanatory. Storage start date is initiated
if goods aren't claimed within 24 hrs. I need to stop the elapsed days as
soon as a value is is entered into Date Claimed M5 - at the moment it
continues to count.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default =IF(L5<"",TODAY()-L5+1,"")

Bob

01/04/2007 03/04/2007 02/04/2007 15

The formula continues to count elapsed days from today's date whereas it
should stop as soon as the date '03/04/2007' is enetered. So the above
should read"1" days' storage not 15.

TIA

Dan

"Bob Phillips" wrote:

So what is wrong with the formula that you give?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Michell Major" wrote in message
...
This formula has 4 criteria:
Date received (J5)
Date claimed (K5)
Storage Start Date (L5)
Elapsed Days (M5)

The first 2 criteria are self explanatory. Storage start date is initiated
if goods aren't claimed within 24 hrs. I need to stop the elapsed days as
soon as a value is is entered into Date Claimed M5 - at the moment it
continues to count.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default =IF(L5<"",TODAY()-L5+1,"")

=IF(L5<"",IF(K5<"",MIN(K5-L5,1),TODAY()-L5+1),"") ?
--
David Biddulph

"Michell Major" wrote in message
...
Bob

01/04/2007 03/04/2007 02/04/2007 15

The formula continues to count elapsed days from today's date whereas it
should stop as soon as the date '03/04/2007' is enetered. So the above
should read"1" days' storage not 15.


"Bob Phillips" wrote:

So what is wrong with the formula that you give?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Michell Major" wrote in message
...
This formula has 4 criteria:
Date received (J5)
Date claimed (K5)
Storage Start Date (L5)
Elapsed Days (M5)

The first 2 criteria are self explanatory. Storage start date is
initiated
if goods aren't claimed within 24 hrs. I need to stop the elapsed days
as
soon as a value is is entered into Date Claimed M5 - at the moment it
continues to count.






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default =IF(L5<"",TODAY()-L5+1,"")

David. Thanks. Unfortunately the formula returns a constant value of 1 i.e:
01/04/2007 13/04/2007 02/04/2007 1
Dan

"David Biddulph" wrote:

=IF(L5<"",IF(K5<"",MIN(K5-L5,1),TODAY()-L5+1),"") ?
--
David Biddulph

"Michell Major" wrote in message
...
Bob

01/04/2007 03/04/2007 02/04/2007 15

The formula continues to count elapsed days from today's date whereas it
should stop as soon as the date '03/04/2007' is enetered. So the above
should read"1" days' storage not 15.


"Bob Phillips" wrote:

So what is wrong with the formula that you give?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Michell Major" wrote in message
...
This formula has 4 criteria:
Date received (J5)
Date claimed (K5)
Storage Start Date (L5)
Elapsed Days (M5)

The first 2 criteria are self explanatory. Storage start date is
initiated
if goods aren't claimed within 24 hrs. I need to stop the elapsed days
as
soon as a value is is entered into Date Claimed M5 - at the moment it
continues to count.








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default =IF(L5<"",TODAY()-L5+1,"")

Sorry, I was asleep, so my usual confusion between MIN and MAX when I
changed the formula at the last minute. I wanted a minimum limit, so I
should have used MAX.

Try
=IF(L5<"",IF(K5<"",MAX(K5-L5,1),TODAY()-L5+1),"")
--
David Biddulph

"Michell Major" wrote in message
...
David. Thanks. Unfortunately the formula returns a constant value of 1
i.e:
01/04/2007 13/04/2007 02/04/2007 1


"David Biddulph" wrote:

=IF(L5<"",IF(K5<"",MIN(K5-L5,1),TODAY()-L5+1),"") ?
--
David Biddulph

"Michell Major" wrote in message
...
Bob

01/04/2007 03/04/2007 02/04/2007 15

The formula continues to count elapsed days from today's date whereas
it
should stop as soon as the date '03/04/2007' is enetered. So the above
should read"1" days' storage not 15.


"Bob Phillips" wrote:

So what is wrong with the formula that you give?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Michell Major" wrote in
message
...
This formula has 4 criteria:
Date received (J5)
Date claimed (K5)
Storage Start Date (L5)
Elapsed Days (M5)

The first 2 criteria are self explanatory. Storage start date is
initiated
if goods aren't claimed within 24 hrs. I need to stop the elapsed
days
as
soon as a value is is entered into Date Claimed M5 - at the moment
it
continues to count.








  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default =IF(L5<"",TODAY()-L5+1,"")

Hi

Try
=IF(J5="","",IF(K5="",TODAY()-L5+1,(K5-L5)))

--
Regards

Roger Govier


"Michell Major" wrote in
message ...
David. Thanks. Unfortunately the formula returns a constant value of
1 i.e:
01/04/2007 13/04/2007 02/04/2007 1
Dan

"David Biddulph" wrote:

=IF(L5<"",IF(K5<"",MIN(K5-L5,1),TODAY()-L5+1),"") ?
--
David Biddulph

"Michell Major" wrote in
message
...
Bob

01/04/2007 03/04/2007 02/04/2007 15

The formula continues to count elapsed days from today's date
whereas it
should stop as soon as the date '03/04/2007' is enetered. So the
above
should read"1" days' storage not 15.


"Bob Phillips" wrote:

So what is wrong with the formula that you give?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in
my
addy)

"Michell Major" wrote in
message
...
This formula has 4 criteria:
Date received (J5)
Date claimed (K5)
Storage Start Date (L5)
Elapsed Days (M5)

The first 2 criteria are self explanatory. Storage start date is
initiated
if goods aren't claimed within 24 hrs. I need to stop the
elapsed days
as
soon as a value is is entered into Date Claimed M5 - at the
moment it
continues to count.








  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default =IF(L5<"",TODAY()-L5+1,"")

David - thanks so much, it works as intended.

Regards

dan

"David Biddulph" wrote:

Sorry, I was asleep, so my usual confusion between MIN and MAX when I
changed the formula at the last minute. I wanted a minimum limit, so I
should have used MAX.

Try
=IF(L5<"",IF(K5<"",MAX(K5-L5,1),TODAY()-L5+1),"")
--
David Biddulph

"Michell Major" wrote in message
...
David. Thanks. Unfortunately the formula returns a constant value of 1
i.e:
01/04/2007 13/04/2007 02/04/2007 1


"David Biddulph" wrote:

=IF(L5<"",IF(K5<"",MIN(K5-L5,1),TODAY()-L5+1),"") ?
--
David Biddulph

"Michell Major" wrote in message
...
Bob

01/04/2007 03/04/2007 02/04/2007 15

The formula continues to count elapsed days from today's date whereas
it
should stop as soon as the date '03/04/2007' is enetered. So the above
should read"1" days' storage not 15.

"Bob Phillips" wrote:

So what is wrong with the formula that you give?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Michell Major" wrote in
message
...
This formula has 4 criteria:
Date received (J5)
Date claimed (K5)
Storage Start Date (L5)
Elapsed Days (M5)

The first 2 criteria are self explanatory. Storage start date is
initiated
if goods aren't claimed within 24 hrs. I need to stop the elapsed
days
as
soon as a value is is entered into Date Claimed M5 - at the moment
it
continues to count.









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
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
=IF((TODAY()-B8)30, "Overdue", "Current"), Kev Excel Discussion (Misc queries) 3 December 16th 05 08:15 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


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