satishkumar123
New Member
Hi,
For Astro Calculation, I looking for a excel formula to add the 2 dates with Hr and Min.
Each components (Year,Month,Day,Hr,Min) are in individual cell.
Take the below data....
[pre]
[/pre]
----------------------
After adding the above dates, I should get final added values as "1989-12-19-7-15."
But I am getting "1989-12-18-7-15." by using the below formula.
=DATE(SUM(A1:A2),SUM(B1:B2)+INT(SUM(C1:C2)/30),MOD(SUM(C1,C2),30)) + TIME(D1+D2,E1+E2,0)
In the Time factor, if the hour is more than 24, the quotient part should add to the day component.
Hour ==> 16+14 = 30 hrs. So 1 day & 6 hour.
Min==> 51+24 = 75 min. 1 hr & 15 min.
The Hr becomes as 7 ( 6 hr + 1hr)
The Min is 15 min.
The day should be added with one (ie., 1 day [Hour ==> 16+14 = 30 hrs. So 1 day & 6 hour.])
Note- By default a month hold 30 days only.
Thanks
Sat.
For Astro Calculation, I looking for a excel formula to add the 2 dates with Hr and Min.
Each components (Year,Month,Day,Hr,Min) are in individual cell.
Take the below data....
[pre]
Code:
Year = A1,A2
Month=B1,B2
Day=C1,C2
Hr=D1,D2
Min=E1,E2
Year Mon Day Hr Min
1978 08 09 16 51
0000 04 09 14 24
--------------------
----------------------
After adding the above dates, I should get final added values as "1989-12-19-7-15."
But I am getting "1989-12-18-7-15." by using the below formula.
=DATE(SUM(A1:A2),SUM(B1:B2)+INT(SUM(C1:C2)/30),MOD(SUM(C1,C2),30)) + TIME(D1+D2,E1+E2,0)
In the Time factor, if the hour is more than 24, the quotient part should add to the day component.
Hour ==> 16+14 = 30 hrs. So 1 day & 6 hour.
Min==> 51+24 = 75 min. 1 hr & 15 min.
The Hr becomes as 7 ( 6 hr + 1hr)
The Min is 15 min.
The day should be added with one (ie., 1 day [Hour ==> 16+14 = 30 hrs. So 1 day & 6 hour.])
Note- By default a month hold 30 days only.
Thanks
Sat.