+ Reply to Thread
Results 1 to 10 of 10

Help with matching cell and returning adjacent value

  1. #1
    Registered User
    Join Date
    07-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    15

    Help with matching cell and returning adjacent value

    Hi,

    I have a worksheet with data from D2:DL2989, all unique and formatted as general.

    In cell A1 I input a value which matches one of those cells. What I would like is to have cell B1 display the contents of the cell adjacent in the next column of the cell in D2:DL2989 that matches A1.

    I tried Vlookup but as I cannot put it all into two columns it won't work. I think I need a mix of Index and Match but cannot seem to get the formula correct.

    Any help would be appreciated, Mike
    Last edited by Shanks100; 10-30-2017 at 06:57 AM.

  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,955

    Re: Help with Index and match

    Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should describe your problem, not your anticipated solution.
    • Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

    No help to be offered, please, until the OP complies with this request.
    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 Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Help with matching cell and returning adjacent value

    May be try

    B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Registered User
    Join Date
    07-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Help with matching cell and returning adjacent value

    Thanks Shukla, but i think that wil only give me a search range of one column. The data I'm trying to match is from D2: DL2998.

    Thanks for the suggestion

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Help with matching cell and returning adjacent value

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,212

    Re: Help with matching cell and returning adjacent value

    Try

    =INDEX($D$2:$DL$2989,SUMPRODUCT(($D$2:$DL$2989=A1)*(ROW($D$2:$D$2989)))-1,SUMPRODUCT(($D$2:$DL$2989=A1)*(COLUMN($D$2:$DL$2)))-2)

  7. #7
    Registered User
    Join Date
    07-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Help with matching cell and returning adjacent value

    Hi thanks for your help. I have uploaded a simplified sample sheet.

    There are a number of blank cells, but these will fill over time.

    What I'm lookin for is to enter a value in cell O2 and then have the formula search the range D2:M35 and have cell P2 display the cell value adjacent to that matching value, so in this example P2 would display 00:19:19 from M10.

    thanks
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,212

    Re: Help with matching cell and returning adjacent value

    See attached using formula of format in post #6

    I had to re-enter the data in N10 for MATCH to be found .
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Help with matching cell and returning adjacent value

    John, thank you very much, a little tweak and it's exaclty what I needed. I hadn't factored for SUMPRODUCT and if I'm honest I wil now go and look at some hlpefiles to understand that aspect if i can.

    But it now works as i hoped.

    Thanks again for your time and assistance, Mike

    ps this was the final line that worked:

    =INDEX(pbs_range,SUMPRODUCT((pbs_range=AI2)*(ROW(pbs_range)))-1,SUMPRODUCT((pbs_range=AI2)*(COLUMN(pbs_range)))-2)

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Help with matching cell and returning adjacent value

    Or try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Check the attached file.
    Last edited by shukla.ankur281190; 10-30-2017 at 08:30 AM. Reason: locking range

+ 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+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [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
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 AM

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