Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Select rows in a date range

This code from Bob Phillips works brilliantly for two input dates that match
the dates in the range!!
http://www.microsoft.com/office/comm...sloc=en-us&p=1

I am wondering how to make a change to allow Excel to find the next higher
date in the range if there is not an exact match between the two input dates
and the dates in the range.

Thanks so much,
Ryan--


--
RyGuy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Select rows in a date range

Ah! I got it! Just changed those zeros to ones. From Excel's help:
If match_type is 1, MATCH finds the largest value that is less than or equal
to lookup_value.

Thanks to anyone who looked at this and thanks to you Bob for coming up with
the code and posting it on this DG!!


Ryan--

--
RyGuy


"ryguy7272" wrote:

This code from Bob Phillips works brilliantly for two input dates that match
the dates in the range!!
http://www.microsoft.com/office/comm...sloc=en-us&p=1

I am wondering how to make a change to allow Excel to find the next higher
date in the range if there is not an exact match between the two input dates
and the dates in the range.

Thanks so much,
Ryan--


--
RyGuy

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 can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
Select all rows in a date range thomasDrew Excel Programming 1 February 4th 08 08:27 AM
Select always same Rows range Nauj Solrac Excel Discussion (Misc queries) 2 April 26th 07 08:10 PM
Select a Range of (Variable) Rows Loucas Excel Programming 3 April 29th 06 01:09 AM
How to select rows containing certain date jessica Excel Programming 3 October 14th 03 01:17 PM


All times are GMT +1. The time now is 06:50 AM.

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"