Calculating if today is someone's birthday

G

Ged

I have a list of names with date of birth, how do I work out if today is
someone's birthday?

It may seem easy just to scan through the list to spot the right day, but
I've got 15000 lines, so that's not really an option!

Thanks in advance
 
S

Simon

I have a list of names with date of birth, how do I work out if today is
someone's birthday?

It may seem easy just to scan through the list to spot the right day, but
I've got 15000 lines, so that's not really an option!

Thanks in advance

Parse, or convert to global number from the dates compared to birth
date and use IF function. Maybe use global date excluding year so can
find for next year.
 
B

Bob Phillips

=INDEX(M1:M200,MATCH(1,(MONTH(TODAY())=MONTH(N1:N200))*(DAY(TODAY())=DAY(N1:N200)),0))

where I am assuming the names are in column M, the birthdays .

This is an array formula, so commit with Ctrl-Shift-Enter, not just Enter
 
G

Ged

Oh right. I have the name in column F, and DOB in M, so i can fix that.
Presumabbly the range have $ in for when I copy it down.

What should the outcome show? I'm just getting #N/A (and i'm using a test
sheet so have fixed the DOB to be today's date (not year, obviously)).
 
D

Dave Peterson

I would add a column that just shows the month and day:

=text(a2,"mmm dd")

Then drag down as far as needed.

Then I could filter/sort by this column to see the birthdays I wanted.
 
G

Ged

That's slightly easier!

I'd still like to get the other method to work, just because I'm stubborn.
 
G

Ged

Yes, but i had the columns wrong. Now I get the result 114541 (or 07/08/2213
in date format) on a birthday of 30/11/1938
 
D

Dave Peterson

If you actually filter on today's date (m/d/y), then that would tell you who was
born today--not the people who are celebrating their birthdays today.
 
T

TomPl

Guess I didn't think that through.

Dave Peterson said:
If you actually filter on today's date (m/d/y), then that would tell you who was
born today--not the people who are celebrating their birthdays today.
 
B

Bill Sharpe

Ged said:
I have a list of names with date of birth, how do I work out if today is
someone's birthday?

It may seem easy just to scan through the list to spot the right day, but
I've got 15000 lines, so that's not really an option!

Thanks in advance
If the dates are in this format: 8/22/2008, 8/22/1999, for example, then
a simple "Find All" and entering 8/22 should locate both dates.

Why complicate matters?

Bill
 
Top