Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do you re-code data? Age with decimals into age by full year
Hi, I have a data set in which age in years was calcluated from subtracting
"today's date" from the birthdate. The resulting age includes digits below decimal points. I want to re-code or format the data so the age would be in integers, but it will always be rounded down -- for example, 5.8 years will be recoded as 5 years, as well as 5.2 years. What is an easy way to do this for all cases in the data set? I want this to not only display as integers, but also be read as integers, so original 5.2 and 5.8s will be read as same numbers (so I can sort by age, and then sort by another variable within age). Thank you! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
How do you re-code data? Age with decimals into age by full year
=INT(your_formula)
or =ROUNDDOWN(your_formula,0) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "headachewithExcel" wrote in message ... Hi, I have a data set in which age in years was calcluated from subtracting "today's date" from the birthdate. The resulting age includes digits below decimal points. I want to re-code or format the data so the age would be in integers, but it will always be rounded down -- for example, 5.8 years will be recoded as 5 years, as well as 5.2 years. What is an easy way to do this for all cases in the data set? I want this to not only display as integers, but also be read as integers, so original 5.2 and 5.8s will be read as same numbers (so I can sort by age, and then sort by another variable within age). Thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA code and decimals | New Users to Excel | |||
How to display weeknumber with year code | Excel Worksheet Functions | |||
Pivot table formats text data with 2 decimals | Excel Discussion (Misc queries) | |||
Charting a full year without zeros | Charts and Charting in Excel | |||
Data Validation (Specific Decimals or Whole #) | Excel Worksheet Functions |