+ Reply to Thread
Results 1 to 18 of 18

Formula to Look Up & Return Next Available Date After Today

  1. #1
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Formula to Look Up & Return Next Available Date After Today

    Hi

    I have a column with availability
    Next to it there another column with dates corresponding availability
    I need a formula to show me the first date when there is no availability

    Attached file below

    Thank you
    Attached Files Attached Files
    Last edited by shmemushi; 08-20-2019 at 11:49 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: If formula or something else

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    B.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: If formula or something else

    Try
    =INDEX((INDEX(A2:A100,match(today(),a2:a100,0)):A100),match(0,B2:B100,0))
    (untested, no file attached)

  4. #4
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: If formula or something else

    reply to
    =INDEX(A:A,MATCH(0,B:B,0))


    That works somehow, but i had to mention that i need to find the first date with 0 availability from today and later.
    So if today is 21 aug, that will still show 18 aug, instead of 26 aug. Any other clue? Thank you

  5. #5
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: If formula or something else

    Quote Originally Posted by Pepe Le Mokko View Post
    Try
    =INDEX((INDEX(A2:A100,match(today(),a2:a100,0)):A100),match(0,B2:B100,0))
    (untested, no file attached)
    Thank you but it does not work result
    (corrected it will show +5 days)
    Last edited by shmemushi; 08-18-2019 at 03:53 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: If formula or something else

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: If formula or something else

    Quote Originally Posted by shmemushi View Post
    Thank you but it does not work result
    (corrected it will show +5 days)
    Please post a sample sheet ( Go advanced - Manage attachments) so we can work on it. Thanks

  8. #8
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: If formula or something else

    Update of attachment and title already done, Thank you

  9. #9
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Formula to Look Up & Return Next Available Date After Today

    My be ?


    D
    E
    F
    14
    First 0 Availability
    16-Aug
    16-Aug
    15
    21-Aug
    26-Aug



    F14=IF($E14<>"",MIN(IF($A$2:$A$18>=$E14,IF($B$2:$B$18=$B$5,$A$2:$A$18))),"")


    control+shift+enter copy down

  10. #10
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Formula to Look Up & Return Next Available Date After Today

    Thank you Caracalla

    According to excel attached
    If date today is 18 Aug, I need formula to show me "18 Aug" because today I have 0 availability (not interested any longer on 16 Aug which is 0 availability)
    If date today is 21 Aug, i need formula to show me "26 Aug" because on 26 Aug i have 0 availability, and i need that as a kind of warning which later on i will use conditional formula

    Thank you

  11. #11
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Formula to Look Up & Return Next Available Date After Today

    Conditional formatting


    =AND($A2=MIN(IF($A$2:$A$18>=$E$2,IF($B$2:$B$18=$B$5,$A$2:$A$18))),$A2<>"")


    applies to


    =$A$2:$B$100
    Attached Files Attached Files
    Last edited by CARACALLA; 08-18-2019 at 09:54 AM.

  12. #12
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Formula to Look Up & Return Next Available Date After Today

    Thanks for your afford, i think i should assume my requests again and re-post it. thank you

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula to Look Up & Return Next Available Date After Today

    No, pleae do not do that. Any duplicate threads will be closed and you will be sent back here.

    Just reformulate your question here in this thread.

  14. #14
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Formula to Look Up & Return Next Available Date After Today

    Reformulated excel sheet attached, please help!
    Thanks
    Attachment 637883

  15. #15
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Formula to Look Up & Return Next Available Date After Today

    Invalid Attachment .

  16. #16
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula to Look Up & Return Next Available Date After Today

    Long winded but seems to be working
    Please Login or Register  to view this content.
    1. Replace semi colons with commas if need be ( regional settings)
    2. Commit with Ctrl-Shift-Enter ( array formula)

  17. #17
    Registered User
    Join Date
    03-13-2011
    Location
    Tirana
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Formula to Look Up & Return Next Available Date After Today

    Valid attached should be on my first post. thank you

  18. #18
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Formula to Look Up & Return Next Available Date After Today

    Shops

    B6=IF(MIN(IF(Shops!$A$2:$A$69=NextSupply!$A6,IF(Shops!$C$2:$C$69=0,IF(Shops!$B$2:$B$69>NextSupply!$A$2,IF(Shops!$B$2:$B$69<>$A$2,Shops!$B$2:$B$69)))))=0,"No supply needed",MIN(IF(Shops!$A$2:$A$69=NextSupply!$A6,IF(Shops!$C$2:$C$69=Shops!$C$4,IF(Shops!$B$2:$B$69>NextSupply!$A$2,IF(Shops!$B$2:$B$69<>$A$2,Shops!$B$2:$B$69))))))

    control +shift+enter copy down

    changes your file like this
    Attached Files Attached Files

+ 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] How to return yesterdays date unless today is monday then return previous fridays date
    By ciaron178 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2019, 10:15 AM
  2. Find Text Within Table, Return First Row Date, Then Compare to Today's Date
    By EduardStoo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2019, 10:47 AM
  3. [SOLVED] Adjust EOMONTH formula to return closest end of month date to today?
    By nobodyukno in forum Excel General
    Replies: 8
    Last Post: 01-19-2017, 07:51 PM
  4. [SOLVED] Return Next Date After Today - No Arrays
    By hardofhearing in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2016, 04:10 PM
  5. Replies: 2
    Last Post: 12-31-2012, 12:47 PM
  6. Formula to search for today's date and return range of data
    By paramore in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-15-2012, 02:17 PM
  7. Look up Today's Date & Return Cell Value
    By mandii01 in forum Excel General
    Replies: 4
    Last Post: 02-23-2011, 07:23 PM

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