|
-
Mar 28th, 2007, 03:47 AM
#1
Thread Starter
Lively Member
[RESOLVED] ages
in excel i am using this formula to work out someones age,
=INT($B$2-C11)/365.25
where $b$2 is todays date and c11 is the DOB
but it rounds it up so if they are 15 and a half it puts that they are sixteen, how can i force excel to round down.
thanks
joe
-
Mar 28th, 2007, 05:18 AM
#2
Re: ages
Use this formula:
Code:
=IF(MONTH(C11)<MONTH($B$2);YEAR(C11)-YEAR($B$2)-1;IF(MONTH(C11)=MONTH($B$2);IF(DAY(C11)>=DAY($B$2);YEAR(C11)-YEAR($B$2)-1;YEAR(C11)-YEAR($B$2))))
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Mar 28th, 2007, 06:40 AM
#3
Re: ages
Or:
=INT(($B$2-C11+1)/365.25)
-
Mar 28th, 2007, 11:41 AM
#4
Thread Starter
Lively Member
Re: ages
i have tried both of these methods and neither of them seem to work, am i doing something wrong?
any other suggestion?
thanks joe
-
Mar 28th, 2007, 02:07 PM
#5
Re: ages
My one works for me. How does yours not work? Give an example of what you have put in the cells.
-
Mar 28th, 2007, 02:38 PM
#6
Thread Starter
Lively Member
Re: ages
sorry i have got it to work now thanks
-
Mar 28th, 2007, 02:39 PM
#7
Re: ages
in excel i am using this formula to work out someones age,
=INT($B$2-C11)/365.25
where $b$2 is todays date and c11 is the DOB
but it rounds it up so if they are 15 and a half it puts that they are sixteen, how can i force excel to round down.
thanks
joe
Hi Joe
You can also use the above formula as
=INT((TODAY()-C11)/365.25)
Where C11 is the DOB and Today() gives you todays date...
Even in my case Excel rounds 15.5 to 15
Just try this in any cell and tell me what do you get?
=INT(15.5)
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Mar 28th, 2007, 02:47 PM
#8
Thread Starter
Lively Member
Re: [RESOLVED] ages
yeh it rounds down but i have got it sorted now, thanks alot anyway.
thanksalot everyone
joe
-
Mar 28th, 2007, 02:48 PM
#9
Thread Starter
Lively Member
Re: [RESOLVED] ages
i used this code and just copied it down into everycell,
Code:
=IF(C11="","",INT(($B$2-C11+1)/365.25))
-
Mar 28th, 2007, 02:49 PM
#10
Re: [RESOLVED] ages
Here is an accurate way to find the DOB 
=DATEDIF(A1,NOW(),"y") & " years, " & DATEDIF(A1,NOW(),"ym") & " months, " & DATEDIF(A1,NOW(),"md") & " days"
A1 = DOB
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Mar 28th, 2007, 02:54 PM
#11
Thread Starter
Lively Member
Re: [RESOLVED] ages
why would you want to get somebodys date of birth though from their age, because nobody knows how old they are exactly, or am i not understanding it right?
-
Mar 28th, 2007, 02:58 PM
#12
Re: [RESOLVED] ages
Here is an accurate way to find the DOB
sorry that's a typo... 
It should be
Here is an accurate way to find the Age
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Mar 28th, 2007, 03:00 PM
#13
Thread Starter
Lively Member
Re: [RESOLVED] ages
so how is it more accurate than
Code:
INT(($B$2-C12+1)/365.25)
as this seems to work fine?
or does yours return their age in years, months and days?
-
Mar 28th, 2007, 03:05 PM
#14
Re: [RESOLVED] ages
as this seems to work fine?
or does yours return their age in years, months and days?
Yes it does
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|