Populating if numbers are in a column

Gummyworms1234

New Member
Joined
Jul 18, 2019
Messages
28
Hello everyone,

I have a simple question which has me stuck for some reason. I have posted a picture of what I am trying to do. I want the stages of life kids are in to automatically populate based on their age but I can't figure out the formula to use. I posted a screenshot of what I am trying to do. For example, the stage Bob would be in is grade school, Susan would be in grade school, Steven would be in pre school and Mike would be a toddler. Thanks for the help!

Ages.PNG
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Wouldn't this be easier if the stages sheet was like (simple Vlookup)?
1​
toddler
2​
toddler
3​
pre-school
4​
pre-school
5​
pre-school
6​
grade school
7​
grade school
8​
grade school
9​
grade school
10​
grade school
11​
grade school
12​
grade school
 
Upvote 0
I notice that you have age 5 under BOTH "pre school" and "grade school".
Is that correct, or is that a typo?
If correct, then do you want BOTH stages to show if the person is age 5?
 
Upvote 0
I notice that you have age 5 under BOTH "pre school" and "grade school".
Is that correct, or is that a typo?
If correct, then do you want BOTH stages to show if the person is age 5?
Sorry that was a typo. Having 5 under pre school is fine.
 
Upvote 0
Another way, using no lookup table or grid, and just imbedding the logic into the formula is the following.
Place this formula in cell C3:
Excel Formula:
=IF(B3>=6,"grade school",IF(B3>=3,"pre-school",IF(B3>=1,"toddler","unknown")))
 
Upvote 0
Another way, using no lookup table or grid, and just imbedding the logic into the formula is the following.
Place this formula in cell C3:
Excel Formula:
=IF(B3>=6,"grade school",IF(B3>=3,"pre-school",IF(B3>=1,"toddler","unknown")))
That would work but the range I have doesn't go in a typical 1, 2, 3 order. It jumps around randomly. One range could be 1, 6, 9, 24, 56 and 70 for example.
 
Upvote 0
That would work but the range I have doesn't go in a typical 1, 2, 3 order. It jumps around randomly. One range could be 1, 6, 9, 24, 56 and 70 for example.
OK, we can only base our solutions on the explanation and data that you present us (we aren't mind-readers!), and the example you posted was very linear with distinct cut-offs.

That actually is a good example why when posting questions here, you should not oversimplify it for our sake.
Otherwise, you may get solutions that work for the example/situation which you posted, but would not work on your actual data.
So it is always best to represent the actual scenario you have, and not oversimplify it.
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top