+ Reply to Thread
Results 1 to 6 of 6

Calculate the nearest future date to today's date specific to categories in other columns

  1. #1
    Registered User
    Join Date
    06-22-2022
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    2

    Question Calculate the nearest future date to today's date specific to categories in other columns

    Sorry if title is confusing...
    I'm essentially a beginner with Excel and have been battling my way through Google searches all this time, but I'm truly stuck with this and hoping it's possible. I have tried MINIFS, MIN(IF(AND, INDEX(MATCH and haven't found a way to do it, although I could just be writing the formulas incorrectly.
    I have tried to attach an example spreadsheet and I don't think it worked, so have also added an image to the post for reference.

    Capture.PNG


    So what I'm after is a way to gather the earliest FUTURE date for each of the categories listed in columns A and B. So basically I need a formula that I can tweak for each category/combination that will show me the earliest future dates for each combination of the categories (based on the information I've included in my example). The formula should give me the following dates:
    PCA/Lifestyle AM - 25/06/2022
    PCA/Lifestyle PM - 1/07/2022
    Nursing (EN/RN) AM - 24/06/2022
    Nursing (EN/RN) PM - 26/06/2022

    The dataset I gave is quite small but I hope I explained it well enough - I'm building this sheet up from nothing and have next to no real data at this stage.

    Finally, I don't think an array formula would be appropriate as I need the dates updating automatically and as far as I can tell you need to manually calculate array formulas, so the functionality doesn't align with my needs.

    I hope there's someone who can do their Excel magic and help me out! Thanks all :)


    EDIT: I have used =INDEX($J:$J,MATCH(1,INDEX(($J:$J>TODAY())*(AD103=$G:$G),0,1),0)) which I thought was working, but it's only showing the first date in the column irrespective of any other dates. For info: Column J is the date list, column G is the discipline list (PCA/Nursing), and AD103 is where I've listed the first discipline name as text for the formula to reference. Not sure if this helps but I figured it was pertinent info.
    Attached Files Attached Files
    Last edited by Sliz0r; 06-28-2022 at 06:59 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Calculate the nearest future date to today's date specific to categories in other colu

    Assume result list generated from cell G2:I2 down

    Please Login or Register  to view this content.
    G2 :
    Please Login or Register  to view this content.
    Copy to H2

    I2:
    Please Login or Register  to view this content.
    Copy G2:I2 down as far as needed
    Attached Files Attached Files
    Quang PT

  3. #3
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Calculate the nearest future date to today's date specific to categories in other colu

    Welcome to the forum.

    First off, array formulae do not need any form of manual calculation, so I am not really sure what you understand by that term.

    Here's an MS365 dynamic array solution:

    =LET(u,UNIQUE(FILTER(A1:B10,A1:A10<>"")),f,IFERROR(1/(1/MINIFS(D1:D10,A1:A10,INDEX(u,,1),B1:B10,INDEX(u,,2),D1:D10,">="&TODAY())),""),CHOOSE({1,2,3},u,INDEX(u,,2),f))
    Attached Files Attached Files
    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.

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,297

    Re: Calculate the nearest future date to today's date specific to categories in other colu

    Formula
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-22-2022
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Calculate the nearest future date to today's date specific to categories in other colu

    Hi all, I haven't had a chance to get back to the spreadsheet since last week so apologies for not getting back to anyone. I have been able to do it! I really appreciate all the help, I've learnt a lot just from your replies. <3

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Calculate the nearest future date to today's date specific to categories in other colu

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Replies: 10
    Last Post: 09-06-2023, 08:19 PM
  2. [SOLVED] Calculate future date, but leave cell blank if no date is entered
    By kyber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2021, 03:28 PM
  3. [SOLVED] Calculate between dates [Start Date] [Closed Date] but if no close date today()
    By brian_2me in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-11-2021, 09:36 AM
  4. [SOLVED] How to calculate days between a future date and today? (#value! error)
    By jilaba in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2020, 07:38 AM
  5. Calculate Date 5 years in the future past today's date
    By RickCJ7 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-29-2015, 05:50 PM
  6. [SOLVED] Calculate future date to nearest Monday
    By mswauger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2013, 04:13 PM
  7. [SOLVED] formula to calculate future date from date in cell plus days
    By Chicesq in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2005, 08:30 AM

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