+ Reply to Thread
Results 1 to 12 of 12

Converting a table into a dynamic list

  1. #1
    Registered User
    Join Date
    05-26-2022
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    4

    Converting a table into a dynamic list

    Hi all,

    Not sure if this has been posted or answered already, all searches I tried had results that didn't quite match what I was after.

    I'm trying to generate a list that will streamline ordering of timber lengths - currently I type out a list in an email of each quantity and length of each material that is required. This is time consuming and considering the repetitive nature of the process, I am sure there is a way to speed this up. I would do this up to 10 times per day.

    I have a grid that represents timber materials down the columns and material lengths across the rows. Quantities of each material/length are added within the cells.
    I want to be able to display a list of the results in descending order of the selected materials and lengths as shown:
    grid.JPG
    list.JPG

    LVL Order-public.xlsx

    (forgive the formatting)

    Cheers

    *Edited to update result pic*
    Attached Images Attached Images
    Last edited by nickw90; 05-26-2022 at 08:28 PM. Reason: Add attachment

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Converting a table into a dynamic list

    Type in the material in AF11,
    D6=SUMIFS($AG$10:$AG$13,$AF$10:$AF$13,$C6,$AH$10:$AH$13,D$5), or =SUMPRODUCT(($AG$10:$AG$13)*($AF$10:$AF$13=$C6)*($AH$10:$AH$13=D$5))
    copy across and down

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Converting a table into a dynamic list

    @josephteh: I think the OP wants to create the list from the table entries, not the table entries from the list.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    05-26-2022
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: Converting a table into a dynamic list

    that's correct, the table will be cleared once I move to the next order so I want to be able to generate a list or report based on the data in the table at any given time

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,428

    Re: Converting a table into a dynamic list

    Cell D6 formula , Drag down and across

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell AF10 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell AH10 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell AG10 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 05-29-2022 at 09:50 PM.

  6. #6
    Registered User
    Join Date
    05-26-2022
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: Converting a table into a dynamic list

    still not quite what i'm after - the values in the main (larger table) will change with each order i need to make so i need the list on the right hand side to update automatically based on the values (quantities/lengths) of materials selected in the main table

  7. #7
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Converting a table into a dynamic list

    Perhaps a macro based solution like this could be of help.

    To test run macro GetData. Macro clears data result starting in B20, it the loops through all rows from 3 to 16 (stop value of 16 set by macro). If sum of row from C to Z is equal to 0 the row gets hidden.
    Both C and Z is hardcoded in macro. Not the best of solutions.

    Then macro checks sum of columns from C to Z and hiding columns that sums to 0. End point for macro i.e. Z column is set by macro. The condensed result is the copied to B20.

    Alf
    Attached Files Attached Files
    Last edited by Alf; 05-28-2022 at 12:02 PM. Reason: error in indata, fixed

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Converting a table into a dynamic list

    Quote Originally Posted by TMS View Post
    @josephteh: I think the OP wants to create the list from the table entries, not the table entries from the list.
    Oh.. ok.. thanks, Trevor!

  9. #9
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Converting a table into a dynamic list

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-01-2022
    Location
    Eire
    MS-Off Ver
    O365
    Posts
    57

    Re: Converting a table into a dynamic list

    AF10:
    =IFERROR(INDEX(C:C,AGGREGATE(15,6,ROW($D$6:$AB$19)/($D$6:$AB$19<>""),ROWS(AF$10:AF10))),"")

    AG10:
    =IFERROR(INDEX($1:$1048576,AGGREGATE(15,6,ROW($D$6:$AB$19)/($D$6:$AB$19<>""),ROWS(AG$10:AG10)),10^6*MOD(AGGREGATE(15,6,ROW($D$6:$AB$19)+(COLUMN($D$6:$AB$19)*10^-6)/($D$6:$AB$19<>""),ROWS(AG$10:AG10)),1)),"")

    AH10:
    =IFERROR(INDEX($5:$5,MOD(AGGREGATE(15,6,ROW($D$6:$AC$19)*10^6+COLUMN($D$5:$AB$5)/($D$6:$AC$19>0),ROWS(AH$10:AH10)),10^6)),"")

    Don't go out of your way to intrroduce blank cells in your data (as in your expected results). This might look pretty, but will make formulas more complicated than needed!!
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    05-26-2022
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    4

    Re: Converting a table into a dynamic list

    Quote Originally Posted by ardross View Post
    AF10:
    =IFERROR(INDEX(C:C,AGGREGATE(15,6,ROW($D$6:$AB$19)/($D$6:$AB$19<>""),ROWS(AF$10:AF10))),"")

    AG10:
    =IFERROR(INDEX($1:$1048576,AGGREGATE(15,6,ROW($D$6:$AB$19)/($D$6:$AB$19<>""),ROWS(AG$10:AG10)),10^6*MOD(AGGREGATE(15,6,ROW($D$6:$AB$19)+(COLUMN($D$6:$AB$19)*10^-6)/($D$6:$AB$19<>""),ROWS(AG$10:AG10)),1)),"")

    AH10:
    =IFERROR(INDEX($5:$5,MOD(AGGREGATE(15,6,ROW($D$6:$AC$19)*10^6+COLUMN($D$5:$AB$5)/($D$6:$AC$19>0),ROWS(AH$10:AH10)),10^6)),"")

    Don't go out of your way to intrroduce blank cells in your data (as in your expected results). This might look pretty, but will make formulas more complicated than needed!!
    absolutely nailed it mate! Perfect, exactly what i was after
    thanks for the help

  12. #12
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,428

    Re: Converting a table into a dynamic list

    Cell AF10 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell AG10 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    OR
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell AH10 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    OR
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] converting a table to a list
    By kevincoxshall in forum Excel General
    Replies: 5
    Last Post: 09-03-2013, 05:35 PM
  2. Converting Table (Array) to List
    By XLHead in forum Excel General
    Replies: 4
    Last Post: 01-20-2013, 12:50 PM
  3. [SOLVED] Converting data in a table into a list
    By Speshul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2012, 03:13 PM
  4. converting a table to a list
    By jhelliar in forum Excel General
    Replies: 2
    Last Post: 11-17-2011, 04:29 PM
  5. Converting list to table...
    By stopandstare in forum Excel General
    Replies: 1
    Last Post: 07-07-2011, 06:11 PM
  6. Converting Frequency Table into List
    By TDRKZ in forum Excel General
    Replies: 2
    Last Post: 05-24-2011, 12:25 PM
  7. converting table to list
    By Malte in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-25-2007, 05:56 PM
  8. Converting a table of data to a list
    By Timmy Mac1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2007, 07:10 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