Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cindi
 
Posts: n/a
Default "Is Between" Function Solution --- Many Thanks

Thanks to all that helped me figure this out. I finally
did get it to work, after trying each suggestion. The
suggestion that I found to work was as follows:

=if(and(today()=date(2004,10,15),today()<=date
(2004,10,24)),1,if(and(today()=date(2004,10,25),t oday()
<=date(2004,11,01)),2,if(and(today()=date
(2004,11,02),today()<=date(2004,11,07)),3,if(and(t oday()
=date(2004,11,08),today()<=date(2004,11,14)),4,if (and

(today()=date(2004,11,15),today()<=date(2004,11,2 1)),5,if
(and(today()=date(2004,11,22),today()<=date
(2004,11,28)),6,if(and(today()=date(2004,11,29),t oday()
<=date(2004,12,06)),7,0)))))))))

Thanks Again for everyone's help!

Cindi
  #2   Report Post  
ivano
 
Posts: n/a
Default


"Cindi" ha scritto nel messaggio
...
Thanks to all that helped me figure this out. I finally
did get it to work, after trying each suggestion. The
suggestion that I found to work was as follows:

=if(and(today()=date(2004,10,15),today()<=date
(2004,10,24)),1,if(and(today()=date(2004,10,25),t oday()
<=date(2004,11,01)),2,if(and(today()=date
(2004,11,02),today()<=date(2004,11,07)),3,if(and(t oday()
=date(2004,11,08),today()<=date(2004,11,14)),4,if (and

(today()=date(2004,11,15),today()<=date(2004,11,2 1)),5,if
(and(today()=date(2004,11,22),today()<=date
(2004,11,28)),6,if(and(today()=date(2004,11,29),t oday()
<=date(2004,12,06)),7,0)))))))))

Thanks Again for everyone's help!

Cindi


ciao Cindi,
why not:
=VLOOKUP(TODAY(),{38275,1;38285,2;38293,3;38299,4; 38306,5;38313,6;38320,7},2
)

where 38275 is serial number of 2004-10-15
38285 is serial number of 2004-25-10
and so on...

ivano


  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Cindi" wrote...
Thanks to all that helped me figure this out. I finally
did get it to work, after trying each suggestion. The
suggestion that I found to work was as follows:

=if(and(today()=date(2004,10,15),today()<=date
(2004,10,24)),1,if(and(today()=date(2004,10,25), today()
<=date(2004,11,01)),2,if(and(today()=date
(2004,11,02),today()<=date(2004,11,07)),3,if(and( today()
=date(2004,11,08),today()<=date(2004,11,14)),4,i f(and

(today()=date(2004,11,15),today()<=date(2004,11, 21)),5,if
(and(today()=date(2004,11,22),today()<=date
(2004,11,28)),6,if(and(today()=date(2004,11,29), today()
<=date(2004,12,06)),7,0)))))))))


Maybe this works in OpenOffice Calc, but it's guaranteed not to work in
Excel because it uses more than 7 levels of nested function calls.
Specifically, Excel should choke on the expressions

today()=date(2004,11,29)

and

today()<=date(2004,12,06)

So what's your real formula?

Dominic's MATCH solution is much, much better than this. The formula above
is redundant. If you insist on using a convoluted nested IF approach, at
least eliminate the unnecessary comparisons. Clearly, if the date falls
outside 10/15/04 and 12/06/04, you want 0, so

=IF(OR(TODAY()<--"10/15/04",TODAY()--"12/06/04"),0,
IF(TODAY()--"11/28/04",7,IF(TODAY()--"11/21/04",6,
IF(TODAY()--"11/14/04",5,IF(TODAY()--"11/07/04",4,
IF(TODAY()--"11/01/04",3,IF(TODAY()--"10/24/04",2,1)))))))

This could work in Excel.


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
Averaging function Sarah Excel Discussion (Misc queries) 0 January 18th 05 04:09 PM
Function in XL or in VBA for XL that pulls numeric digits from a t Nate Oliver Excel Discussion (Misc queries) 0 December 14th 04 04:57 PM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
need to save values from a function before it changes Ron Excel Worksheet Functions 1 October 29th 04 06:29 AM
SUMIF(AND) FUNCTION Saariko Excel Worksheet Functions 9 October 28th 04 11:52 AM


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