Hello,
I have a list of circa 150 date of births and need a formula to search if today() is anybody birthday
Thanks
Kevin
Hello,
I have a list of circa 150 date of births and need a formula to search if today() is anybody birthday
Thanks
Kevin
Try this...
Enter array formula in cell C3 and copy down
Formula:
=IFERROR(INDEX(B:B,SMALL(IF(A$3:A$12=$B$2,ROW(A$3:A$12)),ROWS(C$3:C3))),"")
**Must be entered with Ctrl+Shift+Enter key combination.
I think that it would be better just to have Month and Day as text and Col A and TODAY() should be as text as well
Formula:
=TEXT(TODAY(),"mmm-dd")
v A B C 1 Today's Date 2 B-Day Jun-14 Today's Birthday 3 Jun-15 John Jim 4 Jun-16 Steve Mellisa 5 Jun-14 Jim 6 Jun-18 Lisa 7 Jun-19 Kate 8 Jun-20 Paul 9 Jun-14 Mellisa 10 Jun-22 Silvia 11 Jun-23 Jerry 12 Jun-24 Kate
Last edited by AlKey; 06-14-2017 at 01:13 PM.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
If date of birth in column "A"
In column "B2"Formula:
=IF(ISERR(DATEDIF(TODAY(),DATE(YEAR(TODAY()),MONTH(A2),DAY(A2)),"d")),IF(AND(DATEDIF(DATE(YEAR(TODAY()),MONTH(A2),DAY(A2)),TODAY(),"d")<=2,WEEKDAY(TODAY(),2)=1),"The last weekend",IF(AND(MONTH(A2)=1,MONTH(TODAY())=12),DATEDIF(TODAY(),DATE(YEAR(TODAY())+1,MONTH(A2),DAY(A2)),"d"),"Not soon enough")),IF(DATEDIF(TODAY(),DATE(YEAR(TODAY()),MONTH(A2),DAY(A2)),"d")<61,IF(TODAY()-DATE(YEAR(TODAY()),MONTH(A2),DAY(A2))=0,"Happy birthday",DATEDIF(TODAY(),DATE(YEAR(TODAY()),MONTH(A2),DAY(A2)),"d")),"Not soon enough"))
copy down till your range.
atul
If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.
Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".
Thank you both for taking the time to answer my question, both solutions worked.
i am using avk's solution as it suits my needs better
Thanks again
Kevin
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks