+ Reply to Thread
Results 1 to 6 of 6

Need lookup formula to do partial lookup in one column and exact match in second col

  1. #1
    Forum Contributor
    Join Date
    10-30-2010
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    100

    Need lookup formula to do partial lookup in one column and exact match in second col

    For example in the item column (F4), I want to be able to type in 'Baked' and in the count column (G4), type 30. Then I want a formula in the Price column (H4) to lookup and return the Price for Baked Chip 30 CT.

    Another example if I type in item Cereal Bar and count 48 return the price 9.82 for Quaker Cereal Bars 48 ct.

    Then if it can also take abbreviations for what I type like if Item Hersh Alm, count 36 return the price 17.82 for Hershey Almond 36 ct.

    I prefer it not to use any visual basic code as I will be running the program from my phone that doesn't support it.

    Thanks in advance!

    p.s. If partial lookup absolutely can't be done for item column then how to do exact match.
    Attached Files Attached Files

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

    Re: Need lookup formula to do partial lookup in one column and exact match in second

    Does this work for you:

    =SUMIFS(C:C,A:A,SUBSTITUTE(" "&F4&" "," ","*"),B:B,G4)
    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
    Forum Contributor
    Join Date
    10-30-2010
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Need lookup formula to do partial lookup in one column and exact match in second

    It does work uniquely name items but when I type in chips 50 it return 21.70, so its adding the 10.88 from chips 50 and the 10.82 from sun chips 30 and it need to just return the 10.88 from chips 50.
    Last edited by trickyricky; 02-24-2011 at 11:34 AM.

  4. #4
    Forum Contributor
    Join Date
    10-30-2010
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Need lookup formula to do partial lookup in one column and exact match in second

    I've been working on it for a little while and i've come to a formula that works for exact lookup on each column: {=INDEX(C:C,MATCH(F4&G4,A:A&B:B,0))}

    This works great, but like i said it only does the exact lookup for the item column. And it take a little while to calculate but I think I can speed that up by shortening ranges C:C, A:A, B:B etc....

  5. #5
    Forum Contributor
    Join Date
    10-30-2010
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Need lookup formula to do partial lookup in one column and exact match in second

    Ran across another obstacle my phone won't recognize CTRL+SHIFT+ENTER array formulas which is not a big deal unless they can be avoided.

    This is one tough cookie!

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

    Re: Need lookup formula to do partial lookup in one column and exact match in second

    Quote Originally Posted by trickyricky View Post
    It does fork uniquely name items but when I type in chips 50 it return 21.70, so its adding the 10.88 from chips 50 and the 10.82 from sun chips 30 and it need to just return the 10.88 from chips 50.
    With my formula I get 22.2 from
    Chips Classic 50
    Chips Flavor PK 50

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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