+ Reply to Thread
Results 1 to 5 of 5

Create Auto Populated list Field based off multiple fields

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2003
    Posts
    3

    Create Auto Populated list Field based off multiple fields

    Hello,

    I've been searching for a solution to achieve what i'm looking for and i haven't had much luck so i thought i'd come and ask around see if people with more experience may know of a solution, if there even is one.



    So, my issue is i have two or more fields of data, where parts of them are auto populated based on inputs from elsewhere. That part i have working fine, however the problem arises in taking that information and displaying it as a Bill of Materials list on another tab in my excel file. I want to take the information, and only display it in the BOM tab if that piece of information is being used (ie item count field not being 0). I know how to do that part in a rather simple format, however i'd prefer to make it so that when i have the list, and a certain item isn't used then its not included in the BOM, and an empty space is not left behind. I would prefer this to be all be done automatically by a formula if possible instead of just having to resort to sorting the table every time the tool is being used.

    Is this even possible in excel, if so can anyone provide insight?

    A quick example doc is attached, shows 2 example fields. i'd like to take the information from those 2 fields. and somehow create a single list, with a single heading along the top, with all row containing a 0 "Unit Count" to be omitted entirely from the list, and not have a blank space where the item should be. Keep in mind these fields may be greater than 2, and may not be position one after the other in a strait down line.

    Example.xlsx

    Thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Create Auto Populated list Field based off multiple fields

    Like so... notice I've removed the text from column A for the most part, the part of column A that is evaluate the numbers, there is no text sprinkled in that part of column A any longer.

    The formula in J2 is an array, it is confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will notice curly braces { } around your formula confirming the array is active and the first value appears. Then that formula is copied down as far as desired, then the column is copied to the right, then the new table formatted.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-21-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Create Auto Populated list Field based off multiple fields

    Hey, Thanks for the reply and the solution. this is quite complex i'm finding as i try to reverse engineer it and learn how it works. quite a bit more difficult than normal everyday excel use.
    Last edited by alendor; 04-22-2014 at 09:57 AM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Create Auto Populated list Field based off multiple fields

    The array formula is making an array of all the cells in column A with a number greater than 0. Then it's displaying those values in the second table in the order they were found.

    The other columns in the new table are doing exactly the same thing, just bringing back a different column of data for the array values created viewing column A.

  5. #5
    Registered User
    Join Date
    04-21-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Create Auto Populated list Field based off multiple fields

    nvm had a question but solved it shortly after

+ 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] How to create a Calculated Field based off two Avg fields in a Pivot table?
    By rcocalm in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-22-2014, 03:18 AM
  2. [SOLVED] Cell auto fill based on another field drop down list selection
    By pugulis in forum Excel General
    Replies: 3
    Last Post: 03-22-2012, 07:38 AM
  3. Replies: 17
    Last Post: 02-24-2012, 03:59 PM
  4. Create a nesting formula w/ multiple conditions based on fields w/VLOOKUP
    By NiqueDomie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2011, 09:59 AM
  5. Create list based on Pivot Page Field List
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2008, 09:40 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