+ Reply to Thread
Results 1 to 6 of 6

Index & Array Formula

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    United States
    MS-Off Ver
    11
    Posts
    6

    Index & Array Formula

    Hi,

    I am trying to use Index and Array formula to bring back multiple values by looking at a specific ID.

    Sheet1- Has Two columns ( ID & Type)
    Sheet 2 - Has two columns ( ID and Request ID)

    Both sheets have the ID column that match, but an ID can have more than 1 "Type" and more than 1 "Request ID".

    In a different sheet, I am calling it the Master sheet, I would like to bring back the "Type" & "Request ID" values that match the ID.

    I have attached an example of a spreadsheet.

    Test Workbook.xlsx


    Thanks!

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Index & Array Formula

    I modified parts of your worksheet to make room for all these unique combinations......I added another ID column to Master. On both Sheet1 Sheet2 I placed two helper columns to extract the unique combinations and then assigned them their index numbers.

    Please let me know if this does what you want.
    Attached Files Attached Files
    Dave

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

    Re: Index & Array Formula

    For column B
    Please Login or Register  to view this content.
    For column C
    Please Login or Register  to view this content.
    ARRAY formula is used

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-22-2015
    Location
    United States
    MS-Off Ver
    11
    Posts
    6

    Re: Index & Array Formula

    Both of the answers worked. thank you so much for the prompt reply!

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Index & Array Formula

    You're welcome. Glad it helped and thanks for the feedback.

  6. #6
    Registered User
    Join Date
    06-22-2015
    Location
    United States
    MS-Off Ver
    11
    Posts
    6

    Re: Index & Array Formula

    I have another question...

    On the first sheet (sheet1) I have a list of Unique IDs and on Sheet2 I have data that shows Activities along with the IDs. I did a vlookup to see if any of the IDs on sheet1 exist on sheet2 =if(vlookup, A2, Sheet2! A:A,1,false), "Yes","No"), which gave me back Yes or no answers.

    If I want to bring back the activity type on sheet1 but the trick is that on sheet1 I only have unique IDs and on sheet2 there could be multiple activities associated for 1 ID.

    The first example I asked for it worked because I had multiple IDs of the same page which we associated a unique value to it that brought back the data.

    But on this example i only have 1 unique ID on sheet 1 and i would like to bring back multiple values associated with it. what formula would I use to bring back multiple values for an ID without having to insert rows or duplicate IDs on sheet1?

    Does it make sense?

    I appreciate all your feedback.

+ 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] Help with Array and index Formula
    By shayej in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-26-2015, 06:22 PM
  2. Sum with array formula in index
    By Matthys.Steyn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-17-2013, 10:44 AM
  3. Replies: 2
    Last Post: 06-20-2012, 12:22 PM
  4. Index array formula?
    By kdestef1 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-11-2009, 10:56 AM
  5. SUM of INDEX as array formula
    By CJEJung in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-21-2008, 01:15 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