+ Reply to Thread
Results 1 to 10 of 10

Multiple indexing from cells

  1. #1
    Registered User
    Join Date
    07-20-2017
    Location
    San Diego, CA
    MS-Off Ver
    2010
    Posts
    20

    Multiple indexing from cells

    Hello all!
    I do a lot of excel and am trying to make a new tracker that will be user friendly, I am just having some issues with a code. I attached my sample product. My project is making a vacation matrix. I have one list of people's names with the dates they are taking vacation. Then I have a chart of all those names and a table of dates. If they are taking vacation, I want it to automatically fill in the cell associated with the date. This will make it so I can track how many are on vacation at any given day to make sure we don't have too many people gone.

    My issue is that the Indexing will only find the first match (or the 2nd, 3rd, etc.) but not all matches inclusive. When you open my sample you will see that person "1" is taking two different vacation times, but only one is making it up on the chart.

    I am currently using code:
    Please Login or Register  to view this content.
    to draw out the dates. Any assistance will be much appreciated!
    Attached Files Attached Files

  2. #2
    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,771

    Re: Multiple indexing from cells

    Which version of Excel are you now using?

    This is not code, this is a formula. I will have a look at your workbook and see if I can help.
    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.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,771

    Re: Multiple indexing from cells

    The problem is that INDEX MATCH will only find the first instance of each person in the holiday table, so only the first holiday listed will make it onto the grid.

    Your current version of Excel may dictate the way forward here.

  4. #4
    Registered User
    Join Date
    07-20-2017
    Location
    San Diego, CA
    MS-Off Ver
    2010
    Posts
    20

    Re: Multiple indexing from cells

    AliGW,

    Yes a formula, sorry. I am only able to utilize a Microsoft office professional plus 2010 edition, version: 14.0.7232.5000

  5. #5
    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,771

    Re: Multiple indexing from cells

    Thanks for confirming. I'm having a think - others may well know the best way forward here.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Multiple indexing from cells

    In C7 then copied across

    =IF(SUMPRODUCT(($AK$5:$AK$24=$A7)*($AL$5:$AL$24<=C$6)*($AM$5:$AM$24>=C$6))>0,"X","")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  7. #7
    Registered User
    Join Date
    07-20-2017
    Location
    San Diego, CA
    MS-Off Ver
    2010
    Posts
    20

    Re: Multiple indexing from cells

    wow....that works perfectly...I would have never thought of using a sumproduct formula. Thank you very much!

  8. #8
    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,771

    Re: Multiple indexing from cells

    Good one!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks. (EDIT: I've done it for you this time.)
    Last edited by AliGW; 08-16-2019 at 06:49 AM.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Multiple indexing from cells

    Thanks for feedback and rep.

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Multiple indexing from cells

    If sumproduct works, then countifs will also work.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    With small data sets there is no real advantage to either, with larger data sets, one could calculate faster than the other.

+ 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. Indexing and Matching (I Think??) Against Multiple Worksheets Using Multiple Criterion
    By eNinjaInTraining in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-26-2016, 09:00 PM
  2. [SOLVED] Indexing multiple conditions
    By AceForSale in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2016, 05:56 PM
  3. Array Formula Indexing multiple columns/multiple worksheets
    By cwhite86 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-19-2015, 02:19 PM
  4. Indexing and matching multiple cells to one
    By wadeingforgodot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2015, 03:04 PM
  5. Indexing Cells Sequentially When Dragging Block of Cells For Template
    By meesterg in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-26-2014, 10:57 AM
  6. Indexing with Multiple Criteria and Blank Cells
    By timtomm66 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-22-2014, 02:52 PM
  7. [SOLVED] Multiple indexing arrays?
    By sperrysperry in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-16-2013, 01:16 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