+ Reply to Thread
Results 1 to 16 of 16

Index / Match - Min Date

  1. #1
    Registered User
    Join Date
    02-08-2018
    Location
    Boston, MA
    MS-Off Ver
    Excel 2013
    Posts
    7

    Angry Index / Match - Min Date

    Hi There !

    New to the forum, but I've been looking at different forum threads in the past. It's my first post and I was hoping someone had some insight into a problem I have with a match index array formula.

    My requirement is to have a dynamic formula that pulls back the minimum date based on a category. I am looking to run some statistics for a set of webinars that people respond to within 24 hours or more. I am trying to pull the first / min date of the webinar based on the webinar.

    For example if I have 40 responses for a webinar ranging from 07/27/2017 to 08/03/2017. I am trying to return 07/27/2017 for each of the 40 responses on that webinar.

    I have created an array formula that provides me with the Unique webinars that are entered into the sheet.

    =IFERROR(INDEX(Webinars, MATCH(0,COUNTIF($N$1:N1, Webinars), 0)),"ERROR") -- Webinars is the range named for $B$1:$B$3000

    From there I have extracted the date and time from the survey time column and have worked towards 'Date of Webinar' formula.

    In an attempt to break it down, I have started a sub section starting in column P with sample data that I tried to mirror the full data set.

    This is the current formula that I was able to come up with. It works for some scenarios but not all.

    =INDEX($T$5:$T$14,MATCH(W5,$S$5:$S$14,0),MATCH($P$5:P5,$P$5:$P$14,0))
    Attached Files Attached Files
    Last edited by AliGW; 02-12-2018 at 11:20 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Index / March - Min Date

    You've Ex2013 so use xlsx extension not xls

  3. #3
    Registered User
    Join Date
    02-08-2018
    Location
    Boston, MA
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Index / March - Min Date

    Hi Sandy,

    Thanks for the response. I've added the Excel workbook version.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Index / Match - Min Date

    If I am understanding correctly you want to return the earliest date for a given webinar?

    If so I created a new column in O, you can place it anywhere you like. Array enter using Ctrl+Shift+Enter, then fill down the column.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index / Match - Min Date

    Quote Originally Posted by Zer0Cool View Post

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Is there a benefit of this over {=MIN(IF($C$2:$C$225=C2,$F$2:$F$225))}?

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Index / Match - Min Date

    If I understood well,
    see attached file
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Index / Match - Min Date

    Quote Originally Posted by 63falcondude View Post
    Is there a benefit of this over {=MIN(IF($C$2:$C$225=C2,$F$2:$F$225))}?
    Nope that would work as well. The only advantage of SMALL would be making it easy to change the nth lowest value to return, which the OP likely doesnt need for this application.

  8. #8
    Registered User
    Join Date
    02-08-2018
    Location
    Boston, MA
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Index / Match - Min Date

    The formula =SMALL(IF($C$2:$C$225=C2,$F$2:$F$225),1) pulls back the minimum date for the whole in F no?

    I would expect the following all rows per Webinar:

    HCCs and CDI... to be 07/27/2017
    Master Oasis to be 07/27/2017
    Reduce Denails to be 07/12/2017

    Am I missing something?

  9. #9
    Registered User
    Join Date
    02-08-2018
    Location
    Boston, MA
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Index / Match - Min Date

    The formula {=MIN(IF($C$2:$C$225=C2,$F$2:$F$225))} works but the small did not.

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index / Match - Min Date

    MIN(IF(...)) and SMALL(IF(...),1) do the same thing. Both have to be entered using Ctrl Shift Enter instead of just Enter.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  11. #11
    Registered User
    Join Date
    02-08-2018
    Location
    Boston, MA
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Index / Match - Min Date

    Thanks that worked. I have a follow-up question. Now that I've found the first date of the webinar, I am trying to concat that date (column H) with a time of 12:00:PM. However, when I go to concat it, it still takes the time from the date format even though I've adjusted the formatting of the cell.

    In Column J I am trying to concat H and I within a date format, so the net result to show like 07/27/2017 12:00. Then in L, I am trying to represent the time difference to see if it is within 24 hours.
    Attached Files Attached Files

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index / Match - Min Date

    Try this:

    J2 =INT(H2)+I2

    Formatting does not change the value of the cell (i.e. the time is still in there even though it isn't showing).

  13. #13
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index / Match - Min Date

    Better yet, you can get rid of most of your helper columns by putting this formula into F2:

    =INT(MIN(IF(Table1[Webinar Name]=C2,Table1[Survey Time & Date])))+TIME(12,0,0) Ctrl Shift Enter

    That will return the date and time of each webinar (you will have to adjust the formatting to show the time).

  14. #14
    Registered User
    Join Date
    02-08-2018
    Location
    Boston, MA
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Index / Match - Min Date

    That formula only returns the minimum date through all of column E, not the minimum by webinar.

  15. #15
    Registered User
    Join Date
    02-08-2018
    Location
    Boston, MA
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Index / Match - Min Date

    Martin needs to press CRTL+SHIFT+ENT - Silly goose.

    Thanks!

  16. #16
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index / Match - Min Date

    Great, happy to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. March Madness API
    By maxhecht2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2017, 07:30 PM
  2. [SOLVED] is it possible to insert IF condition in Index March formula
    By Imran Magsi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-09-2016, 07:52 AM
  3. Index March a specific part of table
    By metal.stuff in forum Excel General
    Replies: 1
    Last Post: 06-24-2016, 08:38 AM
  4. [SOLVED] unique date list jan feb march
    By XLalbania in forum Excel General
    Replies: 14
    Last Post: 12-11-2015, 05:30 PM
  5. Replies: 4
    Last Post: 09-25-2014, 10:20 AM
  6. Replies: 7
    Last Post: 05-09-2013, 05:15 AM
  7. March 2005 Actual Info vs March 2006 Plan Info
    By Al in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2005, 03:06 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