+ Reply to Thread
Results 1 to 3 of 3

Locate a value in a horizontal range and return the value next to it

Hybrid View

  1. #1
    Registered User
    Join Date
    04-15-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    15

    Locate a value in a horizontal range and return the value next to it

    Hi,

    I would be very grateful if somebody could help me with this.

    I need to locate the value of a cell in a horizontal range and return the value of the cell next to this.

    I need to place a formula in cell K4 which searches for K4 in range B4:J4 and returns the value in the cell next to it, which in this case is 254.24. I then need to copy and paste this formula into cell K5, which needs to return the value 7654.21.

    The example exel is attached. If anyone can throw any light on this I would be extremely grateful.

    Thanks
    Attached Files Attached Files
    Last edited by The Monitor; 04-17-2011 at 02:04 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Locate a value in a horizontal range and return the value next to it

    In K4, can be dragged across and down

    =INDEX($B4:$J4,MATCH(K$3,$B4:$J4,0)+1)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-15-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Locate a value in a horizontal range and return the value next to it

    Quote Originally Posted by ChemistB View Post
    In K4, can be dragged across and down

    =INDEX($B4:$J4,MATCH(K$3,$B4:$J4,0)+1)
    Does that work for you?
    Yes thank you very much!

    I saw a similar request on page 2 where index/match was used but I couldn't get it to work for me in this instance.

    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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