Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 244
Default Clear list from weekends

Hi! I have a list of dates (several years) with corresponding prices for
every date. I want to have only weekdays. Thus I need to single out the
weekdays´. How can I do this in a simple manner?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Clear list from weekends

You could enter the following formula in a helper cell:

=WEEKDAY(A2,2)

and copy down, assuming your dates start in cell A2. Then apply
autofilters, and filter the helper column using Custom... Is Greater
Than ... 5

This will display only the rows which correspond to weekends, so you
could highlight the rows displayed and Edit | Delete Row. Then select
All on the filter applied to the helper column, and you will be left
with only weekday data.

Hope this helps.

Pete

Arne Hegefors wrote:

Hi! I have a list of dates (several years) with corresponding prices for
every date. I want to have only weekdays. Thus I need to single out the
weekdays´. How can I do this in a simple manner?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Clear list from weekends

One possible way: create a helper column which runs the following formula
(assuming dates start in A1):
=IF(OR(WEEKDAY(A1)=1,WEEKDAY(A1)=7),"WEEKEND","")

Delete any row where "WEEKEND" appears in the helper column.

Note that WEEKDAY is part of the analysis toolpak, and not a regular
function. Add it via the Tools--Add Ins option.

Dave
--
Brevity is the soul of wit.


"Arne Hegefors" wrote:

Hi! I have a list of dates (several years) with corresponding prices for
every date. I want to have only weekdays. Thus I need to single out the
weekdays´. How can I do this in a simple manner?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Clear list from weekends

Note that WEEKDAY is part of the analysis toolpak, and not a regular
function. Add it via the Tools--Add Ins option.


I think that you are thinking about the WORKDAY() function Dave.

another option:

=IF(WEEKDAY(A1,2)<6,"","Weekend")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Dave F" wrote in message
...
One possible way: create a helper column which runs the following formula
(assuming dates start in A1):
=IF(OR(WEEKDAY(A1)=1,WEEKDAY(A1)=7),"WEEKEND","")

Delete any row where "WEEKEND" appears in the helper column.

Note that WEEKDAY is part of the analysis toolpak, and not a regular
function. Add it via the Tools--Add Ins option.

Dave
--
Brevity is the soul of wit.


"Arne Hegefors" wrote:

Hi! I have a list of dates (several years) with corresponding prices for
every date. I want to have only weekdays. Thus I need to single out the
weekdays´. How can I do this in a simple manner?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Clear list from weekends

Yes, you're right.

Apologies.

Dave
--
Brevity is the soul of wit.


"Sandy Mann" wrote:

Note that WEEKDAY is part of the analysis toolpak, and not a regular
function. Add it via the Tools--Add Ins option.


I think that you are thinking about the WORKDAY() function Dave.

another option:

=IF(WEEKDAY(A1,2)<6,"","Weekend")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Dave F" wrote in message
...
One possible way: create a helper column which runs the following formula
(assuming dates start in A1):
=IF(OR(WEEKDAY(A1)=1,WEEKDAY(A1)=7),"WEEKEND","")

Delete any row where "WEEKEND" appears in the helper column.

Note that WEEKDAY is part of the analysis toolpak, and not a regular
function. Add it via the Tools--Add Ins option.

Dave
--
Brevity is the soul of wit.


"Arne Hegefors" wrote:

Hi! I have a list of dates (several years) with corresponding prices for
every date. I want to have only weekdays. Thus I need to single out the
weekdays´. How can I do this in a simple manner?




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
Editing a list of data hot dogs Excel Discussion (Misc queries) 3 November 1st 06 12:42 PM
how can I clear the list of past headers used? saab Excel Discussion (Misc queries) 2 October 6th 06 11:13 PM
Using List Box To Clear Cells evan Excel Worksheet Functions 0 July 24th 06 04:09 PM
Check 2 different list get associated value from a column deja Excel Worksheet Functions 1 April 20th 06 04:11 AM
Refresh a Validation List? jhollin1138 Excel Discussion (Misc queries) 3 February 17th 05 05:48 PM


All times are GMT +1. The time now is 01:45 PM.

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"