Moon Phases.

Nigel Martin

Board Regular
Joined
Feb 17, 2002
Messages
133
Hi Guys,

Does anyone have a spreadsheet or the formulas that calculate the moon phases for any given year in the UK.

Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
hi!
here's am approxiamtion of the moon phase
0..3 is new moon.
4..7 full moon.
try this. not fully tested.
but please give me feed back .ok

<font face=Courier New><SPAN style="color:#00007F">Function</SPAN> Moon_Phase(y, m, d) <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Integer</SPAN>
    <SPAN style="color:#00007F">If</SPAN> m < 3 <SPAN style="color:#00007F">Then</SPAN>
        y = y - 1
        m = m + 12
    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN>
    m = m + m
    c = 365.25 * y
    e = 30.6 * m
    jd = c + e + d - 694039.09
    jd = jd / 29.53
    b = Int(jd)
    jd = jd - b
    b = Int(jd * 8 + 0.5)
    <SPAN style="color:#00007F">If</SPAN> b = 8 <SPAN style="color:#00007F">Then</SPAN> b = 0
    Moon_Phase = b
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Function</SPAN></FONT>
 
Upvote 0

Forum statistics

Threads
1,216,577
Messages
6,131,509
Members
449,654
Latest member
andz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top