+ Reply to Thread
Results 1 to 13 of 13

Help with Nested If Formula

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    Holly Springs, NC
    MS-Off Ver
    10
    Posts
    22

    Help with Nested If Formula

    Hi -
    I need a formula that would look at a value and return a result based on the value. The value I'm trying to define is an Age Group based on an "Age" field.

    Like this:

    Age Age Group (formula results)
    10 0-10 Days
    14 11-30 Days
    35 31-60 Days
    65 61-90 Days
    111 91-120 Days
    345 >221 Days
    (see attached)

    Thanks in advance!
    Helene
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Help with Nested If Formula

    Formula for C2 and fill down =LOOKUP(A2,{0,10,14,35,65,111,345},{"0-10","0-10","11-30","31-60","61-90","91-120","345"}) & " Days"
    Last edited by mehmetcik; 10-02-2020 at 05:21 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    11-07-2017
    Location
    Holly Springs, NC
    MS-Off Ver
    10
    Posts
    22

    Re: Help with Nested If Formula

    Hi -
    I did not explain what I wanted correctly. Sorry about that. I need the formula to evaluate the number in the cell A2 (it could be any number between 0 and more than 221 days) and return the age group based on that number.

    I'm attaching another example file.

    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,415

    Re: Help with Nested If Formula

    Response #3

    Age data can be negative and greater than 130 ? Please post an excel file with an example.

    The answer you expect is the number or the #2 age range
    Last edited by wk9128; 10-02-2020 at 09:32 PM.

  5. #5
    Registered User
    Join Date
    11-07-2017
    Location
    Holly Springs, NC
    MS-Off Ver
    10
    Posts
    22

    Smile Re: Help with Nested If Formula

    Hi -
    The number can be greater than 30. The answer or formula should be in column B (age range). I've attached a new file.

    Thank you!
    Attached Files Attached Files

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

    Re: Help with Nested If Formula

    Your last group ends with 120 days and the next condition is "larger than 221 days"?
    What happens between 120 and 221 ? ( or did you mean 121) ?

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,415

    Re: Help with Nested If Formula

    B2 cell formula

    HTML Code: 

  8. #8
    Registered User
    Join Date
    11-07-2017
    Location
    Holly Springs, NC
    MS-Off Ver
    10
    Posts
    22

    Re: Help with Nested If Formula

    I missed one. The next condition should be 121-220 days and the last >221 days.

    Thank you!

  9. #9
    Registered User
    Join Date
    11-07-2017
    Location
    Holly Springs, NC
    MS-Off Ver
    10
    Posts
    22

    Re: Help with Nested If Formula

    Quote Originally Posted by Pepe Le Mokko View Post
    Your last group ends with 120 days and the next condition is "larger than 221 days"?
    What happens between 120 and 221 ? ( or did you mean 121) ?
    I missed one. The next condition should be 121-220 days and the last >221 days.

    Thank you!

  10. #10
    Registered User
    Join Date
    11-07-2017
    Location
    Holly Springs, NC
    MS-Off Ver
    10
    Posts
    22

    Re: Help with Nested If Formula

    Quote Originally Posted by wk9128 View Post
    B2 cell formula

    HTML Code: 

    Thank you!

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help with Nested If Formula

    Please try at B2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    11-07-2017
    Location
    Holly Springs, NC
    MS-Off Ver
    10
    Posts
    22

    Re: Help with Nested If Formula

    Thank you!

  13. #13
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,415

    Re: Help with Nested If Formula

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'.

+ 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. Value of cell formula not working in nested IF formula.
    By dschierman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-01-2019, 04:59 PM
  2. [SOLVED] Nested IF and nested Concatenation formula
    By VisionSmart in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-09-2018, 08:00 AM
  3. Help with a nested, nested, nested formula
    By duanrd2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2017, 04:43 PM
  4. Replies: 2
    Last Post: 08-24-2014, 04:56 AM
  5. Nested IF-formula with AND
    By MissPucca in forum Excel General
    Replies: 4
    Last Post: 04-02-2010, 09:47 AM
  6. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  7. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM

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