+ Reply to Thread
Results 1 to 5 of 5

cell value when cell address is known

  1. #1
    Registered User
    Join Date
    06-08-2011
    Location
    lithuania
    MS-Off Ver
    Excel 2003
    Posts
    2

    cell value when cell address is known

    Hi,
    ok whats what i need:
    I have my data in two columns, and I am looking for a data in one column using match function, which gives me row where my data is located. I need to get value that stands in the next column. How to do this?

    for examle:

    A B

    2 5
    1 8
    3 6
    4 2

    I match value "1" in column A and getting result "2" , i need that program get me value of the cell in column B at row "2", or in this case "8". How it can be done?
    Last edited by gikis; 06-09-2011 at 03:27 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,678

    Re: cell value when cell address is known

    =INDEX(B:B,MATCH(1,A:A,0))


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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

    Re: cell value when cell address is known

    Use INDEX

    =INDEX($B$1:$B$10, MATCH(1, $A$1:$A$10,0))
    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

  4. #4
    Registered User
    Join Date
    06-08-2011
    Location
    lithuania
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: cell value when cell address is known

    Thanks, guys. It works.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,678

    Re: cell value when cell address is known

    You're welcome. Thanks for the rep.

+ 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