Produce list of significant birthdays (birthdays ending in a 0)

Jasesair

Active Member
Joined
Apr 8, 2015
Messages
282
Office Version
  1. 2016
I have all the data needed but am struggling to create a working formula to show significant birthdays.

AA6:AA203 has ages as at 31 Dec
B6:B203 has everyone's names
C6:C203 has everyone's DOB

I think I'm wanting to identify the nth occurrence of column AA range ending in a 0, then return their name and their DOB. Ideally, if the formula could include significant birthdays of 18 and 21 as well as ones ending in 0, that would be amazing! I've been trying to avoid array formulas. Any assistance would be brilliant!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Do you mean you want to get the birthdays for every person who's age ends with a 0 and everybody who will be 18/21?
 
Upvote 0
Significant bdays is the only column requiring array formulas (ctrl + shift + enter on the first one then drag down). Data table actually goes down to 200th row just showing thru row 27 below. You'll need to adjust the formulas to reflect where your data is located

MrE20210129.xlsm
ABCDEFGHI
1NameDOBAgeNext bday significantNext bdayNameCurrent AgeSignificant bdays
2Name11/19/193586FALSE1/19/2022Name91392/7/2021
3Name21/13/193784FALSE1/13/2022Name133892/8/2021
4Name310/20/193288FALSE10/20/2021Name6392/20/2021
5Name41/18/196358FALSE1/18/2022Name53994/2/2021
6Name59/15/195169TRUE9/15/2021Name190194/6/2021
7Name62/20/198139TRUE2/20/2021Name123794/16/2021
8Name75/3/195070FALSE5/3/2021Name89695/10/2021
9Name86/6/195664FALSE6/6/2021Name189995/20/2021
10Name911/5/195367FALSE11/5/2021Name47896/18/2021
11Name108/18/195367FALSE8/18/2021Name83796/30/2021
12Name1110/22/198832FALSE10/22/2021Name135797/20/2021
13Name1211/14/200515FALSE11/14/2021Name11497/24/2021
14Name131/3/200120TRUE1/3/2022Name186498/13/2021
15Name148/21/195565FALSE8/21/2021Name5699/15/2021
16Name157/16/1920100FALSE7/16/2021Name93911/8/2021
17Name165/4/193783FALSE5/4/2021Name862912/5/2021
18Name176/9/1920100FALSE6/9/2021Name581912/10/2021
19Name183/1/192496FALSE3/1/2021Name13201/3/2022
20Name193/24/1920100FALSE3/24/2021Name148291/9/2022
21Name207/11/192298FALSE7/11/2021   
22Name218/25/197446FALSE8/25/2021   
23Name229/13/195268FALSE9/13/2021   
24Name2312/10/194872FALSE12/10/2021   
25Name244/22/192595FALSE4/22/2021   
26Name258/30/195070FALSE8/30/2021
27Name2611/20/20128FALSE11/20/2021
Sheet2
Cell Formulas
RangeFormula
D2:D27D2=OR(RIGHT(C2,1) & ""="9",C2=17,C2=20)
E2:E27E2=IF(DATE(YEAR(TODAY()), MONTH(B2),DAY(B2)) < TODAY(), DATE(YEAR(TODAY())+1, MONTH(B2),DAY(B2)),DATE(YEAR(TODAY()), MONTH(B2),DAY(B2)))+ ROW()/100000
G2:G25G2=IFERROR(INDEX($A$2:$A$200,MATCH(I2,$E$2:$E$200,0)),"")
H2:H25H2=IFERROR(INDEX($C$2:$C$200,MATCH(I2,$E$2:$E$200,0)),"")
I2:I25I2=IFERROR(AGGREGATE(15,6,$E$2:$E$200*(1/$D$2:$D$200),ROW()-1),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
identify the nth occurrence of column AA range ending in a 0, then return their name and their DOB. Ideally, if the formula could include significant birthdays of 18 and 21 as well as ones ending in 0,
See if this does what you want.

Jaseair.xlsm
BCAAABACADAE
1NameDoBAge this yearNameDoBSig. B'day
2Name 111/04/196754Name 424/10/200318
3Name 215/04/198239Name 520/12/197150
4Name 325/12/198833Name 620/05/198140
5Name 424/10/200318Name 821/01/200021
6Name 520/12/197150Name 119/03/200021
7Name 620/05/198140Name 1621/02/193190
8Name 75/07/199427Name 1816/11/198140
9Name 821/01/200021Name 1920/11/198140
10Name 925/02/197546   
11Name 1030/09/198635   
12Name 119/03/200021   
13Name 1220/11/198932   
14Name 1318/10/198932   
15Name 1418/03/199526   
16Name 1528/08/197843   
17Name 1621/02/193190   
18Name 1711/09/200219   
19Name 1816/11/198140   
20Name 1920/11/198140   
Birthdays
Cell Formulas
RangeFormula
AC2:AC20AC2=IF(AE2="","",INDEX(B:B,AGGREGATE(15,6,ROW(B$2:B$20)/(AA$2:AA$20=AE2),COUNTIF(AE$2:AE2,AE2))))
AD2:AD20AD2=IF(AC2="","",VLOOKUP(AC2,B$2:C$20,2,0))
AE2:AE20AE2=IFERROR(INDEX(AA:AA,AGGREGATE(15,6,ROW(AA$2:AA$20)/((RIGHT(AA$2:AA$20,1)="0")+(AA$2:AA$20=18)+(AA$2:AA$20=21)),ROWS(AE$2:AE2))),"")
AA2:AA20AA2=YEAR(DATE(YEAR(TODAY()),12,31))-YEAR(C2)
 
Upvote 0
.. or perhaps this slight variation with the significant birthdays in ascending order.

Jaseair.xlsm
BCAAABACADAE
1NameDoBAge this yearNameDoBSig. B'day
2Name 111/04/196754Name 424/10/200318
3Name 215/04/198239Name 821/01/200021
4Name 325/12/198833Name 119/03/200021
5Name 424/10/200318Name 620/05/198140
6Name 520/12/197150Name 1816/11/198140
7Name 620/05/198140Name 1920/11/198140
8Name 75/07/199427Name 520/12/197150
9Name 821/01/200021Name 1621/02/193190
10Name 925/02/197546   
11Name 1030/09/198635   
12Name 119/03/200021   
13Name 1220/11/198932   
14Name 1318/10/198932   
15Name 1418/03/199526   
16Name 1528/08/197843   
17Name 1621/02/193190   
18Name 1711/09/200219   
19Name 1816/11/198140   
20Name 1920/11/198140   
Birthdays (2)
Cell Formulas
RangeFormula
AC2:AC20AC2=IF(AE2="","",INDEX(B:B,AGGREGATE(15,6,ROW(B$2:B$20)/(AA$2:AA$20=AE2),COUNTIF(AE$2:AE2,AE2))))
AD2:AD20AD2=IF(AC2="","",VLOOKUP(AC2,B$2:C$20,2,0))
AE2:AE20AE2=IFERROR(AGGREGATE(15,6,AA$2:AA$20/((MOD(AA$2:AA$20,10)=0)+(AA$2:AA$20=18)+(AA$2:AA$20=21)),ROWS(AE$2:AE2)),"")
AA2:AA20AA2=YEAR(DATE(YEAR(TODAY()),12,31))-YEAR(C2)
 
Upvote 0
Solution
I rudely didn't send you any thanks and appreciation for this! It's exactly what I needed and works perfectly.
 
Upvote 0

Forum statistics

Threads
1,214,581
Messages
6,120,372
Members
448,957
Latest member
BatCoder

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