Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 244
Default Picking every monday from a list of dates

I have a long list with interest rates and dates. The list is for every day
i.e. I have one interest rate for every day. Now I want to pick out the
interest rate for one day per week, say evey monday. Is this possible? if so
how? Is it also possible to pick out the interest rates for just the business
days (i.e. do not show sundays/saturdays)? Any help is very much appreciated!
Thanks alot!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Picking every monday from a list of dates


The weekday function will give you a mon-sun indicator

hope this helps


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=567795

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 244
Default Picking every monday from a list of dates

Yes thanks but there seems to be some trouble. In cell A1 I have: 2006-01-01.
In another cell I write: =WEEKDAY(A1;2). the return value I get is:
1900-01-05 00:00.
(I have the Swedish Excel version ). It does not seem to give me what I
want..please help me out!

"tony h" skrev:


The weekday function will give you a mon-sun indicator

hope this helps


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=567795


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Picking every monday from a list of dates

Try this

select cells G1:G52
in the formula bar add

=IF(ISERROR(SMALL(IF(WEEKDAY(A1:A366)=2,ROW($A1:$A 366),""),ROW($A1:$A20))),"
",
INDEX($A$1:$A$366,SMALL(IF(WEEKDAY(A1:A36)=2,ROW($ A1:$A366),""),ROW($A1:$A52
))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

then in H1, add =IF(G1="","",VLOOKUP(G1,A:B,2,FALSE)) and copy down.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Arne Hegefors" wrote in message
...
Yes thanks but there seems to be some trouble. In cell A1 I have:

2006-01-01.
In another cell I write: =WEEKDAY(A1;2). the return value I get is:
1900-01-05 00:00.
(I have the Swedish Excel version ). It does not seem to give me what I
want..please help me out!

"tony h" skrev:


The weekday function will give you a mon-sun indicator

hope this helps


--
tony h
------------------------------------------------------------------------
tony h's Profile:

http://www.excelforum.com/member.php...o&userid=21074
View this thread:

http://www.excelforum.com/showthread...hreadid=567795




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Picking every monday from a list of dates

Hi,

Try to formate the cell that give you "1900-01-05 00:00" to General.
That should work for you.

Arne Hegefors skrev:

Yes thanks but there seems to be some trouble. In cell A1 I have: 2006-01-01.
In another cell I write: =WEEKDAY(A1;2). the return value I get is:
1900-01-05 00:00.
(I have the Swedish Excel version ). It does not seem to give me what I
want..please help me out!

"tony h" skrev:


The weekday function will give you a mon-sun indicator

hope this helps


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=567795




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Picking every monday from a list of dates

Hi Arne,

One way is to add a helper column and put the numbers 1 to 7 in
the first seven rows, then select all seven cells click on the fill
handle and drag it to the end of your data.

Then you can sort on that column selecting all the 1's, all the 2's etc.

HTH
Martin


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Picking every monday from a list of dates

OOPS!!

Then you can sort on that column selecting all the 1's, all the 2's etc.

That should read filter not sort!!

Regards
Martin


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
update cells to today date in a list of dates Bill Excel Worksheet Functions 1 March 17th 06 12:26 AM
How do I sort a list of dates in Excel by month and day? Caroline Excel Discussion (Misc queries) 3 June 10th 05 11:58 PM
Date Calculations Bruce Excel Worksheet Functions 11 May 19th 05 01:09 AM
Sumproduct and list of dates Ajay Excel Discussion (Misc queries) 4 May 18th 05 09:55 AM
FILTER OUT DATES IN LIST Lisa Excel Worksheet Functions 1 January 31st 05 02:17 PM


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