Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

financial year in Excel

Status
Not open for further replies.

sedgely

Technical User
Feb 21, 2002
406
GB
I have a spreadsheet that contains a column of dates, does anyone know of a formula i could use to convert these into week numbers based on the financial year i.e week 1 starts on the first Monday of April

Cheers Craig
 
Try this:

=INT(NETWORKDAYS(DATE(YEAR(A1),4,1),A1)/5)+1

Assuming that the date you want to check is in cell A1.

I hope this helps!



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Thanks for that Mike, almost works - the only problem is that for the 1st April the result is "-12" where it should be "1"
Any thoughts

Craig
 
Check your date format! ;-)

I think you are checking January 4th and not April 1st!



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Will this work?

=IF(MONTH(A1)>3,WEEKNUM(A1)-13,WEEKNUM(A1)+39)

Blue
 
This is an optimized version of the above formula, it also works with dates before the date you are checking:

=IF((INT(NETWORKDAYS(DATE(YEAR(G24),4,1),G24)/5)+1)<0,(INT(NETWORKDAYS(DATE(YEAR(G24)-1,4,1),G24)/5)+1),(INT(NETWORKDAYS(DATE(YEAR(G24),4,1),G24)/5)+1))

I hope &quot;this&quot; helps!



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Hey Blue
That worked a treat

Thanks to both of you

Craig
 
This will work for all years:

=IF(MONTH(A1)>3,WEEKNUM(A1)-(WEEKNUM(DATE(YEAR(A1),4,1))-1),52-(WEEKNUM(DATE(YEAR(A1),4,1)-1))+WEEKNUM(A1))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top