+ Reply to Thread
Results 1 to 8 of 8

Vlookup formula problem

Hybrid View

  1. #1
    Registered User
    Join Date
    06-25-2008
    Posts
    22

    Vlookup formula problem

    Good Morning,

    I have a table with columns A,B,C,D,E,F. A and B are names and C D E are Address, City, State, ZIP, I need a formula that says if A=B then return BCDEF.

    I tried using =vlookup(A1:B10,3,4,5,6) but thats not right. Can anyone simplify this for me?

    Sorry to be such a noob, im still learning.
    Last edited by ringrim; 12-05-2008 at 02:52 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Welcome to the board,

    Your post does not comply with Rule 1 of our Forum Rules. Your post title should accurately and concisely 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 will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-04-2008
    Location
    Leeds
    Posts
    26
    Theres possibly a better way to do it than this but it's getting late and my tea's ready

    =IF(A1=B1,(VLOOKUP(A1,B:E,1,FALSE)&", "&VLOOKUP(A1,B:E,2,FALSE)&", "&VLOOKUP(A1,B:E,3,FALSE)&", "&VLOOKUP(A1,B:E,4,FALSE)),"n/a")
    Not sure if that's what you asked for but I think it is, If A equals B then produce the address?
    Last edited by mobidv; 12-05-2008 at 03:35 PM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    What do you mean by
    if A=B then return BCDEF
    Are these in line or are you looking to see if what is in A1 is found somewhere in B and then return corresponding BCDEF?

    And do you want the returns in separate columns or all concatenated somehow?

    Please be more clear and possibly show examples.

  5. #5
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    VLOOKUP returns one value, in the column you specify. You will need multiple VLOOKUP formulas to return the data in those columns. If you want the returned data to be in the same cell you will want to concatenate the data

    CONCATENATE(VLOOKUP(formula #1), VLOOKUP(Formula #2) and so on...

    You can also add an extra column to the end of the table that CONCATENATES the row for you, and then use the vlookup to return that cell if A# = B#...

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by Tirren View Post
    VLOOKUP returns one value, in the column you specify. You will need multiple VLOOKUP formulas to return the data in those columns. If you want the returned data to be in the same cell you will want to concatenate the data

    CONCATENATE(VLOOKUP(formula #1), VLOOKUP(Formula #2) and so on...

    You can also add an extra column to the end of the table that CONCATENATES the row for you, and then use the vlookup to return that cell if A# = B#...
    I think we established that... why not wait for OP to answer relevant questions?

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    =if($A1=$B1,B1,"")

    copied across 4 columns and down as far as necessary

+ 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