Hi,
I need to calculate day and night time based on Sun Raise and Sun Set, since both time are not starting and ending same time, it creates time gap.
Also, it is important to see which side is greater weather its DAY TIME is longer than NIGHT TIME, the total of both sides should be 24 hours, since DAY has its boundaries of Sun raise and set its very clear but the problem is with night time which need to be calculated correctly in formula.
In this case, Sunraise and sunset time's are constant, the only problem is the gap between them which is at early morning time, in above example if you see the Suraise time is 6:22 AM and Sunset is 5:45 PM which total : 11:23:00 the day leaves the gap of 37 minutes to complete the 12 hours, i need this 37 minutes to be added in night time, when i try to substract "Night End Time" from Sunset time its gave me error because it will be something we substracting AM from PM time.
Anyhow, to avoid this problem in future i want to use IF function to determine which side DAY or NIGHT is longer time than add the remaining time to its opposite side i.e (if day is longer and night time is short than remaining night time to be added in day time and vise versa for night time)
I hope its clarifies the issue.
regards,
MBA
I need to calculate day and night time based on Sun Raise and Sun Set, since both time are not starting and ending same time, it creates time gap.
Also, it is important to see which side is greater weather its DAY TIME is longer than NIGHT TIME, the total of both sides should be 24 hours, since DAY has its boundaries of Sun raise and set its very clear but the problem is with night time which need to be calculated correctly in formula.
Mirza Bahadur Ali.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
C | D | E | F | G | H | I | J | |||
6 | 0:00:00 | One Star Day | Day Time | 5:45:00 PM | Sun Set | 6:22:00 AM | Sun Rise | |||
7 | 0:00:00 | One Star Night | Night Time | 6:21:00 AM | Night Ends | 5:46:00 PM | Night Starts | |||
Saat Malum Karna |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C6:C7 | C6 | =E6/12 |
G7 | G7 | =I6-TIME(,1,) |
I7 | I7 | =G6+TIME(,1,) |
In this case, Sunraise and sunset time's are constant, the only problem is the gap between them which is at early morning time, in above example if you see the Suraise time is 6:22 AM and Sunset is 5:45 PM which total : 11:23:00 the day leaves the gap of 37 minutes to complete the 12 hours, i need this 37 minutes to be added in night time, when i try to substract "Night End Time" from Sunset time its gave me error because it will be something we substracting AM from PM time.
Anyhow, to avoid this problem in future i want to use IF function to determine which side DAY or NIGHT is longer time than add the remaining time to its opposite side i.e (if day is longer and night time is short than remaining night time to be added in day time and vise versa for night time)
I hope its clarifies the issue.
regards,
MBA