Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I've been at it for hours and I'm at the point where I'm just really
messed up. I'm trying to write a formula that uses dates (mm/dd/yy) to figure out what age group the kids fall in to. The group the kids fall into is determined by their age as of May 15th. In other words, if she is 11 on the 14th, she competes in the 11-12 age group. If she's 11 on the 15th, she competes in the 11-12 age group, but if she's 11 on the 16th, she competes in the 9-10 age group. We've got 8&Under, 9-10, 11-12, 13-14, 15-16, and 17-18. I think I have to first figure out their actual age in one column and then do another formula to take it to the end result I want, but I'm no longer sure. If anyone can help, I would appreciate it. Thank you. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() If your date of birth is in A2 you can use this formula to give the correct category. Note: it will give different results on 1st Jan 2007 =LOOKUP(DATEDIF(A2,DATE(YEAR(TODAY()),5,15),"y"),{ 0,9,11,13,15,17,19},{"8&under","9-10","11-12","13-14","15-16","17-18","too old"}) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=550843 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() daddylonglegs wrote: If your date of birth is in A2 you can use this formula to give the correct category. Note: it will give different results on 1st Jan 2007 =LOOKUP(DATEDIF(A2,DATE(YEAR(TODAY()),5,15),"y"),{ 0,9,11,13,15,17,19},{"8&under","9-10","11-12","13-14","15-16","17-18","too old"}) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=550843 Thank you very much Daddy. It worked like a charm! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert Automatic, Non-Updating Date Stamp | Excel Discussion (Misc queries) | |||
Need to Improve Code Copying/Pasting Between Workbooks | Excel Discussion (Misc queries) | |||
Adding XY days to date in cells | Excel Discussion (Misc queries) | |||
Another Date issue. | Excel Worksheet Functions | |||
Date Math Problem | Excel Worksheet Functions |