+ Reply to Thread
Results 1 to 7 of 7

Stacking data from first sheet to second sheet

  1. #1
    Registered User
    Join Date
    07-15-2020
    Location
    Australia
    MS-Off Ver
    0365
    Posts
    3

    Stacking data from first sheet to second sheet

    Does anyone know how i can have the data that is listed on the the first page shown on the second page stacked onto of each other. The data that is entered can vary in size so the formular would need a way of working this out. Could this be done with a formular? Thanks
    Attached Files Attached Files
    Last edited by royc19; 07-15-2020 at 06:57 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Excel question

    Hi
    I think you'll have to adapt your thread title as per forum rules, like " Stack data from first sheet to second sheet"?

  3. #3
    Registered User
    Join Date
    07-15-2020
    Location
    Australia
    MS-Off Ver
    0365
    Posts
    3
    Quote Originally Posted by Pepe Le Mokko View Post
    Hi
    I think you'll have to adapt your thread title as per forum rules, like " Stack data from first sheet to second sheet"?
    Sorry new here....done

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Stacking data from first sheet to second sheet

    I suggest converting the range on the Paste into Format sheet into a table to allow for variation of data size.
    The formula for A2 and down is: =IFERROR(IF('Paste into Format'!K2<>"",'Paste into Format'!K2,INDEX(Table1[10 SERIES PART '#],ROW()-COUNTA(Table1[20 SERIES PART '#]))),"")
    The formula for C2:G2 and down is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for J2 and down is: =IF(A1="","",CONCATENATE(C1," ", D1," ", G1))
    The formula for K2 and down is: =IF(A1="","",IFERROR(INDEX(Table1[20 SERIES PRICE],MATCH(A1,Table1[20 SERIES PART '#],0)),INDEX(Table1[10 SERIES PRICE],MATCH(A1,Table1[10 SERIES PART '#],0))))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Stacking data from first sheet to second sheet

    Hi Royc19

    it is a transformation to the format your desire, using power query will be easy since. any subsequent update to your source
    just need to right click the output and refresh

    I eliminate all your blank columns and just take the following fields

    Part # MAKE MODEL ENGINE DESCRIPTION COMBINED STD PRICE


    bring the table to Power Query Editor and use the User Interface tools and some simple M Code to transform to what you want

    let
    Source = Excel.CurrentWorkbook(){[Name="Table13"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Part #", Int64.Type}, {"MAKE", type text}, {"MODEL", type text}, {"ENGINE", type any}, {"DESCRIPTION", type text}, {"COMBINED", type text}, {"STD PRICE", type number}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "10 SERIES PRICE", each [STD PRICE]),
    #"Added Custom1" = Table.AddColumn(#"Added Custom", "20 SERIES PRICE", each [STD PRICE]*1.1),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Added Custom1", {"Part #", "MAKE", "MODEL", "ENGINE", "DESCRIPTION", "COMBINED", "STD PRICE"}, "Attribute", "Value"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Part #", type text}}),
    #"Added Custom2" = Table.AddColumn(#"Changed Type1", "Custom", each [#"Part #"]&"-"&Text.Start([Attribute],2)),
    #"Reordered Columns" = Table.ReorderColumns(#"Added Custom2",{"Custom", "Part #", "MAKE", "MODEL", "ENGINE", "DESCRIPTION", "COMBINED", "STD PRICE", "Attribute", "Value"}),
    #"Removed Columns" = Table.RemoveColumns(#"Reordered Columns",{"Part #"}),
    #"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"Custom", "Part Type"}}),
    #"Removed Columns1" = Table.RemoveColumns(#"Renamed Columns",{"STD PRICE"}),
    #"Sorted Rows" = Table.Sort(#"Removed Columns1",{{"Attribute", Order.Descending}, {"Value", Order.Descending}}),
    #"Removed Columns2" = Table.RemoveColumns(#"Sorted Rows",{"Attribute"})
    in
    #"Removed Columns2"
    Attached Files Attached Files
    Christopher Yap

  6. #6
    Registered User
    Join Date
    07-15-2020
    Location
    Australia
    MS-Off Ver
    0365
    Posts
    3

    Re: Stacking data from first sheet to second sheet

    Thanks for the help

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Stacking data from first sheet to second sheet

    Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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: 2
    Last Post: 11-14-2015, 08:25 AM
  2. [SOLVED] Mathematical question or excel question? Multiple several numbers in a row.
    By douglascaixeta in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-22-2015, 05:48 PM
  3. database question, excel data sorting question
    By weblisterltd.com in forum Excel General
    Replies: 1
    Last Post: 12-17-2014, 01:35 PM
  4. I'm an amateur Excel user with a simple question on Excel 2013-
    By cpax22 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-26-2014, 06:43 PM
  5. PLEASE Help excel pro's (Macro, excel related)
    By msu4life in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2012, 02:42 PM
  6. [SOLVED] Math involved. Excel speed optimization question. UDF vs. longer excel equation
    By Abe in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-05-2006, 10:20 AM
  7. [SOLVED] The question is an excel question that I need to figure out howto do in excel.
    By Terry in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2006, 02:25 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