+ Reply to Thread
Results 1 to 20 of 20

transposing accourding to values in a cell?

Hybrid View

alisam transposing accourding to... 12-28-2022, 07:51 AM
sandy666 Re: transposing accourding to... 12-28-2022, 08:04 AM
alisam Re: transposing accourding to... 12-28-2022, 08:19 AM
sandy666 Re: transposing accourding to... 12-28-2022, 08:36 AM
alisam Re: transposing accourding to... 12-28-2022, 08:58 AM
Glenn Kennedy Re: transposing accourding to... 12-28-2022, 09:07 AM
sandy666 Re: transposing accourding to... 12-28-2022, 09:08 AM
sandy666 Re: transposing accourding to... 12-28-2022, 09:17 AM
alisam Re: transposing accourding to... 12-28-2022, 10:51 AM
alisam Re: transposing accourding to... 12-28-2022, 10:49 AM
Glenn Kennedy Re: transposing accourding to... 12-28-2022, 10:55 AM
sandy666 Re: transposing accourding to... 12-28-2022, 10:57 AM
Glenn Kennedy Re: transposing accourding to... 12-28-2022, 11:05 AM
alisam Re: transposing accourding to... 12-28-2022, 11:13 AM
alisam Re: transposing accourding to... 12-28-2022, 11:29 AM
Glenn Kennedy Re: transposing accourding to... 12-28-2022, 11:36 AM
Glenn Kennedy Re: transposing accourding to... 12-28-2022, 11:29 AM
alisam Re: transposing accourding to... 12-28-2022, 11:39 AM
Glenn Kennedy Re: transposing accourding to... 12-28-2022, 11:41 AM
Glenn Kennedy Re: transposing accourding to... 12-28-2022, 11:41 AM
  1. #1
    Registered User
    Join Date
    11-20-2011
    Location
    Switzerland
    MS-Off Ver
    Office 365
    Posts
    28

    transposing accourding to values in a cell?

    hello all
    I am using excel in Office 365
    I have columns A to D in my excel sheet.
    Column A has a value and some blank cells on various lines: I want to transpose the values in column C and D on the first line until column A changes.
    in the attachment, line 3 has the transposed values of column C and D, until the Value in column A changes.
    and when it does, I need the same for that record: meaning, column C and D until the next value of A changes, must be transposedAttachment 810999Attachment 811006
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by alisam; 12-28-2022 at 10:50 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: transposing accourding to values in a cell?

    attach.png

    and are you really using excel 2003? update your profile!

  3. #3
    Registered User
    Join Date
    11-20-2011
    Location
    Switzerland
    MS-Off Ver
    Office 365
    Posts
    28

    Re: transposing accourding to values in a cell?

    hi Sandy
    I can update my profile but I also specifically wrote in the post that I am using Office 365.
    now, having said that, manually calculated is what I did! the first record I manually transposed the values od column C and D and basically showed what it is I want.
    what exactely do you want me to do?

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: transposing accourding to values in a cell?

    did you read HOW TO ATTACH SAMPLE EXCEL WORKBOOK ?

  5. #5
    Registered User
    Join Date
    11-20-2011
    Location
    Switzerland
    MS-Off Ver
    Office 365
    Posts
    28

    Re: transposing accourding to values in a cell?

    better?
    i attached the excel, I hope it is clear

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

    Re: transposing accourding to values in a cell?

    No. Where are all the other rows of raw data? Please do not expect us to recreate what you already have right in front of you...
    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

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: transposing accourding to values in a cell?

    better, better, no one wants to rewrite the data from the picture

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: transposing accourding to values in a cell?

    I'll try again
    what is the logic of your problem?
    your example in the workbook is not representative

    we need example BEFORE (source) and AFTER (expected result)

    read carefully big yellow banner at the top of this page

  9. #9
    Registered User
    Join Date
    11-20-2011
    Location
    Switzerland
    MS-Off Ver
    Office 365
    Posts
    28

    Re: transposing accourding to values in a cell?

    ok, now there is a before, after and the picture which explains it

  10. #10
    Registered User
    Join Date
    11-20-2011
    Location
    Switzerland
    MS-Off Ver
    Office 365
    Posts
    28

    Re: transposing accourding to values in a cell?

    apologies
    i uploaded the wrong file
    now there is a before and after. which actually the picture showed quite well, maybe I will upload the picture as well just for clarification

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

    Re: transposing accourding to values in a cell?

    The picture showed it perfectly... but we offer help for fun, for free. We expect YOU to prepare sample sheets, if required. You should not expect US to do so, for you. You already have it, in front of you.

    Is this close?

    =LET(A,$A$2:$A$28,B,,C,$C$2:$D$28,D,SCAN("",A,LAMBDA(x,y,IF(y="",x,y))),IF((A2<>"")*(A3="")=1,TRANSPOSE(TOCOL(FILTER(C,D=A2),,1)),""))
    Attached Files Attached Files

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: transposing accourding to values in a cell?

    [removed]...................................

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

    Re: transposing accourding to values in a cell?

    This might be better:

    =LET(A,$A$2:$A$28,B,,C,$C$2:$C$28,D,$D$2:$D$28,E,SCAN("",A,LAMBDA(x,y,IF(y="",x,y))),F,IF((A2<>"")*(A3="")=1,DROP(TRANSPOSE(TOCOL(FILTER(C,E=A2),,1)),,1),""),G,IF((A2<>"")*(A3="")=1,DROP(TRANSPOSE(TOCOL(FILTER(D,E=A2),,1)),,1),""),HSTACK(F,"",G))
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    11-20-2011
    Location
    Switzerland
    MS-Off Ver
    Office 365
    Posts
    28

    Re: transposing accourding to values in a cell?

    hehehe I would never know to create such a formula.
    almost there: the column D must always start to be transposed in column J: do you think this is possible?

  15. #15
    Registered User
    Join Date
    11-20-2011
    Location
    Switzerland
    MS-Off Ver
    Office 365
    Posts
    28

    Re: transposing accourding to values in a cell?

    if I understand correctly the formula, in place of all the 28 I must enter the final line number? meaning, I have a total of 6786 lines.....

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

    Re: transposing accourding to values in a cell?

    Quote Originally Posted by alisam View Post
    if I understand correctly the formula, in place of all the 28 I must enter the final line number? meaning, I have a total of 6786 lines.....
    Yes. Correct.

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

    Re: transposing accourding to values in a cell?

    Everything is possible... The easiest way is to split it in two...

    Acceptable?
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    11-20-2011
    Location
    Switzerland
    MS-Off Ver
    Office 365
    Posts
    28

    Re: transposing accourding to values in a cell?

    absolutely perfect!!!
    thank you so much, this really helped me!

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

    Re: transposing accourding to values in a cell?

    Or, a more future-proof version:

    =LET(A,$A$2:$D$10000,B,FILTER(A,INDEX(A,,2)<>""),C,SCAN("",INDEX(B,,1),LAMBDA(x,y,IF(y="",x,y))),D,(A2<>"")*(A3=""),IF(D=1,TRANSPOSE(DROP(FILTER(INDEX(B,,3),C=A2),1)),""))

    only one number to change, if needed. See file.
    Attached Files Attached Files

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

    Re: transposing accourding to values in a cell?

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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] Average If for a Range of Dates accourding to a drop down list?
    By PaddyP in forum Excel General
    Replies: 6
    Last Post: 11-22-2022, 02:12 PM
  2. [SOLVED] Transposing Values Using VBA
    By Ian.Lance in forum Excel General
    Replies: 8
    Last Post: 08-06-2020, 01:57 AM
  3. Replies: 2
    Last Post: 11-11-2019, 06:22 AM
  4. Replies: 0
    Last Post: 05-28-2013, 05:53 AM
  5. Transposing list of values with 6 zeroes in front to retain the zero after transposing
    By Lisa4legin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2013, 03:34 AM
  6. Transposing Date Values
    By Boendog in forum Excel General
    Replies: 6
    Last Post: 07-09-2012, 09:14 AM
  7. Keep last row format/values when transposing values from one worksheet to another
    By BuzzOffSweetheart in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2012, 02:27 PM

Tags for this Thread

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