+ Reply to Thread
Results 1 to 5 of 5

Excel Automation: Retrieving Previous Data Based on Dropdown Selection and Row Reference

  1. #1
    Registered User
    Join Date
    03-13-2024
    Location
    London
    MS-Off Ver
    Excel 365 - V16.79.2
    Posts
    12

    Excel Automation: Retrieving Previous Data Based on Dropdown Selection and Row Reference

    In a training program workbook, I have dropdown menus containing exercises in column B. Data for each exercise is tracked in the green columns (O:Q), and what was previously done for each exercise is recorded in the purple columns (S:U). The goal is to automate the process of populating the purple columns based on the previous entries dynamically.

    Requirements

    1. Search for Exercise: Excel needs to search for a selected exercise from the corresponding dropdown menu in column B.

    2. Retrieve Previous Data: Once a match has been identified (two identical exercises), Excel should search the green columns to retrieve the previously entered data for that exercise.

    3. Order of Retrieval: If there are multiple entries for the same exercise, Excel should prioritize the closest entry to a reference row. For instance, if the reference row is 19, and there are entries at rows 24 and 29 for the same exercise, Excel should output the data from row 24.

    4. Handling Gaps: The formula needs to skip or ignore cells that do not contain the relevant cell ranges.

    My current formula addresses requirements 1-4 successfully.

    Please Login or Register  to view this content.
    Remaining Challenge:


    Cross-Sheet Functionality: The automation should work across multiple sheets, ensuring that the previous week and all its rows are accounted for in the formula. In essence, the formula should search for matches in both Week 1 and Week 2 and prioritize Week 2 when there are matches in both weeks.

    Sk?rmbillede 2024-03-16 kl. 20.43.36.png

    I've added annotations and pictures to assist in understanding the structure of the workbook.
    Attached Files Attached Files
    Last edited by Excel_Struggler; 03-16-2024 at 03:56 PM.

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Excel Automation: Retrieving Previous Data Based on Dropdown Selection and Row Referen

    Formula validation column B
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula week 1 column S
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Week 2
    Tomorrow..
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-13-2024
    Location
    London
    MS-Off Ver
    Excel 365 - V16.79.2
    Posts
    12

    Re: Excel Automation: Retrieving Previous Data Based on Dropdown Selection and Row Referen

    Hi DJunqueira!

    Looking forward to your solution for week 2.

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Excel Automation: Retrieving Previous Data Based on Dropdown Selection and Row Referen

    How much many potential weeks are we talking about here?

  5. #5
    Registered User
    Join Date
    03-13-2024
    Location
    London
    MS-Off Ver
    Excel 365 - V16.79.2
    Posts
    12

    Re: Excel Automation: Retrieving Previous Data Based on Dropdown Selection and Row Referen

    Quote Originally Posted by DJunqueira View Post
    How much many potential weeks are we talking about here?
    5 weeks

    Depends on the program, but for simplicity assume 5 weeks.
    Last edited by Excel_Struggler; 04-06-2024 at 04:12 PM.

+ 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] TradingJournal - Dynamic cell reference formula based on dropdown list selection
    By ecronic in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-04-2023, 02:24 PM
  2. Need help making a dropdown reference a table based on a previous entry
    By cange39 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2019, 07:49 AM
  3. Dropdown dependant on a previous dropdown selection
    By Godssent2 in forum Excel General
    Replies: 6
    Last Post: 08-16-2019, 10:58 AM
  4. [SOLVED] Return to previous selection with dropdown box
    By dougmorgan in forum Excel General
    Replies: 2
    Last Post: 11-23-2018, 09:03 AM
  5. Automatically fill in a dropdown selection based on a previous dropdown
    By thanhthinh1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-24-2018, 08:10 PM
  6. Multiple Dropdown selection & Column Groupings based on dropdown selection
    By rabrol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2018, 10:23 AM
  7. Replies: 2
    Last Post: 08-11-2011, 01:32 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