+ Reply to Thread
Results 1 to 9 of 9

Need an alternative to Vlookup

  1. #1
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Need an alternative to Vlookup

    Hi,

    I have created a file to explain what I am trying to do, hard to describe in words. I have a tab called "Can't Change Sheet" with several lines of numbers on it. What i want to do is link over to the "New Sheet" using a formula that I can copy down easily. A formula that looks for "Current" and the name of the object to pull in the numbers. Like i said, easy with Vlookup and concatenation, but i can't change the original sheet. Is there an easy way to do this...? I know I could use vlookup for this problem if I could run a concatenation formula on the original sheet, but i am not allowed to change anything on the original sheet, it would cause a very big mess.

    Thanks in advance...
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Need an alternative to Vlookup

    Try this in D3 and copy across:

    =SUMPRODUCT(('Can''t Change Sheet'!$B$4:$B$39=$B3)*1,('Can''t Change Sheet'!$C$4:$C$39=$C3)*1,'Can''t Change Sheet'!D$4:D$39)

    You may have to change , to ; depending on your delimiters.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need an alternative to Vlookup

    Maybe SUMIFS() if there is only one unique match?

    =SUMIFS('Can''t Change Sheet'!D:D,'Can''t Change Sheet'!$B:$B,$B3,'Can''t Change Sheet'!$C:$C,$C3)

    in D3 and copied throughout.
    Last edited by Cutter; 04-24-2012 at 05:39 PM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need an alternative to Vlookup

    Another option, in D3 of new sheet
    =INDEX('Can''t Change Sheet'!$D$4:$O$39,MATCH($B3&$C3,'Can''t Change Sheet'!$B$4:$B$39&'Can''t Change Sheet'!$C$4:$C$39,0),MATCH(D$2,'Can''t Change Sheet'!$D$3:$O$3,0)) entered as an array (CNTRL SHFT ENTER) and dragged across and down
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Re: Need an alternative to Vlookup

    Thanks all for your help, I will have to think of another option, sumproduct / Sumifs will bog down my calculations as this is a huge file. I have never liked working with array formulas I just don't trust them.

    Please do not take that badly, I really appreciate your help.

  6. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Need an alternative to Vlookup

    In that case, you could create an extra sheet containg the same information as "Can't change sheet", but where you add a helper column and =INDEKX(MATCH(CONCATENATE())) to retrieve the correct values...

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need an alternative to Vlookup

    SUMIFS() is unlikely to bog down your calculations. Did you try it?

  8. #8
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Re: Need an alternative to Vlookup

    I have not tried SUMIFS(), SUMIF() is a great formula but this would require 10560 sumifs, if it is not the same as sumif, maybe it would work. 10560 would bog me down. In the past I have built macros to copy and paste values the sumif, but I am linking other workbooks which would get complicated. I will try the SUMIFS() solution now and see how I fare.

  9. #9
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Need an alternative to Vlookup

    Hi

    There other way. No Array formula.
    Try this
    D3 =INDEX('Can''t Change Sheet'!D$4:D$40, MATCH($B3&"-"&$C3, INDEX('Can''t Change Sheet'!$B$4:$B$40&"-"&'Can''t Change Sheet'!$C$4:$C$40, 0), 0)) Then copy down and cross.

+ 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