+ Reply to Thread
Results 1 to 4 of 4

Sorting and Summing

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Sorting and Summing

    Attached is the excel sheet for referance

    This is what i am looking for:

    1. Every month data will be added ...Feb-08 will be added in Column AC.
    Cell C4 thru C101 is the sum(D4..AB4) and similarly Sum(D101..AB101).
    I now manually have to change the formula to sum(D4..AC4)..and so on.
    i would like to see if there is better way to handling this to avoid changing manually every month.

    2. I would like a Macro to sort Ascending/Descending by asking "Which column would i like to sort"...

    Please help....as always help is greatly appreicated...


    Please let me know if you have any questions...

    Riz Momin
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    As far as the Summing in Column C goes, why can't you have it SUM (D4:IV4) or some other column way out there? If you are graphing these, and need to have dynamic ranges, let me know and I'll describe formulas (Defined Names) for dynamic ranges but I think it's overkill here.

    I'm not proficient enough with VBA to coach you there but it's definitely feasible.

    ChemistB

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Okay, I cheated a little by using a FORMs combobox for the user to choose a column and then click on the button to autosort but here's my stab at it. Sheet 2 can be hidden so people don't mess with it.

    My macro code is as follows;
    Please Login or Register  to view this content.
    ChemistB
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434
    Thank a lot...this works but 1 small request...
    i needed to sort by Column A and B also so i would need that option

    Please help

    Thank U

    Riz Momin

+ 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