Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default calculated form field

I have a form in excel, in which one field a birth date is entered and in another field it calculates the age of the person, can someone please help me with this process?
  #2   Report Post  
Member
 
Location: Bangalore
Posts: 41
Default

Quote:
Originally Posted by Crimsonk91 View Post
I have a form in excel, in which one field a birth date is entered and in another field it calculates the age of the person, can someone please help me with this process?
Hi,

Is that all your form will do? If yes, I suggest use something in Excel which is less tedious to create. If I enter the DOB in cell A1 you can enter the following formula in cell B1 to see number of years, months and days the person is old from today.

=DATEDIF(A1,TODAY(),"y")&" Years "&DATEDIF(A1,TODAY(),"ym") & " Months and "& DATEDIF(A1,TODAY(),"md")& " Days."

If you want the same thing in the user form. Use the same technique (Datediff) and this should be helpful. Let me know if you have difficulty getting it on user form.

Thanks
Prashant
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default calculated form field

On Wednesday, October 17, 2012 12:44:57 AM UTC-4, Crimsonk91 wrote:
I have a form in excel, in which one field a birth date is entered and

in another field it calculates the age of the person, can someone please

help me with this process?









--

Crimsonk91


Here is a caluclation for age:
FIX(DateDiff("d", CDate(#04/01/1962#), NOw()) / 365.25)
Mike
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table, IF function, calculated item versus calculated field NomadPurple Excel Discussion (Misc queries) 1 March 9th 10 03:17 PM
I want to create a calculated item based on a calculated field Stijn Excel Discussion (Misc queries) 1 August 25th 08 05:30 PM
Calculated Field and Calculated Item in Pivot Table Fred Smith Excel Discussion (Misc queries) 0 March 4th 07 08:15 PM
Pivot Table Formulas Calculated Item / Calculated Field Vikram Dhemare Excel Programming 2 October 10th 06 08:45 AM
pivot table formulas for calculated field or calculated item Vicky Excel Discussion (Misc queries) 3 June 6th 06 05:06 AM


All times are GMT +1. The time now is 10:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"