+ Reply to Thread
Results 1 to 5 of 5

Help with Vlook up

  1. #1
    Registered User
    Join Date
    02-15-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help with Vlook up

    Hi I am new with the forum. Can you please help me with the below?

    A B C
    1 ACI02F6R4 WESTPAC
    2 ACI02F699 ANZ
    3 ACI02F6T4 NAB


    I want if the value in column C1 = "Westpac" , then A1 = B1. However, if C1 = "ANZ" or C1 = "NAB", I want to look up value in the table B and C and return the according value from B column to A1. Let say if C1 = ANZ, I want A1 = B2.

    I have tried this formula but it doesnt work: =IF(C1="Westpac",B1, Vlookup(C1,B:C,2,0))

    Thanks a lot for you help!

  2. #2
    Registered User
    Join Date
    07-27-2012
    Location
    Watertown, WI, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Help with Vlook up

    I think the formula is not working because the vlookup is looking in column B for the value in c1 which it will not find. Try having a column D that is the same as column B (have D1 as =b1) and then tweak your existing formula for the vlookup range for C:D. That should fix what you're looking for...i think...

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help with Vlook up

    Hi and welcome to the forum.

    1st of all, vlookup cannot look "behind" itself.. Im not sure i completely what you are trying to do, but try this....
    =IF(C1="Westpac",B1,INDEX($B$1:$C$3,MATCH(C1,$C$1:$C$3,0),1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-15-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with Vlook up

    Hi thanks heaps guys. They both work. This forum is awesome

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Help with Vlook up

    Happy to help. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

+ 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