#1
|
|||
|
|||
WEEKNUM function not adhering to the IF statement
Dear All,
I have the following formula in my excel base don the date_added column =IF(WEEKNUM([@[date_added]])<=9,"0","") this adds 0 till the week is up to 9 so the week number come as 01,02,03,04,05,06,07,08,09 going to 10,11 etc.... but for some odd reason it calculates the 28/02/2016 as 9 and not as 09 regardless of what I do it calculates that date as 9 and not as 09 which is causing issues when I creating Pivot table and trying to perform average over the weeks. This behavior can be tested using the formula below, just copy and past in Excel and you will see this anomaly. Any help would be appreciated. =IF(WEEKNUM(DATE(2016,2,28))<=9,"0","") I am using MS Office 2010 and any help would be appreciated. kind regards, |
#2
|
||||
|
||||
Why not =text(weeknum(your-date),"00")
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
Tags |
error, formula, formula help |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restrict Editing function disable insert textbox function | IanM_01 | Word | 5 | 11-21-2015 02:29 AM |
formula needed to sum weeknum results from multiple worksheets | JOJO101 | Excel | 0 | 06-27-2015 11:06 PM |
#REF! Error in calling VBA function disappears when function is copied | lcaretto | Excel Programming | 2 | 05-26-2014 07:19 PM |
Using WEEKNUM to calculate how many weeks from date to today. | stephen_ | Excel | 1 | 07-02-2013 06:41 AM |
Mail Merge Function not Noticing 'True' vs. 'False' Statement | danellekent | Mail Merge | 1 | 04-27-2012 02:19 AM |