+ Reply to Thread
Results 1 to 6 of 6

nest IF formula

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    Connah's Quay, North Wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question nest IF formula

    I want to use a formula to determine an age grouping

    The groups are

    16 up to 19
    20 up to 24
    25 up to 29
    30 up to 34
    35 up to 39 and so on until we get to 59 then it is Over 60

    So if the cell has the age in, I want to put in the next cell the group it falls into, I thought an nested if statement would do that. I can do the first group as that will be <=19, and the last group would be >=60 but how do I do the betweens e.g 20 and 24 etc?

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: nest IF formula

    Whilst you could use a nested IF for this, it would be slow and cumbersome.
    How about a lookup table as per the attached? It could be hidden away elsewhere in the workbook rather than be in plain sight.
    Attached Files Attached Files

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: nest IF formula

    You could try a vlookup. You would put the list of ages into an area beginning with the lowest age you expect to see (assuming 0) then the break point for each, say 0 to 15 would be <=15, then 16 and 19 would both be 16 up to 19, etc.
    then where your ages are you use a vlookup and a TRUE instead of false and it will list each based on the age range you want.

    EDIT: see attached.
    Attached Files Attached Files
    Last edited by Sam Capricci; 04-02-2014 at 02:25 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    04-02-2014
    Location
    Connah's Quay, North Wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: nest IF formula

    Thank you so much, much easier , I think I was over complicating it
    Appreciate your quick reply and help

  5. #5
    Registered User
    Join Date
    04-02-2014
    Location
    Connah's Quay, North Wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: nest IF formula

    Thank you for your help much appreciated

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: nest IF formula

    You could look at this one too, this one lessens the # of rows you need to use for the vlookup.

    BTW, if your issue is solved don't forget to mark your post as solved using the thread tools at the top of the post. And since you're new here, you can thank ALL who helped by clicking on "* Add reputation" below their posts, that is how we advance on this forum.
    Attached Files Attached Files

+ 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. How shoudl I nest this formula
    By bunnyfrostr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-04-2014, 06:32 PM
  2. Nest IF formula has a proble.
    By Lensmeister in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2013, 10:26 AM
  3. Can you nest multiple SUMIFS into a formula?
    By DorothyFan1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-29-2011, 05:17 PM
  4. nest if formula
    By rwong99 in forum Excel General
    Replies: 1
    Last Post: 10-13-2009, 12:57 AM
  5. [SOLVED] how do you nest ROUNDDOWN in an IF formula?
    By numbersguy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-13-2006, 08:00 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