#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default WEEKNUM Function

Is there a switch I can use with weeknum function that will calculate week
numbers based on UK tax year rather than calender year?

TIA

Trevor


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default WEEKNUM Function

Try: =INT((A1-DATE(YEAR(A1)-(TEXT(A1,"mdd")+0<406),3,30))/7)

Where A1 houses the date you want to return the weeknum for.

Regards
Jon von der Heyden
--
Email: subst1tut3 numb3rs for l3tt3rs...


"Trevor Aiston" wrote:

Is there a switch I can use with weeknum function that will calculate week
numbers based on UK tax year rather than calender year?

TIA

Trevor



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default WEEKNUM Function

I don't think it is straight-forward, a the tax year starts on 5th April,
which could be any day of the week, whereas WEEKNUM functions are based upon
a week starting on a particular day.

If the week number is solely based upon the start date, then use

=INT((target_date-tax_year_start_date)/7)+1

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Trevor Aiston" wrote in message
...
Is there a switch I can use with weeknum function that will calculate week
numbers based on UK tax year rather than calender year?

TIA

Trevor




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default WEEKNUM Function

Try: =INT((A1-DATE(YEAR(A1)-(TEXT(A1,"mdd")+0<406),3,30))/7)

Where A1 houses the date you want to return the week num for.

Regards
Jon von der Heyden
--
Email: subst1tut3 numb3rs for l3tt3rs...


"Trevor Aiston" wrote:

Is there a switch I can use with weeknum function that will calculate week
numbers based on UK tax year rather than calender year?

TIA

Trevor



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I know which cell a function is called from? Murami Excel Worksheet Functions 3 November 24th 06 02:22 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 07:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"