+ Reply to Thread
Results 1 to 12 of 12

Alphabetizing rows

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Alphabetizing rows

    Is there any way I can alphabetize a row, but also include the data that goes with it?

    For example:
    List Price. Sally Total Billy Total Suzie Total
    Nuts. $0.4. 4. $.16
    Bolts. $0.56 2 $1.12
    Screws. $45.0 3. $135

    Ok, so it's an inventory list. Under each of the "total" is a formula for the total price of what the workers used of each item. So, what I need to do is alphabetize the names, but I need the corresponding "totals" data to stay with that name when alphabetizing. Is there anyway to do this?? I feel like I've tried everything. Hope this made a little sense.

    Thanks in advance!!

  2. #2
    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,457

    Re: Alphabetizing rows

    You just have to select all the data, if that isn't done automatically, before you Sort it. Usually, when you choose Sort, it will select all the columns/data ... but this might not happen if there are blank columns or rows.


    Regards, TMS
    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


  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Alphabetizing rows

    Thanks Trevor,

    However it doesn't seem to let me sort from A to Z if its rows I'm wanting to sort. It sorts it down the column, which isn't what I'm looking for. Any advice?

  4. #4
    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,457

    Re: Alphabetizing rows

    Please post a sample workbook.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    03-06-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Alphabetizing rows

    Here is my sample work book. Hope this helps.
    Attached Files Attached Files

  6. #6
    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,457

    Re: Alphabetizing rows

    Not sure why this is a problem for you.

    You start with this:

    HTML Code: 

    and, after sorting A to Z, end up with this:

    HTML Code: 

    Just click anywhere in the data area and select Sort from the Ribbon and choose A to Z. Done.

    What am I missing? Have I misunderstood your requirement?

    Regards, TMS

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Alphabetizing rows

    Pl try this macro.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    03-06-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Alphabetizing rows

    Yes, I think you misunderstood me. I'm trying to alphabetize the names in row 1, excluding "list" and "price". I don't need the "list" items alphabetized, just row one. It there any way to do this? For example, across the top it should be "Dana"(totals) "Lindsay" (totals) "Rylan" (totals).

  9. #9
    Registered User
    Join Date
    03-06-2013
    Location
    delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Alphabetizing rows

    have you tried applying filter via row?

  10. #10
    Registered User
    Join Date
    03-06-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Alphabetizing rows

    I have no idea how to do that!

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Alphabetizing rows

    post excel sheet with data and report you want

  12. #12
    Registered User
    Join Date
    03-06-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Alphabetizing rows

    Quote Originally Posted by nflsales View Post
    post excel sheet with data and report you want
    I've posted a sample workbook in this thread. Hope that helps. I can't post the actual sheet that I need help with.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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