+ Reply to Thread
Results 1 to 5 of 5

Fill out information fields

  1. #1
    Registered User
    Join Date
    01-30-2020
    Location
    UK
    MS-Off Ver
    2013
    Posts
    82

    Fill out information fields

    Hi there

    Sheet1 contains a list of equipment and Sheet2 contains all the possible characteristics of the equipment. I need to match the 'Equipment Class' in Column L with Sheet 2 Column A, and copy over all the relevant characteristics in Sheet2 Column B to Sheet1 Column M.

    I have attached an example workbook, and Sheet3 has the expected output for one row as an example.

    Many thanks for your help.
    Last edited by warp765; 05-02-2020 at 06:56 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Fill out information fields

    Hi Warp, this code may work for you. It assumes all of your classes are grouped together on the List sheet, e.g. all of the VALVE entries are in sequential cells and don't exist elsewhere in the list. If they are scattered, you should probably sort that list alphabetically so they are grouped. If you can't do that, the code will need to be altered to find and count the number of 'VALVE' (or other class) entries and organize the output data accordingly.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-30-2020
    Location
    UK
    MS-Off Ver
    2013
    Posts
    82

    Re: Fill out information fields

    Hi Paul,

    Thank you it works well apart from a strange one with single criteria. The class 'Filter' only has one characteristic but it pastes with an empty row above and below the characteristic for each original row.

    I was also wondering if you could add an error handler so that if a match isn't found the code just carries onto the next row?

    Thanks!

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Fill out information fields

    Try this revised code to handle single criteria and errors if no match is found:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-30-2020
    Location
    UK
    MS-Off Ver
    2013
    Posts
    82

    Re: Fill out information fields

    Paul, that's working great now. Thanks for your help.

    I've added rep for you.

+ 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. Replies: 1
    Last Post: 08-21-2018, 10:46 AM
  2. Exporting information into fields
    By emshac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2015, 11:42 PM
  3. [SOLVED] Not adding information if fields are missing
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2013, 09:41 AM
  4. Replies: 2
    Last Post: 04-10-2013, 01:39 PM
  5. Replies: 1
    Last Post: 10-12-2007, 03:57 PM
  6. [SOLVED] create template with certain fields to input information only
    By Annette in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2006, 11:00 AM
  7. Replies: 2
    Last Post: 02-09-2005, 04:06 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