Is it possible to make an entire table based on values of another group of cells?

%3CLINGO-SUB%20id%3D%22lingo-sub-2802851%22%20slang%3D%22en-US%22%3EIs%20it%20possible%20to%20make%20an%20entire%20table%20based%20on%20values%20of%20another%20group%20of%20cells%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2802851%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20been%20searching%20this%20and%20not%20even%20sure%20if%20it%20is%20possible.%26nbsp%3B%20I%20have%20a%20table%20of%2025%20employees.%26nbsp%3B%20I%20would%20like%20to%20duplicate%20the%20same%20table%20but%20omitting%20empty%20ones%20on%20another%20part%20of%20the%20sheet%20assuming%20data%20is%20entered%20in%20a%20specific%20group%20of%20cells.%26nbsp%3B%20Example%20below%E2%80%A6%3C%2FP%3E%3CP%3ELet%E2%80%99s%20say%20I%20enter%20data%20in%20Employee%205%2C%207%2C%20and%208%20where%20the%20red%20circles%20are.%26nbsp%3B%20I%20would%20like%20to%20have%20it%20auto%20populate%20table%205%2C%207%2C%20and%208%20only%20on%20another%20part%20of%20the%20page.%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOriginal%20table%20....%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22table%20one..JPG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F314206iDCD68614B3B99BF2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22table%20one..JPG%22%20alt%3D%22table%20one..JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EProposed%20table....%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22table%20two.JPG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F314207i0AF52822FBADC5FA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22table%20two.JPG%22%20alt%3D%22table%20two.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2802851%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2803753%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20it%20possible%20to%20make%20an%20entire%20table%20based%20on%20values%20of%20another%20group%20of%20cells%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2803753%22%20slang%3D%22en-US%22%3EI'd%20like%20to%20say%20yes%20it%20is%20possible.%20but%20would%20like%20to%20know%20more%20to%20define%20how.%20first%2C%20what%20version%20of%20excel%20are%20you%20using%20(very%20important%20to%20know%20what%20technique%2Ffunctions%20are%20available%20for%20you)%3F%20next%2C%20need%20to%20understand%20this%20better.%20do%20you%20want%20the%20sheet%20to%20automatically%20detect%20if%20you%20type%20something%20into%20a%20previously%20unused%20employee%20in%20table%20A%20and%20automatically%20add%20that%20employee%20into%20table%20B%3F%20or%20just%20as%20you%20add%20data%20into%20certain%20employees%20that%20information%20is%20automatically%20updated%20in%20table%20B%3F%20The%20latter%20can%20be%20done%20using%20'paste%20link'%20or%20using%20simple%20formulas%20that%20reference%20the%20original%20cells%20(if%20you%20have%20excel%20365%20a%20single%20formula%20can%20reference%20the%20whole%20table%20array).%20if%20it%20is%20the%20former%2C%20it%20can%20be%20done%20but%20more%20complicated%20and%20how%20depends%20on%20if%20you%20have%20excel%20365.%20Alternatively%20if%20may%20be%20possible%2Fbetter%20to%20see%20if%20there%20is%20a%20power%20pivot%20solution.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2804201%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20it%20possible%20to%20make%20an%20entire%20table%20based%20on%20values%20of%20another%20group%20of%20cells%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2804201%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello.%26nbsp%3B%20Thank%20you%20for%20the%20response.%26nbsp%3B%20Yes%2C%20I%20am%20working%20with%20365.%26nbsp%3B%20I%20am%20trying%20to%20get%20my%20program%20to%20auto%20generate%20table%20B%2C%20whenever%20you%20add%20any%20data%20into%20table%20A.%26nbsp%3B%26nbsp%3B%20Example%E2%80%A6%20Let%E2%80%99s%20say%20employee%205%20worked%208%20hrs%20Monday.%26nbsp%3B%20Table%20B%20would%20appear%20automatically%20on%20another%20part%20of%20the%20sheet.%26nbsp%3B%26nbsp%3B%20Then%20employee%206%20worked%20a%20full%20week.%26nbsp%3B%20Another%20table%20would%20appear%20automatically%20under%20the%20first%20table%20B%E2%80%A6%20etc.%20etc%E2%80%A6.%26nbsp%3B%20if%20you%20had%2019%20of%20the%2025%20employees%20table%20B%20would%20show%2019%20employees.%26nbsp%3B%20Omitting%20the%20six%20that%20were%20not%20on%20that%20job.%26nbsp%3B%26nbsp%3B%20As%20I%20am%20typing%20this%2C%20I%20am%20thinking%20I%20could%20even%20do%20this%20as%20a%20Macro%20that%20could%20run%20after%20I%20am%20finished%20updating%20table%20A.%26nbsp%3B%20We%20use%20table%20A%20for%20payroll%20tracking.%26nbsp%3B%20What%20I%20am%20trying%20to%20do%2C%20is%20to%20make%20basically%20an%20invoice%20reporting%20program%20that%20will%20show%20who%20worked%20on%20what%20job%2C%20what%20days%2C%20and%20what%20hours%20each%20day%20without%20having%20to%20retype%20each%20guy%2C%20and%20their%20times.%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2804433%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20it%20possible%20to%20make%20an%20entire%20table%20based%20on%20values%20of%20another%20group%20of%20cells%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2804433%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F533335%22%20target%3D%22_blank%22%3E%40Budman361530%3C%2FA%3E%26nbsp%3Bso%20yes%20of%20course%20you%20could%20use%20VBA%20but%20there%20are%20trade-offs.%3C%2FP%3E%3CP%3Ein%20the%20attached%20I%20used%20a%20helper%20column%20to%20decide%20which%20employees%20to%20include%20and%20then%20a%20simple%20FILTER%20to%20show%20the%20result%20and%201%20more%20trick%20was%20to%20use%20a%20custom%20number%20format%20to%20hide%20all%20the%20zeros.%3C%2FP%3E%3CP%3EIs%20this%20something%20close%20to%20what%20you%20want%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have been searching this and not even sure if it is possible.  I have a table of 25 employees.  I would like to duplicate the same table but omitting empty ones on another part of the sheet assuming data is entered in a specific group of cells.  Example below…

Let’s say I enter data in Employee 5, 7, and 8 where the red circles are.  I would like to have it auto populate table 5, 7, and 8 only on another part of the page.    

 

Original table .... 

table one..JPG

 

Proposed table.... 

table two.JPG

5 Replies
I'd like to say yes it is possible. but would like to know more to define how. first, what version of excel are you using (very important to know what technique/functions are available for you)? next, need to understand this better. do you want the sheet to automatically detect if you type something into a previously unused employee in table A and automatically add that employee into table B? or just as you add data into certain employees that information is automatically updated in table B? The latter can be done using 'paste link' or using simple formulas that reference the original cells (if you have excel 365 a single formula can reference the whole table array). if it is the former, it can be done but more complicated and how depends on if you have excel 365. Alternatively if may be possible/better to see if there is a power pivot solution.

@mtarler 

Hello.  Thank you for the response.  Yes, I am working with 365.  I am trying to get my program to auto generate table B, whenever you add any data into table A.   Example… Let’s say employee 5 worked 8 hrs Monday.  Table B would appear automatically on another part of the sheet.   Then employee 6 worked a full week.  Another table would appear automatically under the first table B… etc. etc….  if you had 19 of the 25 employees table B would show 19 employees.  Omitting the six that were not on that job.   As I am typing this, I am thinking I could even do this as a Macro that could run after I am finished updating table A.  We use table A for payroll tracking.  What I am trying to do, is to make basically an invoice reporting program that will show who worked on what job, what days, and what hours each day without having to retype each guy, and their times.  

@Budman361530 so yes of course you could use VBA but there are trade-offs.

in the attached I used a helper column to decide which employees to include and then a simple FILTER to show the result and 1 more trick was to use a custom number format to hide all the zeros.

Is this something close to what you want?

@mtarler Sorry for the slow response... YES!  Your workbook appears to be exactly what I am looking for!  I need to play with it, then try to understand the Voodoo Formulas that make this happen....lol... 

@Budman361530 

 

Why not automate the invoicing instead and skip the automatic table, where you enter the employee number or a translation thereof and the invoice will automatically populate the Line item based on the week number on the date of the invoice?