+ Reply to Thread
Results 1 to 4 of 4

Lookup formula finding incorrect results

  1. #1
    Forum Contributor
    Join Date
    09-22-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2016
    Posts
    134

    Lookup formula finding incorrect results

    Hello.

    I am using a Lookup formal to group ages as follows

    If I type in an age in A1, in A2 I want an age group to appear

    the groups are
    20-24
    25-29
    30-34
    35-39
    40-44
    45-49
    50-54
    55-59
    60-65

    can anyone see what I’ve done wrong

    so far, if I type in an age then it normally enters the group ABOVE what I want

    i.e. if I enter “24” then it put the group “25-29”. if I enter “42” it puts “45-49” and so on.

    Help lease

    =LOOKUP($A1,{0,16,20,25,30,35,40,45,50,55,60},{"<16","20-24","25-29","30-34","35-39","40-44","45-49","50-54","55-59","60+"})
    Last edited by burnsie; 11-03-2009 at 09:47 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup formula finding incorrect results. (Bad formual?)

    Check the number of items in both lookup_vector and result_vector... one band is missing an output.

  3. #3
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Lookup formula finding incorrect results. (Bad formual?)

    Your categories are a bit skewiff. Try this:

    =LOOKUP($A1,{0,20,25,30,35,40,45,50,55,60},{"<20","20-24","25-29","30-34","35-39","40-44","45-49","50-54","55-59","60+"})

  4. #4
    Forum Contributor
    Join Date
    09-22-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2016
    Posts
    134

    Re: Lookup formula finding incorrect results. (Bad formual?)

    sorted.

    thanks all

+ 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