+ Reply to Thread
Results 1 to 4 of 4

IF funcation (maybe???)???

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

    IF funcation (maybe???)???

    My second problem is this

    I have a field called “Age”. What I want to do is;

    If I type in the person’s age say “26” then I want another cell to display an age range (i need to entered the age ranges i want eg “16-20, 21-29, 30-39” etc. So if I type in 26 in the first filed I want to second cell to display “20-29”.

    Again, any help??
    Last edited by burnsie; 09-22-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: IF funcation (maybe???)???

    You can use a LOOKUP table either as a range or an inline array, eg

    =LOOKUP(A1,{0,16,21,30,40},{"<16","16-20","21-29","30-39","40+"})

    where A1 contains age (eg 26 per your ex.)

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: IF funcation (maybe???)???

    or this:

    =IF(B1<21;"16-20";(10*(ROUNDDOWN(B1/10;0))+1)&" - "&(10*(1+ROUNDDOWN(B1/10;0))))

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

    Re: IF funcation (maybe???)???

    cool.

    sorted.

    now to try the other thread

+ 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