Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default finding a range of cells to match a date

Dim res as Variant
Dim rng as Range
Dim dtVal as Date
dtVal = DateSerial(2003,07,10)
set rng = Range("B9:B200")
res = application.Match(clng(dtVal),rng,0)
if not iserror(res) then
msgbox "Match for " & format(dtVal,"mm/dd/yyyy") & _
" found at row " & rng(res).row
Else
msgbox "Date not found"
End if

--
Regards,
Tom Ogilvy


LADS wrote in message
...
How would I match on a value, applied on a range of cells in a separate
column to match the range of rows containing the value? The cell I want to
match to is a function of date format. The column is of date format.

Thanks,
Tom




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
Finding latest match in range IGM Excel Worksheet Functions 9 November 3rd 08 06:55 PM
finding all cells that match a certain value OTS Excel Worksheet Functions 10 July 31st 07 03:24 AM
Finding the earliest date from a range of cells [email protected] Excel Worksheet Functions 2 July 28th 07 04:46 PM
Finding the earliest date from a range of cells [email protected] Excel Worksheet Functions 1 July 28th 07 06:50 AM
finding a range of cells to match a date Chrissy[_4_] Excel Programming 2 July 19th 03 08:21 PM


All times are GMT +1. The time now is 02:09 AM.

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"