+ Reply to Thread
Results 1 to 7 of 7

Thread: lookup or index? > issue

  1. #1
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    lookup or index? > issue

    Hello

    Having some trouble trying to place criterias on my data.

    I need two things

    a) using sales ppl tenure (in months), i need to bucket them thru lookup (cant figure out how), to place them into certain "buckets" i.e. 0-3 months, 4-6 months, 7-9 months etc.

    for example, John Doe tenure 4.56 months, therefore, in 4-6month bucket (I have highlighted this portion in yellow) on the worksheet

    b) using the same concept, i need to now "bucket" their sales performance % into buckets i.e. less than 50%, 50-74.99%

    again, i dont need the sumproduct, i just need a lookup or if statement for it to say, what bracket it belongs in

    for ex.

    in E14
    I want it to say: 4-6

    F14: would lookup value in J14 and state:
    50%-74.99%

    can someone pls help me with this, been struggling wid an easy issue, pls and thx you!
    Attached Files Attached Files
    Last edited by jw01; 06-24-2011 at 02:27 PM.

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

    Re: lookup or index? > issue

    Where does a number like 3.43 fall? It isn't 0-3 or 4-6.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    Re: lookup or index? > issue

    Hello

    sorry for that, it should be 0-3.99!

    my apologies. thx you for your help

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    617

    Re: lookup or index? > issue

    in column 14-L20 next to your list place in ascending order 0
    3
    6
    9
    12
    24

    then use the Vlookup in E14 and drag down VLOOKUP(D14,$L$14:$M$19,2)
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: lookup or index? > issue

    Well your bucket tables are organized a bit different....

    In E14, try:

    =LOOKUP(D14,LEFT($M$14:$M$19,FIND("-",$M$14:$M$19&"-")-1)+0,$M$14:$M$19)

    copied down

    If you complete column O table by placing a 0 in O14, an 100% in O19 and 100.01% in O20, then you can use:

    =LOOKUP(J14,$O$14:$O$20) in F14 copied down.

    If you need the upper bounds you will need to concatenate them in your formula.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Valued Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    611

    Re: lookup or index? > issue

    oh wow thx you guys; thxs NBVC so much!!

    cheers

  7. #7
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    617

    Re: lookup or index? > issue

    if your not able to make your bucket a table, hardcode the table into the same vlookup
    =VLOOKUP(D14,{0,"0-3";3,"4-6";6,"7-9";9,"10-12";12,"13-24";24,25},2)
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

+ 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.2.0