+ Reply to Thread
Results 1 to 3 of 3

Need to return value thru Index / Match

  1. #1
    Registered User
    Join Date
    03-31-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Need to return value thru Index / Match

    Good morning,

    I have 3 columns, Column-A is Ref, column-B is Num., Column-C is result.

    I need result value returned through formula. Result is value of column-B (Num.) of the corrosponding column-A (Ref) in the next matching column-A (Ref) value.

    i.e., for 1st row Ref value "D", result should be value of Num. column value corrosponding to immediate next row value "D". So 1st row value is "D", next again "D" comes in 4th row, corrosponding value of Num. column is 179, so, in 1st column Result should be 179 and for Ref. Value "B" in 2nd row, result would be 477 as the immediate next "B" value is in 5th row and corrosponding Num. value is 477. If no next value available, then result is blank.

    Ref Num. Result
    D 314 179
    B 469 477
    C 479 213
    D 179 489
    B 477 388
    A 174 467
    D 489 291
    B 388 483
    C 213 53
    A 467 427
    B 483 210
    C 53 19
    D 291 468
    B 210
    C 19 387
    A 427
    C 387
    D 468

    Please help out.

    Regards,
    Chirag

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,800

    Re: Need to return value thru Index / Match

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    Is your forum profile showing ONLY the oldest Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    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 (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,800

    Re: Need to return value thru Index / Match

    Waiting for a sample workbook and the version of Excel to be confirmed.

    A guess - in C2 copied down:

    =IFERROR(INDEX(B3:B$20,MATCH(A2,A3:A$20,0)),"")
    Last edited by AliGW; 09-26-2024 at 01:46 AM.

+ 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] Index aggregate or match, return values from row based on match
    By aswethink in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-25-2021, 05:45 AM
  2. Replies: 3
    Last Post: 04-07-2020, 11:58 AM
  3. Replies: 6
    Last Post: 05-22-2019, 11:29 PM
  4. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  5. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  6. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  7. Replies: 3
    Last Post: 05-08-2013, 02:10 PM

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