+ Reply to Thread
Results 1 to 2 of 2

find date and select cell

Hybrid View

  1. #1
    Registered User
    Join Date
    03-31-2013
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    1

    find date and select cell

    vlookup does not work. i think it has to do with dates.

    column a, rows 5 thru the end of data have the dates in date order ie 1/1/2013 1/2/2013 thru 12/31/2013.

    cell b2 has =TODAY()

    now how do i find the cell address for the date match for =today() b2 and column a row what ever todays date is. when a user opens of goes to this sheet i want the selected cell displayed on the screen.

    does that make sense. i have tried vlookup and that does not work. now i think that match and index is what i am looking for, but when i do this i just get errors n/a. i have tried the following:

    =MATCH("B2","A5:A370",0)

    i tried vba code which i think is what i want, because i want to select the column,row of todays date from column a.

    i know there is a simple answer, but it has been a few years since i have been able to work with excel formulas and vba. so i need so help in refreshing my memory.

    any help is appreciated.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: find date and select cell

    Hi,

    Formula: copy to clipboard
    =MATCH(B2,A5:A370,0)

    without the literal quote marks should do it. At least that will give you the row number in the range starting at A5. if you want the Excel actual row number then
    Formula: copy to clipboard
    =MATCH(B2,A1:A370,0)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1