+ Reply to Thread
Results 1 to 6 of 6

use contents of active cell to find and go to a cell that matches text within the row

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    3

    use contents of active cell to find and go to a cell that matches text within the row

    Hi All,

    I need some help with what I thought would be an easy solution. FYI, I have posted this question already on Mr Excel ([http://www.mrexcel.com/forum/excel-q...ue-another.htm). They were terrific, but I didn't quite get an answer there, so if it is OK, I would like to ask the same question here.

    I need to be able to click a button on the sheet, and have a macro that takes me to the corresponding cell that matches the text in the ACTIVE cell. I don't need it to do anything once I am there, just get me there so the user can see what is going on.

    Example: If the active cell is D6, and contains the date "06 June 2015", then I want the macro to take me to the cell in Row D that matches that date. Similarly, if I am in E256, and that text is "12 Dec 2015", then I want to be taken to the corresponding cell in Row H that matches E256.

    It will only ever need to look within the row of the active cell, never in another row.

    The important thing is the found cell could be in any column but will always be based on the contents of the active cell of that row. The cell that I need to find will be one of the 365 cells (one for each day of the year) within that row that follow the active cell. There will never be any duplicates either, because each cell contains unique info (date)

    The active cell will be either Column Dx or column Ex (where x represents the row number).

    I really hope this makes sense. I need to present this solution to the CEO tomorrow, and I underestimated the apparent difficulty of this task.

    And I am sorry if I have repeated my self a few times in this post, but I want to be as clear as I can to avoid confusion and wasting your time.

    Any help would be greatly appreciated.

    Cheers

    WT

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: use contents of active cell to find and go to a cell that matches text within the row

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: use contents of active cell to find and go to a cell that matches text within the row

    If the active cell is D6, .... to the cell in Row D ...
    if I am in E256, ... to the cell in Row H
    This will take the user to a matching cell in the same row.
    Please Login or Register  to view this content.
    I don't understand why row D goes to D, but E goes to H.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    01-29-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: use contents of active cell to find and go to a cell that matches text within the row

    Thank you, please see attached.

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: use contents of active cell to find and go to a cell that matches text within the row

    Your question is confusing, you keep talking about Row D, when there is no Row D

    Do you want to enter a date in D6 then where do you want to find it?

  6. #6
    Registered User
    Join Date
    01-29-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: use contents of active cell to find and go to a cell that matches text within the row

    Confusion can be put down to typo's, my apologies.

    In essence, regardless of which row I am in, I want the active cell to be used as the search criteria and for the macro to look within that row to find the matching date.

    IE: Enter a date in D6, invoke macro, go to the cell in that row that matches the date in Row D6.

    I am sorry if I am not explaining this well enough to have my intentions understood.

    WT

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula Find Specified Text show contents of the cell below
    By keen2xl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2014, 04:43 PM
  2. Formula to Find If Text In a Cell Matches Another Range of Cells
    By purplesamcat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2013, 07:45 PM
  3. Replies: 7
    Last Post: 04-08-2011, 01:31 PM
  4. [SOLVED] Macro to paste in the active cell the contents of a cell from another file??
    By LarryB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2006, 01:45 PM
  5. find text in a cell and make cell 2 cells below that active
    By shark102 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2005, 10:05 AM

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