Excel formula help
#1
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
Excel formula help
Hello
I am using Excel and I want to be able to take an amount of months (say, 46) and use Excel to calculate the amount of years and months that is (3 years 10 months), not how many years as a decimal (3.85).
Does anyone know how to do this ?
Dave
I am using Excel and I want to be able to take an amount of months (say, 46) and use Excel to calculate the amount of years and months that is (3 years 10 months), not how many years as a decimal (3.85).
Does anyone know how to do this ?
Dave
#5
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
Thanks chaps. I have 46 in B1. In B2 i have =INT(B1/12) and that gives me 3. If I out =MOD(B1/12) in D2 I get an error saying "Youve entered too few arguments for this function).
All I want is B2 to show the years and D2 to show the months, so B2 says "3", C2 says "years", D2 says "10" and E2 says "months". I can input C2 and E2 in text but how do I get the rest to work ?
Dave
All I want is B2 to show the years and D2 to show the months, so B2 says "3", C2 says "years", D2 says "10" and E2 says "months". I can input C2 and E2 in text but how do I get the rest to work ?
Dave
#7
Scooby Regular
Join Date: Jun 2002
Location: Perth, Western Australia
Posts: 1,866
Likes: 0
Received 0 Likes
on
0 Posts
Or you could be proper smart ar$e and output the lot in 1 cell taking into account 1 year, 1 month and no months
=IF(INT(B1/12)=1, INT(B1/12) & " year ",INT(B1/12) & " years ") & IF(MOD(B1,12)=0,"", IF(MOD(B1,12)=1, "and " & MOD(B1,12) & " month","and " & MOD(B1,12) & " months"))
=IF(INT(B1/12)=1, INT(B1/12) & " year ",INT(B1/12) & " years ") & IF(MOD(B1,12)=0,"", IF(MOD(B1,12)=1, "and " & MOD(B1,12) & " month","and " & MOD(B1,12) & " months"))
Trending Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM