+ Reply to Thread
Results 1 to 11 of 11

Arrange the rows values into columns

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    27

    Arrange the rows values into columns

    Hi,

    I have a data that contains my clients appointments and one client is having multiple appointments in row (please refer sheet 2). Now I am updating the data in sheet 1 as clients in rows and need to update the appointments in columns.

    Please let me know which excel function will work. As of now I am updating manually with transpose function.

    Thanks,
    Satya
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,091

    Re: Arrange the rows values into columns

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  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,099

    Re: Arrange the rows values into columns

    Please confirm... Excel 2007??
    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

  4. #4
    Registered User
    Join Date
    06-23-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Arrange the rows values into columns

    Yes Glenn. I am having excel 2007 and cant use Unique function

    Thanks,
    Satya

  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,099

    Re: Arrange the rows values into columns

    Your sample size is FAR too big. I cut it back to <20 rows. Adjust the ranges back again to suit your real data.

    To return names, sheet 2, a2:

    =IFERROR(INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$B$2:$M$17<>"",ROW(Sheet1!$A$2:$A$17)),ROWS(A$2:A2))),"")

    copied down. You seem to be using an older version of Excel than me. So, please refer to the attached file. The formulae are enclosed within a pair of { }, these are array formulae.

    These are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see the curly brackets { } appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    In B2, copied down:

    =IF($A2="","",INDEX(Sheet1!$B$2:$M$17,MATCH($A2,Sheet1!$A$2:$A$17,0),(COUNTIF($A$2:$A2,$A2))))

    see file.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-23-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Arrange the rows values into columns

    Hi Glen,

    Thanks for the formula. My apologies if my message is cofusing. I want to display the sheet 2 appointments in Sheet 1 with respective client and appointments in columns

    Thanks,
    Satya

  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,099

    Re: Arrange the rows values into columns

    Damn!!

    Sheet 1 A2, copied down:
    =IFERROR(INDEX(Sheet2!$A$2:$A$35,MATCH(1,INDEX(--ISNA(MATCH(Sheet2!$A$2:$A$35,A$1:A1,)),),)),"")

    B2, copied across and down:
    =IFERROR(INDEX(Sheet2!$B:$B,SMALL(IF(Sheet2!$A$2:$A$35=$A2,ROW(Sheet2!$A$2:$A$35)),COLUMNS($B2:B2))),"")
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-23-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Arrange the rows values into columns

    Hey Glenn,

    Thanks for the formula. Some how this formula is not working for me when I copied =IFERROR(INDEX(Sheet2!$B:$B,SMALL(IF(Sheet2!$A$2:$A$35=$A2,ROW(Sheet2!$A$2:$A$35)),COLUMNS($B2:B2))),"") this formula in sheet 1 Column C, it showing blank value for me. Is am doing any mistake?

    Thanks,
    Satya

  9. #9
    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,099

    Re: Arrange the rows values into columns

    I forgot to remind you... it is an array formula and needs CTRL-SHIFT-ENTER as described in Post 5. If not, then post the file. I can not diagnose invisible problems.

  10. #10
    Registered User
    Join Date
    06-23-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Arrange the rows values into columns

    Thanks Glenn...Its working now.

    Thanks,
    Satya

  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 2403
    Posts
    44,099

    Re: Arrange the rows values into columns

    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 select "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] semi repeating data in columns to arrange in rows
    By silvilalulu in forum Excel General
    Replies: 17
    Last Post: 09-04-2019, 05:02 AM
  2. need formula to arrange the data from columns to Rows
    By Giri.hb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2018, 02:10 AM
  3. Arrange Scattered rows value to underneath appropriate columns heading
    By ritesh.bsim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2014, 01:42 AM
  4. [SOLVED] Re arrange columns from selected rows
    By steve_ed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2013, 01:47 PM
  5. Arrange values in columns
    By wkhor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2012, 09:57 PM
  6. [SOLVED] Transpose Data/ Re-Arrange Columns and Rows
    By newbieexceldude in forum Excel General
    Replies: 2
    Last Post: 02-19-2012, 08:14 PM
  7. Arrange columns of names & addresses into rows
    By SKMaverick in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-04-2010, 02:36 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