Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a range of dates in column A. i want to search for a date and return
its row number. What code should i use. Suppose i want to know the row number of date 1/8/2002. Same is contained in cell A9. The code should return 9. Thanks Pradip |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=MATCH(--"2002-01-08",A1:A1000,0)
or if the test date in B1 =MATCH(B1,A1:A1000,0) If in VBA myVar = Application.MATCH(DateSerial(2005,1,8),Value, Range("A1:A1000"),0) myVar = Application.MATCH(Range("B1").Value, Range("A1:A1000"),0) -- HTH Bob Phillips "Pradip Jain" wrote in message ... I have a range of dates in column A. i want to search for a date and return its row number. What code should i use. Suppose i want to know the row number of date 1/8/2002. Same is contained in cell A9. The code should return 9. Thanks Pradip |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif number is greater than a number but less than another number | Excel Discussion (Misc queries) | |||
How can I click on a telephone number in an Excel 2002 spreadsheet, and have the number dialed? | Excel Discussion (Misc queries) | |||
Easy Reading - large number minus small number | New Users to Excel | |||
How to calculate number of occurencies of a specific number number | Excel Discussion (Misc queries) | |||
Rounding a number to a multiple quantity that adds to a fixed total number | Excel Worksheet Functions |