+ Reply to Thread
Results 1 to 13 of 13

LookUP Help

  1. #1
    Forum Contributor
    Join Date
    04-28-2014
    Location
    Sverige
    MS-Off Ver
    Excel 2010
    Posts
    221

    LookUP Help

    A B C
    HEA 220 1,2 HEB 240 (25%)
    HEB 240 5,8
    VKR 260 8,3
    IPE 280 23,5

    I have the data above. cell C1 is a dropdown list. How can I make a lookup function That doesnt take in consideration of the percentage in the lookup_value. Now it gives me the wrong answer.

    Please Login or Register  to view this content.


    Thanks!
    Last edited by RinorM; 05-03-2014 at 11:43 AM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: LookUP Help

    maybe like this

    =LOOKUP(LEFT(SUBSTITUTE(C1;" ";""),6),$A$1:$A$4;$B$1:$B$4)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: LookUP Help

    RinorM, Good afternoon.

    Try to use:

    =VLOOKUP(LEFT(C1;7);A1:B4;2;FALSE)

    Is it what you want?
    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  4. #4
    Forum Contributor
    Join Date
    04-28-2014
    Location
    Sverige
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: LookUP Help

    I get a number when I try the code
    Please Login or Register  to view this content.
    But then when I change the values inside of the drop down list ( cell c1) it doesnt work anymore

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: LookUP Help

    Quote Originally Posted by RinorM View Post
    I get a number when I try the code
    Please Login or Register  to view this content.
    But then when I change the values inside of the drop down list ( cell c1) it doesnt work anymore
    I have no idea what your data in C1 looks like. You only show one example.

  6. #6
    Forum Contributor
    Join Date
    04-28-2014
    Location
    Sverige
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: LookUP Help

    The Data in C1 is a drop down list containing 4 rows, in which all contains the values in column A.

    Thanks

  7. #7
    Forum Contributor
    Join Date
    04-28-2014
    Location
    Sverige
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: LookUP Help

    Book1.xlsx

    I have attached the workbook. The code youve helped me with is in cell C178

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: LookUP Help

    Sorry, but your explanation is not enough. Obviously there are not the same as in column A. there as spaces, parenthesis and percentage signs.

  9. #9
    Forum Contributor
    Join Date
    04-28-2014
    Location
    Sverige
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: LookUP Help

    Paste this code in the same place (C178)

    Please Login or Register  to view this content.
    How can I modify it to get the result I am after ? Thanks mister.

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: LookUP Help

    Try this

    =LOOKUP(LEFT($B$3,7),$A$175:$A$305,$B$175:$B$305)


    or this

    =VLOOKUP(LEFT($B$3,FIND("(",$B$3)-2),$A$175:$B$305,2,0)
    Last edited by AlKey; 05-04-2014 at 06:40 AM.

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: LookUP Help

    Forgot to add. Change comma to semicolon in formula

  12. #12
    Forum Contributor
    Join Date
    04-28-2014
    Location
    Sverige
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: LookUP Help

    It worked superb. Thank you very much and good job!!

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: LookUP Help

    You're welcome and thank you for the feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  2. Replies: 2
    Last Post: 05-19-2013, 08:46 AM
  3. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  4. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  5. Replies: 7
    Last Post: 06-19-2011, 12:51 PM

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