Labeling Generations

zinah

Active Member
Joined
Nov 28, 2018
Messages
368
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have list of employees and their date of birth, I need tolabel each employee with the right generation name according to the list below:

[TABLE="width: 107"]
<tbody>[TR]
[TD="width: 143, bgcolor: transparent"] Generation
[/TD]
[/TR]
[TR]
[TD="width: 143, bgcolor: transparent"] 1984-2002 – Millennial

[/TD]
[/TR]
[TR]
[TD="width: 143, bgcolor: transparent"] 1946-1964 – Baby Boomers

[/TD]
[/TR]
[TR]
[TD="width: 143, bgcolor: transparent"] 1965-1983 – Gen X
[/TD]
[/TR]
[TR]
[TD="width: 143, bgcolor: transparent"] 1946-1964 - Baby Boomers
[/TD]
[/TR]
[TR]
[TD="width: 143, bgcolor: transparent"] 1927-1945 – Traditionalists
[/TD]
[/TR]
[TR]
[TD="width: 143, bgcolor: transparent"] Not Available
[/TD]
[/TR]
</tbody>[/TABLE]


EE Name Date of Birth
A 1/1/1960
B 1/1/1989
C 1/1/1970
D 1/1/1995

Can you help me with sharing the right formula?

Thank you!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I'd probably just use a nested if statement in this case. Where years are in column B:

Code:
=IF(YEAR(B2)>=1984,"Millennial",
IF(YEAR(B2)>=1965,"Gen X",
IF(YEAR(B2)>=1946,"Baby Boomers",
IF(YEAR(B2)>=1927,"Traditionalists","-"))))
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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