+ Reply to Thread
Results 1 to 12 of 12

excel lookup function, is there a replacement?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    10

    excel lookup function, is there a replacement?

    Hi folks,

    Just wondering if there is a replacement for the LOOKUP function, at the moment I am using =LOOKUP(E2,{1,11,13,14;"High","Medium","Low","/"}) to return a high medium value to a cell etc. Is there another way of doing this can anyone tell me, which doesn't use LOOKUP?

    Many thanks in hope

    Robby

  2. #2
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: excel lookup function, is there a replacement?

    You can use sumproduct function.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: excel lookup function, is there a replacement?

    Quote Originally Posted by shekhar1660 View Post
    You can use sumproduct function.
    Like to see that one too

  4. #4
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: excel lookup function, is there a replacement?

    Quote Originally Posted by Pepe Le Mokko View Post
    Like to see that one too
    You will definately.

  5. #5
    Registered User
    Join Date
    11-17-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: excel lookup function, is there a replacement?

    Ah well, my plan is to move my spreadsheet to googledocs so others in my workplace can access the data more easily but it doesn't support lookup as a function up there

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: excel lookup function, is there a replacement?

    @shekhar1660
    You can use sumproduct function
    care to show us how?

    as for look up why do you want to change it?
    you could use index/match,vlookup,hlookup nested if statements
    you can reference a range of cells instead
    but for boundaries like that lookup is best
    Last edited by martindwilson; 05-09-2012 at 07:24 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: excel lookup function, is there a replacement?

    and at a pinch you could use choose with an if or two in it(well maybe not if cell could have say 9 in it)
    Last edited by martindwilson; 05-09-2012 at 07:25 AM.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: excel lookup function, is there a replacement?

    try this
    =INDEX({"High","Medium","Low","/"},MATCH(E2,{1,11,13,14},1))

  9. #9
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Lightbulb Re: excel lookup function, is there a replacement?

    Hi,
    Well, the prupose of the formula is, in the end, to lookup a text value based on an input value. This is best accomplished with a lookup function.
    ANY of the lookup functions could be used - LOOKUP, HLOOKUP, VLOOKUP, CHOOSE, INDEX, etc.

    Here is a version that utilizes SUMPRODUCT, but since SUMPRODUCT is a more general purpose array function, and it performs math on the array (it SUMs all the values in the array), it has more work to do and is likely a little slower than a pure lookup function solution:
    =CHOOSE(SUMPRODUCT(--(E2>={1,11,13,14})),"High","Medium","Low","/")
    Totally irrelevant to your question… but if you wanted to summarize your data based on the count of High,Medium,Low,/ values you could either use COUNTIF formulas, or an array formula using FREQUENCY, which counts values into "bins" (groups by value ranges). Unfortunately, FREQUENCY identifies numbers that are <= bin values instead of >= as LOOKUP does, but a bit of math and an INDEX function will have it group values the same way LOOKUP does:
    =INDEX(FREQUENCY($E$2:$E$100+0.000000000000001,{1,11,13,14}),ROW($2:$5))
    To enter the above array formula, enter it in a vertical range of 4 cells. In the 4 cells to the left or right of that formula, type the following labels:
    High
    Medium
    Low
    '/
    Please click on the * if resolution works for you

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: excel lookup function, is there a replacement?

    ah that's cheating you never mentioned you were going to wrap it in choose ! but it's pretty nifty

  11. #11
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: excel lookup function, is there a replacement?

    Quote Originally Posted by martindwilson View Post
    ah that's cheating you never mentioned you were going to wrap it in choose ! but it's pretty nifty
    However purpose is solved I believe?

  12. #12
    Registered User
    Join Date
    11-17-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: excel lookup function, is there a replacement?

    Such lovely responses thank you!! Problem sorted

+ 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