+ Reply to Thread
Results 1 to 13 of 13

Index and Match function across multiple rows with repeating names

Hybrid View

FKOC Index and Match function... 06-04-2014, 12:36 AM
sktneer Re: Index and Match function... 06-04-2014, 12:57 AM
FKOC Re: Index and Match function... 06-04-2014, 01:17 AM
FKOC Re: Index and Match function... 06-04-2014, 01:33 AM
sktneer Re: Index and Match function... 06-04-2014, 01:55 AM
FKOC Re: Index and Match function... 06-06-2014, 09:25 PM
sktneer Re: Index and Match function... 06-07-2014, 12:03 AM
FKOC Re: Index and Match function... 06-07-2014, 01:15 AM
sktneer Re: Index and Match function... 06-07-2014, 01:50 AM
FKOC Re: Index and Match function... 06-07-2014, 02:53 AM
oeldere Re: Index and Match function... 06-07-2014, 03:01 AM
sktneer Re: Index and Match function... 06-07-2014, 03:04 AM
FKOC Re: Index and Match function... 06-09-2014, 11:17 PM
  1. #1
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Index and Match function across multiple rows with repeating names

    If you are adding more columns, you need to match the range reference (in red) correctly according to your data for this formula to work correctly...

    =IFERROR(INDEX($B$2:$M$45,MATCH($O$2,$A$2:$A$45,0),SMALL(IF($B$1:$M$1=$O4,COLUMN($B$1:$M$1)-COLUMN($B$1)+1),COLUMNS($P4:P4))),"")

    where
    B2:M45 is the total data range.
    A2:A45 is the range containing Day nos.
    O2 is the cell where you have input the day lookup value.
    B1:M1 is the range containing vehicle types. you need to change it accordingly. Like if your last column is say AA1, the correct range will be B1:AA1
    O4 is the cell where the formula has lookup value for the vehicle type.
    In COLUMN($B$1:$M$1)-COLUMN($B$1), say if your last column is AA1, this will become COLUMN($B$1:$AA$1)-COLUMN($B$1)
    In COLUMNS($P4:P4), P4 is the first cell where you put this formula, So if you have more columns and you want to place this formula in say AD4, this part will become COLUMNS($AD4:AD4).

    Change all the ranges according to your actual data, and this formula will work.

    Hope this helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  2. #2
    Registered User
    Join Date
    06-04-2014
    Posts
    8

    Re: Index and Match function across multiple rows with repeating names

    Car van truck.xlsxThanks again, I am still having trouble with the formula. When I was trying to do it I was doing pretty much exactly what you said but wasn't having any luck!
    I'm starting to wonder whether it is because I am using a Mac?
    Below is the sheet I am working on; do you think you could extend the formula to say another 300 columns? I have quite a bit of data to add in!
    Thanks very much

+ 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. Returning multiple distinct/repeating values for vlookup or index-match
    By amatvien in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-21-2018, 01:14 PM
  2. Index match function without array formula for multiple rows.
    By markb141 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2014, 10:35 AM
  3. [SOLVED] How to index and match multiple criteria without repeating results?
    By PistachioPedro in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-20-2013, 05:38 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