+ Reply to Thread
Results 1 to 8 of 8

Removing a helper column to join two fields for a lookup

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    376

    Removing a helper column to join two fields for a lookup

    joining two fields for lookups without helper column.xlsx

    Anyone able to remove column A and still maintain the result in cell H3 ?

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Removing a helper column to join two fields for a lookup

    @benoj2005,

    Delete column A and use this forluma in G3 =SUMPRODUCT(--(E3=A3:A5)*(F3=B3:B5)*(C3:C5))

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

    Re: Removing a helper column to join two fields for a lookup

    Hi benoj2005,

    Yes.. try using below array formula :-

    {=INDEX($B$3:$D$5,MATCH($F3&$G3,$B$3:$B$5&$C$3:$C$5,0),3)}

    See attached:-
    joining two fields for lookups without helper column.xlsxjoining two fields for lookups without helper column.xlsx

    Regards,
    DILIPandey

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

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Removing a helper column to join two fields for a lookup

    Have you thought about hiding column A?
    Click on star (*) below if this helps

  5. #5
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    376

    Re: Removing a helper column to join two fields for a lookup

    Quote Originally Posted by mike7952 View Post
    @benoj2005,

    Delete column A and use this forluma in G3 =SUMPRODUCT(--(E3=A3:A5)*(F3=B3:B5)*(C3:C5))
    Thanks but my actual data was text that needed to be returned so a sumproduct obviously produced a #value

    Quote Originally Posted by dilipandey View Post
    Hi benoj2005,

    Yes.. try using below array formula :-

    {=INDEX($B$3:$D$5,MATCH($F3&$G3,$B$3:$B$5&$C$3:$C$5,0),3)}

    See attached:-
    Attachment 171901Attachment 171901

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Cheers, works a treat, I'd prefer a non array if possible as it's potentially going to be 100's of thousands of rows of data and arrays kill my machine then

    Quote Originally Posted by K m View Post
    Have you thought about hiding column A?
    No, becomes messy for others to maintain.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Removing a helper column to join two fields for a lookup

    Maybe?

    =INDEX(D3:D5,MATCH(F3,B3:B5,0),MATCH(G3,C3:C5,0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    376

    Re: Removing a helper column to join two fields for a lookup

    Quote Originally Posted by Fotis1991 View Post
    Maybe?

    =INDEX(D3:D5,MATCH(F3,B3:B5,0),MATCH(G3,C3:C5,0))
    That dosen't work, you're trying to put a match on a row into the index column argument..

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Removing a helper column to join two fields for a lookup

    If you say so...

+ 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