+ Reply to Thread
Results 1 to 8 of 8

Using transpose or other way to make a table

  1. #1
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Using transpose or other way to make a table

    Hello,

    I have this problem to transpose the data in sheet "EXPORT" to sheet "STOCK(TRANS)", as shown in sheet STOCK(TRANS); the example which I made in sheet STOCK(TRANS) is made manually by hand. but I do this daily and it takes so much time.
    Please, kindly can you help me?

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Using transpose or other way to make a table

    What is your expected answer in C, D, E & F for this combination:

    PLSTR1177 GREEN
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Using transpose or other way to make a table

    First part. Insert an extra row on the 2nd sheet. In A3, copied across to B3 and down:

    =IFERROR(INDEX(Export!B:B,AGGREGATE(15,6,ROW(Export!$B$2:$B$1555)/(COUNTIFS($A$1:$A2,Export!$B$2:$B$1555,$B$1:$B2,Export!$C$2:$C$1555)=0),1)),"")
    Attached Files Attached Files

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Using transpose or other way to make a table

    @Mark00963,
    Your sizing (S,M,L,XL) is not consistent therefore some stock does not get accounted for.
    torachan.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Using transpose or other way to make a table

    In the absence of an answer... I have made a guess.

    I also made a mistake in my first formula. No need for an extra row. I have no idea where I got that idea from...


    In B2, copied across and down:
    =IFERROR(INDEX(Export!B:B,AGGREGATE(15,6,ROW(Export!$B$2:$B$1555)/(COUNTIFS($A$1:$A1,Export!$B$2:$B$1555,$B$1:$B1,Export!$C$2:$C$1555)=0),1)),"")

    In C1, copied across to Z1:
    =IFERROR(INDEX(Export!$D$2:$D$1555,MATCH(0,INDEX(COUNTIF($B$1:B$1,Export!$D$2:$D$1555),0),0)),"")

    In C2, copied across and dnown:
    =IFERROR(INDEX(Export!$E$2:$E$1555,MATCH(1,INDEX((Export!$B$2:$B$1555=$A2)*(Export!$C$2:$C$1555=$B2)*(Export!$D$2:$D$1555=C$1),0),0)),"")

    It's a wee bit slow (cols A & B are tough going for the PC).
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 07-07-2019 at 09:17 AM.

  6. #6
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Re: Using transpose or other way to make a table

    Hi Glen,

    Thank you so much for giving such a solution, it worked perfectly! still, I don't know how you did it because my Excel knowledge is limited.

    if I need to do this daily will I be successful if I followed the steps which you have explained?

    Thanks again.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Using transpose or other way to make a table

    Providing you don't make a mistake, yes!! But isn't the easiest thing to create a template sheet with the calculations there and padste your daily data into it?

  8. #8
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Re: Using transpose or other way to make a table

    sure, I'm gonna try to do that also.

    Thanks for the help.

+ 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. To transpose or not to transpose? What decides? Table / Array?
    By LIL2606 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-19-2019, 01:28 PM
  2. Replies: 4
    Last Post: 08-21-2018, 09:24 AM
  3. [SOLVED] Transpose horizontal table to a vertical table via query
    By Journeyman3000 in forum Access Tables & Databases
    Replies: 5
    Last Post: 12-03-2015, 10:21 PM
  4. Transpose Help; I need to make every 4 rows into one row with 4 columns! Please!
    By Robles4242 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-21-2015, 11:46 PM
  5. transpose column to a range calculate and transpose to new table loop
    By moshro1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2015, 10:52 AM
  6. [SOLVED] How to transpose two tables to make a one?
    By Mirisage in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-17-2014, 10:24 PM
  7. Coding to make a transpose values button
    By Sally in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2006, 06:15 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