Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default Idenfying WeekDays

My date data comes in like this....

20071202
20071202
20071203
20071203
20071203
20071203
20071203
20071203
20071204
20071204
20071204
20071204


Is there a formula that can identfy weekdays ?

Thank You In Advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Idenfying WeekDays

With your sample data in A1:A12

This formula returns TRUE for weekdays, FALSE for weekends:
B1: =WEEKDAY(TEXT(A1,"0000-00-00"),2)<6

Alternatively, this formula calcs A1 as a date:
B1: =--TEXT(A1,"0000-00-00")
Then you can format it to display as a date or weekday.

Either way, copy the formula down as far as you need.

Is that something you can work with?
or do you need something else?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"carl" wrote in message
...
My date data comes in like this....

20071202
20071202
20071203
20071203
20071203
20071203
20071203
20071203
20071204
20071204
20071204
20071204


Is there a formula that can identfy weekdays ?

Thank You In Advance




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Idenfying WeekDays

One way with your data in A1:

=TEXT(MID(A1,5,2)&"/"&RIGHT(A1,2)&"/"&LEFT(A1,4),"dddd")

HTH,
Paul

--

"carl" wrote in message
...
My date data comes in like this....

20071202
20071202
20071203
20071203
20071203
20071203
20071203
20071203
20071204
20071204
20071204
20071204


Is there a formula that can identfy weekdays ?

Thank You In Advance



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Idenfying WeekDays

hi try this

=weekday(date(left(a2,4),month(mid(a2,5,2),day(rig ht(a2,2))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"carl" escreveu:

My date data comes in like this....

20071202
20071202
20071203
20071203
20071203
20071203
20071203
20071203
20071204
20071204
20071204
20071204


Is there a formula that can identfy weekdays ?

Thank You In Advance

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Idenfying WeekDays

I would run the data through DataText to ColumnsNextNextColumn Data
FormatDateYMD

Then in an adjacent column enter =WEEKDAY(cellref) and copy down.


Gord Dibben MS Excel MVP

On Mon, 17 Dec 2007 12:11:08 -0800, carl wrote:

My date data comes in like this....

20071202
20071202
20071203
20071203
20071203
20071203
20071203
20071203
20071204
20071204
20071204
20071204


Is there a formula that can identfy weekdays ?

Thank You In Advance


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
Weekdays only! rexmann Excel Discussion (Misc queries) 2 August 14th 07 02:52 PM
Number of Weekdays Vicki Excel Worksheet Functions 3 May 22nd 06 11:38 PM
WEEKENDS VS. WEEKDAYS TLAngelo Excel Discussion (Misc queries) 7 May 12th 06 05:31 PM
Date, Weekdays Heckstein Excel Discussion (Misc queries) 3 September 11th 05 10:21 PM
Weekdays Jeff Excel Discussion (Misc queries) 7 February 15th 05 12:18 AM


All times are GMT +1. The time now is 12:37 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"