+ Reply to Thread
Results 1 to 5 of 5

Data selection and column info

  1. #1
    Forum Contributor
    Join Date
    09-22-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 2019
    Posts
    309

    Data selection and column info

    Hi

    Using a borrowed code with a bit of tweaking I'm trying to look up a particular "Input" name selected from the drop down list on Sheet1 B18 to find the data in the column beside it on Sheet2 columns A:D.

    So far I've managed to get the code to list the number (Sheet2 column A) and the data beside the selected Input name and place them in column A & B in Sheet3 which is fine.

    However, I need Sheet3 column C to then show the header of the column (Sheet2 C1 or D1) the Input Name from Sheet1 B18 is in for that result.

    Currently the code shows data from Sheet2 C2 or D2 for the wrong column.

    Code is in Module "Sort_From_Selection"

    Thanks in advance!

    Frankie
    Attached Files Attached Files

  2. #2
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,458

    Re: Data selection and column info

    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,653

    Re: Data selection and column info

    Sheet2!F2;
    =GetResult(Sheet1!B18,Sheet2!A1:D37,FALSE,1)
    Where
    GetResult(Search value,Data Range,[DeleteSpace True/Fase, Default = False],[CompareMode 0/1, Deault = 1,case insensitive])
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-22-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 2019
    Posts
    309

    Re: Data selection and column info

    Thanks both! Got it working as required.

    Great job!!

    Cheers

    Frankie

  5. #5
    Forum Expert Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,458

    Re: Data selection and column info

    Glad I could contribute...Tx for rep +

+ 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] Selection Box to select a user name, use that info to fill data into cells
    By Dreamwave in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2019, 11:56 AM
  2. if x is a match in this selection then display the info in the column next to it
    By Sean_QS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2017, 11:45 AM
  3. [SOLVED] Extract selected column data based on column header info
    By ajay6985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2017, 02:07 AM
  4. [SOLVED] Need data in column K to be auto populated, depending on drop down selection in column J
    By skeithnavo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2015, 11:53 AM
  5. Replies: 4
    Last Post: 10-02-2013, 03:00 PM
  6. If column is populated, copy and paste info. into new workbook(keeping other column info.)
    By mary.gallagher in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2013, 02:56 PM
  7. edit macro that is pasting info to check column for duplicate info
    By roth_nj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2009, 05:55 PM

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