+ Reply to Thread
Results 1 to 8 of 8

Concatenate + Vlookup change to one function or Macros

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Concatenate + Vlookup change to one function or Macros

    Hello

    I need a function or macro to match Original columns with System columns.
    I made a function for example for Result - Est ID on column K =IF(AND(A3=D3,B3=F3,C3=H3),E3,"NULL") but it check just by one row number 3.
    But I need to check for example cell A3 with all column D AND cell B3 with all column F AND cell C3 with all column H.
    IF for example cells A3, B3, C3 are match with any of D,F,H THEN to use IDs from columns E,G,I and put them to K3,L3,M3.

    It's important to match 3 columns in one and keep in result order of 'Original' columns

    Before I used for example =CONCATENATE(A3:A7,B3:B7,C3:C7), and for 'System' columns and after that used results from CONCATENATE to use for future VLOOKUP for Results Est ID, Floor ID and Room ID

    Is it possible to do it in once?

    Example Excel document in attach
    Attached Files Attached Files
    Last edited by knotka; 06-05-2013 at 06:51 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Concatenate + Vlookup change to one function or Macros

    H iKnotka,


    See the attached file where I used below formula, entered with key combination ctrl shift enter:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Compare Macro(1).xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Concatenate + Vlookup change to one function or Macros

    Many thanks!
    It works with your formulas

    I was trying to combine 3 Vlookups, but it didn't work. =VLOOKUP(AND(D3,$A$1:$A$100,1,FALSE)(B3,$F$1:$F$100,1,FALSE)(C3,$H$1:$H$100,1,FALSE))
    Do you think it's possible to combined 3 vlookups? What I'm doing wrong?

    Regards,
    Karina

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Concatenate + Vlookup change to one function or Macros

    You can try below for vlookup:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    entered with ctrl shift enter key combination
    but will give you first set of result - repeated in all 3 places

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    06-05-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Concatenate + Vlookup change to one function or Macros

    I am using a actual data now and formula is not working

    I can't attach file as it's probably very big. This is formulas what I use:
    1) =IFERROR(INDEX(E$3:E$452053,MATCH($A3&$B3&C3,$D$3:$D$452053&$F$3:$F$452053&$H$3:$H$452053,0)),"")
    2) =IFERROR(INDEX(F$3:F$452053,MATCH($A3&$B3&C3,$D$3:$D$452053&$F$3:$F$452053&$H$3:$H$452053,0)),"")
    3) =IFERROR(INDEX(G$3:G$452053,MATCH($A3&$B3&C3,$D$3:$D$452053&$F$3:$F$452053&$H$3:$H$452053,0)),"")

  6. #6
    Registered User
    Join Date
    06-05-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Concatenate + Vlookup change to one function or Macros

    everything is working! so sorry
    brackets are important {}
    can I ask why it's work just with {}? sorry for beiing annoying

  7. #7
    Registered User
    Join Date
    06-05-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Concatenate + Vlookup change to one function or Macros

    many thanks

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Concatenate + Vlookup change to one function or Macros

    you are welcome Knotka...

    Cheers


    Please mark this thread as [SOLVED].. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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