+ Reply to Thread
Results 1 to 4 of 4

Populate list of user defined codes with checked data

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Populate list of user defined codes with checked data

    Hey guys, searched around a bit and still can't find a solution to my current frustration, help would be much appreciated.

    What I have is a long list of cost codes, that are to be user defined, that I upload into our construction accounting software. To track productivity each cost code must correspond to a specific installation type and location (ex. 2" Copper pipe, Overhead). Each job can have hundreds of codes. For each cost code and row, the current solution is to select the defining parameters from a drop down list. With 15 zones and 99 installation types this is very time consuming. There are also pre-defined codes for each job, but those don't need changing. We put an "x" by each pre-defined code and each user defined code that we want to use and filter the column so the sheet only displays the needed codes.

    What I'm trying to do is streamline the process with an array. I have Installation type listed by row with the 15 locations in columns. An 'x' in the corresponding square should then put that data with a corresponding code on another sheet.

    Here's an simplified view of the RESULT I want:
    capture.jpg

    My problem is in displaying the selected values in a column without lines upon lines of blank space. I need each value on the next row to be able to populate the list of codes in ascending order. I've tried nesting IF statements (if this cell = x, that cell = corresponding installation type and location, if not this cell = next cell) but i can only next 64 and that formula is HUGE (and not working anyway..)

    Any help would be great!

  2. #2
    Registered User
    Join Date
    06-22-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Populate list of user defined codes with checked data

    JohnMarkP

    Check the attached file. I have used array formulas to get a single list of the codes for overhead, underfloor and roof and then in column K used 3 nested IF statements to bring it all together.

    It works but it seems cumbersome to me. VBA might be better, I will work on that

    Regards

    David
    Attached Files Attached Files
    Last edited by JBeaucaire; 08-14-2013 at 10:44 AM.

  3. #3
    Registered User
    Join Date
    06-22-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Populate list of user defined codes with checked data

    JohnMarkP,

    As I suspected the VBA solution is simple and elegant. The attached has the macro, code below. Note that I defined a named range "Combos" which contains the "x". If you just adjust the range to which this points the macro will work.

    Please Login or Register  to view this content.
    Regards

    David
    Attached Files Attached Files
    Last edited by JBeaucaire; 08-14-2013 at 10:45 AM.

  4. #4
    Registered User
    Join Date
    07-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Populate list of user defined codes with checked data

    Wow that's exactly what I wanted. And way simpler too, thanks a ton.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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