Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Joe Leon
 
Posts: n/a
Default How do I select from within a range of dates?

I have a column with dates and what I would like to do is in two different
cells is place two different dates and then have the dates be placed in a
different column in ascending order.

dates in column from date to date results
02/04/2005 12/01/2005 03/31/2006 01/05/2006
01/05/2006
02/13/2006
12/12/2005
04/12/2006
02/13/2006

  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default How do I select from within a range of dates?

Hi Joe
Assuming your dates start in A2, your From date is in B1, your To date
is in C1.
You will need a helper column, D, which can be hidden if required.
In cell D2
=IF(AND(A2=$B$1,A2<=$C$1),A2,"") and copy down column D as far as
required.
In cell E2
=IF(ISERROR(SMALL($D:$D,ROW(1:1))),"",SMALL($D:$D, ROW(1:1)))
again, copy down as far as required.
Incidentally, from your sample, I make the earliest qualifying date to
be 12/12/2005 not 01/05/2006

--
Regards

Roger Govier


"Joe Leon" wrote in message
...
I have a column with dates and what I would like to do is in two
different
cells is place two different dates and then have the dates be placed
in a
different column in ascending order.

dates in column from date to date
results
02/04/2005 12/01/2005 03/31/2006 01/05/2006
01/05/2006
02/13/2006
12/12/2005
04/12/2006
02/13/2006



  #3   Report Post  
Posted to microsoft.public.excel.misc
Joe Leon
 
Posts: n/a
Default How do I select from within a range of dates?

Roger,

Thanks! Works like a charm and very well explained....

Joe...

"Roger Govier" wrote:

Hi Joe
Assuming your dates start in A2, your From date is in B1, your To date
is in C1.
You will need a helper column, D, which can be hidden if required.
In cell D2
=IF(AND(A2=$B$1,A2<=$C$1),A2,"") and copy down column D as far as
required.
In cell E2
=IF(ISERROR(SMALL($D:$D,ROW(1:1))),"",SMALL($D:$D, ROW(1:1)))
again, copy down as far as required.
Incidentally, from your sample, I make the earliest qualifying date to
be 12/12/2005 not 01/05/2006

--
Regards

Roger Govier


"Joe Leon" wrote in message
...
I have a column with dates and what I would like to do is in two
different
cells is place two different dates and then have the dates be placed
in a
different column in ascending order.

dates in column from date to date
results
02/04/2005 12/01/2005 03/31/2006 01/05/2006
01/05/2006
02/13/2006
12/12/2005
04/12/2006
02/13/2006




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
how to select a range that start in diferent row Pasmatos Excel Discussion (Misc queries) 2 November 28th 05 07:00 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
Select Range of Cells programmingrookie Excel Discussion (Misc queries) 2 August 11th 05 07:13 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
count date occurances in range of dates... Alex Excel Worksheet Functions 2 July 27th 05 04:15 PM


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