+ Reply to Thread
Results 1 to 2 of 2

Pick a date between two dates using today

  1. #1
    Registered User
    Join Date
    03-27-2014
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2010
    Posts
    1

    Pick a date between two dates using today

    Good morning! I am trying to create a formula for picking a date. I have fiscal month end dates, and I want to create a formula that shows what fiscal today would fall in. The purpose of the formula is to make it easier when the fiscal month end changes because there are several people who use these spreadsheets. I have tried a formula, but it did not work. I have tried two different formulas, but it seems like Excel does not understand putting a date between two the way that I created the formula. I have one cell with =today(), and the I have a list of all of the fiscal dates. I tried to use to =if formulas: one was =IF(I2<I15&I2>I14,I15,(IF(I2<I14&I2>I13,I14,(IF(I2<I13&I2>I12,I13,(IF(I2<I12&I2>I11,I12,(IF(I2<I11&I2>I10,I11,(IF(I2<I10&I2>I9,I10,(IF(I2<I9&I2>I8,I9,(IF(I2<I8&I2>I7,I8,(IF(I2<I7&I2>I6,I7,(IF(I2<I6&I2>I5,I6,(IF(I2<I5&I2>I4,I5,I4))))))))))))))))))))) and the other was =IF(I15>I2>I14,I15,(IF(I14>I2>I13,I14,(IF(I13>I2>I12,I13,(IF(I12>I2>I11,I12,(IF(I11>I2>I10,I11,(IF(I10>I2>I9,I10,(IF(I9>I2>I8,I9,(IF(I8>I2>I7,I8,(IF(I7>I2>I6,I7,(IF(I6>I2>I5,I6,(IF(I5>I2>I4,I5,I4))))))))))))))))))))). I2 is the cell that has today, and the fiscal dates are listed down from earliest to latest. I am just stumped as to a formula to use to pick the correct fiscal. Maybe I am thinking about this all wrong. Any help is appreciated, this will help so that there is less confusion in the offce. Thank you for any help that you can be!! Have a great day!

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Pick a date between two dates using today

    Not sure if your equations are 'correct' but as you observed, you cannot test A>B>C. You have to rewrite those as AND(A>B,B>C).
    Since you said you created a table, you may want to check out the MATCH or VLOOKUP functions.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formate( date, dd/mm/yyyy) use making my dates today's date
    By Pradeepg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2013, 06:57 AM
  2. [SOLVED] COUNTIF between two dates and also before today's date
    By fireandrain in forum Excel General
    Replies: 2
    Last Post: 04-09-2012, 10:21 PM
  3. Replies: 4
    Last Post: 11-06-2009, 01:10 PM
  4. Pick the earliest date from a selection of dates...
    By -emma- in forum Excel General
    Replies: 9
    Last Post: 01-24-2007, 08:16 PM
  5. [SOLVED] Are 2 dates between today's date
    By Re: Pivot Table/Query in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2005, 05:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1