+ Reply to Thread
Results 1 to 5 of 5

Click cell, VBA takes me to source data (Reverse Index)

  1. #1
    Registered User
    Join Date
    09-01-2010
    Location
    SoCal
    MS-Off Ver
    Excel 2010
    Posts
    62

    Click cell, VBA takes me to source data (Reverse Index)

    Greetings all.

    I have a column filled with "Index" formulas that use two pieces of criteria to retrieve the proper answer. That's fine and it works.

    What I'd like is to click on any one of those index formulas and have excel take the cursor to that source data worksheet (in the same workbook) and put the cursor on the intersection of the particular rows and columns of that table. Essentially, a drill-down, or a 'reverse-index'.

    The first piece of data is in a fixed cell, it's a part number. (the part number will change depending on things outside the scope of this question)
    The second piece of data is a corresponding column of text denoting a week number.

    Attached is a sample spreadsheet.
    - Sheetname WORKBENCH contains index formula column "D" that I want to click on.
    - Sheetname CONFIDENCE is where the source data is. This is where i want to the cursor to go.

    I have some VBA experience, but I can't figure this one out and have searched quite a bit but I can't find a solution.

    I am looking for any solution. If a hyperlink formula can work, then great!

    Thank you for your attention!
    Attached Files Attached Files
    Last edited by Mojave; 03-19-2012 at 03:47 PM.

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

    Re: Click cell, VBA takes me to source data (Reverse Index)

    Select a cell in Column D of the "Workbench" sheet and the code will activate to take you to the correct cell in the other sheet.
    Please Login or Register  to view this content.
    The code that activates the above code is in the worksheet module.
    Please Login or Register  to view this content.
    Check out the attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-01-2010
    Location
    SoCal
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Click cell, VBA takes me to source data (Reverse Index)

    Dave,

    Thank you so much for the code!

    It works very well for any of the weeks and that particular part number.

    However, The part number can and will change, so it isn't fixed on column "H" (8) as the code states. I apologize if that wasn't clear in my first message.

    So, I think the trick is to find the offset for the part number, which is the hard part for me.

    If you have a couple more minutes to look at that, I would truly appreciate it. I will be trying on my end also.

    Thanks again!

    -Jim

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

    Re: Click cell, VBA takes me to source data (Reverse Index)

    Oh yes, I see that now,
    Try this instead.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-01-2010
    Location
    SoCal
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Click cell, VBA takes me to source data (Reverse Index)

    Dave,

    Thank you immensely! This does exactly what i was looking for! My users are very impressed with this.

+ 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