Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-09-2016, 02:27 AM
darkoman darkoman is offline WEEKNUM function not adhering to the IF statement Windows 7 64bit WEEKNUM function not adhering to the IF statement Office 2010 64bit
Novice
WEEKNUM function not adhering to the IF statement
 
Join Date: Jun 2016
Posts: 1
darkoman is on a distinguished road
Unhappy 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,
Reply With Quote
  #2  
Old 06-09-2016, 06:28 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline WEEKNUM function not adhering to the IF statement Windows 7 64bit WEEKNUM function not adhering to the IF statement Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
Reply

Tags
error, formula, formula help



Similar Threads
Thread Thread Starter Forum Replies Last Post
WEEKNUM function not adhering to the IF statement 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
WEEKNUM function not adhering to the IF statement #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
WEEKNUM function not adhering to the IF statement Mail Merge Function not Noticing 'True' vs. 'False' Statement danellekent Mail Merge 1 04-27-2012 02:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft