+ Reply to Thread
Results 1 to 5 of 5

Trying to auto sort every time table is updated and calculate percentage

  1. #1
    Registered User
    Join Date
    07-12-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    64

    Trying to auto sort every time table is updated and calculate percentage

    Hi all. Really impressed with the help I got on my last thread so hoping you can help again.

    I have a table of 12 rows that gets its figures from three other tables. I'd like for the data to autosort to keep the highest figure at the top (obviously the row with the highest figure may change when the other 3 tables update) I'd also like it to work out the percentage of the total each row accounts for.

    I have attached a dummy copy as previously requested so you can see whats required. The table is highlighted in yellow.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Trying to auto sort every time table is updated and calculate percentage

    Please try at
    B32
    =INDEX(H:H,MOD(LARGE(INDEX(SUMIFS($I$32:$U$43,$H$32:$T$43,$H$32:$H$43)*10^6+ROW($H$32:$H$43),),ROWS(B$32:B32)),10^3))

    C32
    =LARGE(INDEX(SUMIFS($I$32:$U$43,$H$32:$T$43,$H$32:$H$43),),ROWS(C$32:C32))

    D32 use average
    =IFERROR(SUMIFS($K$32:$W$43,$H$32:$T$43,B32)/3,)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-12-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    64

    Re: Trying to auto sort every time table is updated and calculate percentage

    Thank you.
    With the average, what I was after was for the whole of column C to be added together (1056) and then divided into a percentage and then each row to display its representative percentage on each row

    E.G.
    row 32 = 441 of 1056 = 41.86%
    row 33 = 216 of 1056 = 20.45% as so on....

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Trying to auto sort every time table is updated and calculate percentage

    Then E32
    =C32/SUM($C$32:$D$43)

  5. #5
    Registered User
    Join Date
    07-12-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    64

    Re: Trying to auto sort every time table is updated and calculate percentage

    Thank you Bo_Ry

+ 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. Replies: 3
    Last Post: 03-06-2014, 04:44 PM
  2. Auto Calculate Macros when worksheet data updated or changes in multiple cells
    By Chenj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2013, 06:32 PM
  3. Auto sort when updated
    By IsiEMT in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-26-2011, 02:00 PM
  4. Auto Sort, Auto Lock, Auto Date & Time Stamp
    By suehatesyou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2010, 02:57 PM
  5. [UPDATED] excel 2007 worksheet to HTML website. auto refresh/calculate?
    By astar24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2009, 12:11 PM
  6. auto-calculate percentage formula
    By Jeebs in forum Excel General
    Replies: 2
    Last Post: 07-03-2008, 02:54 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