Closed Thread
Results 1 to 1 of 1

VLOOKUP with CONCATENATE

  1. #1
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526
    Hello All,

    This is my first post on this site so bear with me

    The problem I am having is that I want to look up something which has 4 different variables to it, in 4 different cell references i.e. Code, Site, Description, Dept, in order to find the answer i.e. the Unit Cost from the Lookup Spreadsheet. I can get a result by concatenating the 4 variables in the original formula, and creating a separate column in the Lookup spreadsheet.

    However, is there a way of doing this on the original formula i.e. by concatenating the 4 columns from which I need to look up against to get the answer, or are there problems unless there is only one unique identifier.


    Thanks

    I think concatenating is the better solution. Or you can use array formula to match, but it is not advisable for large amount of data. I can give you some examples in the attached w.book

    The way you are doing it would be best... but you can do it all in one formula too...

    =INDEX('Sheet1'!$E$1:$E$100,MATCH(1,INDEX(('Sheet1'!$A$1:$A$100= A1)*('Sheet1'!$B$1:$B$100=B1)*('Sheet1'!$C$1:$C$100=C1)*('Sheet1'!$D$1:$D$100=D1),0),0))

    Where Shee1, A1:E100 contain the lookup table (E1:E100 contains Unit Price)... and A1:D1 on active sheet contain the lookup values.

    Thanks for those who responded the last time but I am still struggling to get this to work.
    Here is my original e-mail, together with an attachement of what I am trying to look up to.

    Hello All,

    This is my first post on this site so bear with me

    The problem I am having is that I want to look up something which has 4 different variables to it, in 4 different cell references i.e. Code, Site, Description, Dept, in order to find the answer i.e. the Unit Cost from the Lookup Spreadsheet. I can get a result by concatenating the 4 variables in the original formula, and creating a separate column in the Lookup spreadsheet.

    However, is there a way of doing this on the original formula i.e. by concatenating the 4 columns from which I need to look up against to get the answer, or are there problems unless there is only one unique identifier.

    Thanks
    Attached Files Attached Files
    Last edited by NBVC; 07-19-2011 at 11:13 AM.

Closed 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