+ Reply to Thread
Results 1 to 4 of 4

locate cell using match index (date & time)

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Smile locate cell using match index (date & time)

    Hi,

    I need a solution for a challenging problem. I have time mentioned in the rows & date mentioned in column. I need to select and highlight a cell which intersects between particular time & date based on inputbox.

    Ex : I have two input box (a). for Time, (b). for date
    I will enter time when first input box pops & I will enter date when second input box pops up. based on these two values, the vba has to locate a cell using index match & highlight the respective cell.

    I am a beginner & I have been trying to solve this from 2 weeks despite no solution.

    Any help or suggesstions will be highly appreciated.

    Thanks in advance
    Attached Files Attached Files

  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: locate cell using match index (date & time)

    Hi,

    One way would be

    Please Login or Register  to view this content.
    I've not allowed for any validation checking or for someone entering a date or time that isn't present in the table.
    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.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,334

    Re: locate cell using match index (date & time)

    Hi rakesh,

    Find attached another way to do it. I've keyed on two cells in sheet 1 instead of input cells. See if you can add your inputbox to this code to do what you want.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: locate cell using match index (date & time)

    Have used conditional formatting and data valuation, would this be of interest!

    CF-example (2).xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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