Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
RonB
 
Posts: n/a
Default Custom Format for WEEKNUM(Today())

I am using WEEKNUM in Excel to do some COUNTIF functions and have problems
with matches because Excel returns a single digit rather than 2 of weeks 1
throuhg 9 of any given year. Using teh COUNTIF function 20051 then
mathmatically is the same as 200510. Is there some way to format the week
returned to be 2 digits?

--
RonB
  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

Something like this:
=TEXT(WEEKNUM(A1),"00")


Arvi Laanemets


"RonB" wrote in message
...
I am using WEEKNUM in Excel to do some COUNTIF functions and have problems
with matches because Excel returns a single digit rather than 2 of weeks 1
throuhg 9 of any given year. Using teh COUNTIF function 20051 then
mathmatically is the same as 200510. Is there some way to format the week
returned to be 2 digits?

--
RonB



  #3   Report Post  
RonB
 
Posts: n/a
Default

Thanks...

This solved my problem.

"Arvi Laanemets" wrote:

Hi

Something like this:
=TEXT(WEEKNUM(A1),"00")


Arvi Laanemets


"RonB" wrote in message
...
I am using WEEKNUM in Excel to do some COUNTIF functions and have problems
with matches because Excel returns a single digit rather than 2 of weeks 1
throuhg 9 of any given year. Using teh COUNTIF function 20051 then
mathmatically is the same as 200510. Is there some way to format the week
returned to be 2 digits?

--
RonB




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
format one data series, with error bars, and use it as default JBR Charts and Charting in Excel 2 January 9th 05 04:03 PM
Custom Date format ie. 01.01.05 W1 (W1 is week 1) aspen Excel Discussion (Misc queries) 3 December 29th 04 04:23 AM
How do I make a Custom Datre Format ie 01.01.05 WK1 (WK is Week 1) sorry about previous post aspen Excel Discussion (Misc queries) 0 December 29th 04 01:05 AM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM
Date on two lines using a custom cell format possible? .:mmac:. Excel Discussion (Misc queries) 5 December 4th 04 09:41 PM


All times are GMT +1. The time now is 08:19 PM.

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

About Us

"It's about Microsoft Excel"