+ Reply to Thread
Results 1 to 5 of 5

Need code to pull data based on specific cell selection for comparison

  1. #1
    Registered User
    Join Date
    02-19-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2013
    Posts
    69

    Need code to pull data based on specific cell selection for comparison

    Hello All,

    Sample.xlsx

    I am currently working on a project that requires comparison of multiple processes. Each process has 5 factors that pertain to the postures required by that function. Originally, there weren't many processes to work with, so it was easy to just leave them all in the table because they were close enough for it to be apparent which ones were compatible. Now that we have > 60 processes, it makes it difficult to compare them (I.e., compare process A and process Z). So, what I need to do is provide the option of selecting 2 processes and have it pull the ergonomic information specific to that function and put them side by side so they can be compared. I've attached a sample above.

    Any help would be greatly appreciated

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Need code to pull data based on specific cell selection for comparison

    So you didn't specify the input or output methods, so I chose my own. But feel free to change them or I can modify the code if you provide more info.

    This code:
    • Enter 2 processes in cells B8 and C8, as single letters (e.g. C E)
    • Run the code
    • It will insert (copy) those two processes as new columns to the left of all your processes

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Need code to pull data based on specific cell selection for comparison

    Find attached sample sheet. Sample Code to Pull.xlsx

    Adjust your ranges as necessary.

    Pete

  4. #4
    Registered User
    Join Date
    02-19-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: Need code to pull data based on specific cell selection for comparison

    Thanks guys! Now I have some choices. I really appreciate your help

  5. #5
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Need code to pull data based on specific cell selection for comparison

    You're welcome! If you're satisfied with the answers provided, please mark this thread as SOLVED. And any reputation points (the * in the lower left of the posts) would be appreciated.

+ 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. insert code to pull only data that matches a specific date entered in a cell
    By Ben.Cgg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2013, 12:04 PM
  2. [SOLVED] VBA to pull data from worksheet to a new sheet based on specific text cell value
    By TalResha in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-13-2013, 02:11 AM
  3. [SOLVED] auto populate cell data based on specific selection in another cell
    By tinka590 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2013, 02:37 AM
  4. Replies: 3
    Last Post: 01-27-2013, 07:23 PM
  5. Lock data in a cell a specific cell based on selection on other ce
    By CrimsonPlague29 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-10-2006, 06:10 AM

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