+ Reply to Thread
Results 1 to 6 of 6

If match select value three cells accross

  1. #1
    Registered User
    Join Date
    05-21-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    39

    If match select value three cells accross

    Hi everyone!

    I am trying to get a match a value between two cells in different sheets, if it matches to then copy the value three cells accross of the value used to make the comparison.
    Eg:
    Sheet 1
    A1 B1 C1
    Name Date Price

    Sheet 2
    A1 B1 C1
    Name Something Price(to be copied!)

    So if the names match to copy the value to be able to do some calculations on it.

    The formula I've trying to get to work is:
    =IF(ISERROR(MATCH(A1, Sheet1!A1:A100,0),"(WHAT TO PUT HERE TO GO ACCROSS?)","")


    Any help would be much appreciated!

    Kurifodo

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: If match select value three cells accross

    Try this:

    =IF(ISNA(MATCH(A1, Sheet1!A1:A100,0)),"",VLOOKUP(a1:Sheet1!$A$1:$C$100,3,0))

    Hope this helps.

    Pete.

  3. #3
    Registered User
    Join Date
    05-21-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: If match select value three cells accross

    It gave me a value error ... Thsi means the equation is right just the contects wrong ? :S
    Thanks for the speedy help so far!

  4. #4
    Registered User
    Join Date
    05-21-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: If match select value three cells accross

    And if I change it a bit to reference error :S Not sure what I've done wrong?

    =If(ISNA(Match(B20,Sheet1!A2:A31,0)),"",Vlookup(B20,Sheet1!A2:A31,3,0))

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: If match select value three cells accross

    Post an example workbook so that we can see exactly what you are trying to do - the FAQ describes how to do this if you are unsure.

    Pete

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: If match select value three cells accross

    There was a small typo in Pete's post #2
    Please Login or Register  to view this content.
    Also possible is
    Please Login or Register  to view this content.
    =If(ISNA(Match(B20,Sheet1!A2:A31,0)),"",Vlookup(B20,Sheet1!A2:A31,3,0))
    won't work, you have a one column range in the Vlookup and are searching for a result in the3rd column..

+ 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