• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

File sort help

Lasantha

Member
Dear All,

Kindly review the attached file. Can you please help me to sort Visit # by total balance of each visit. (largest to smallest )

Please see the example.

thank you.
 

Attachments

  • Visit file.xlsx
    10.4 KB · Views: 4
Lasantha
Should Your 'format what i need' show as 'Largest to Smallest'?
Which column would be 'total balance'?

Sorry see the attached file.

//Which column would be 'total balance'? //have to calculate total balance of each unique visit by Balance column( column C).
 

Attachments

  • Visit file.xlsx
    10.4 KB · Views: 7
Lasantha
Sorry, there were two questions ...
Did You sent same file again?
I did something that this won't be same file anymore.

my 1st question was:
Should Your 'format what i need' show as 'Largest to Smallest'?
 

Attachments

  • Visit file.xlsx
    14.3 KB · Views: 4
Lasantha
Sorry, there were two questions ...
Did You sent same file again?
I did something that this won't be same file anymore.

my 1st question was:
Should Your 'format what i need' show as 'Largest to Smallest'?

Should Your 'format what i need' show as 'Largest to Smallest'? Yes

There are more than 50 column in original file, so we can't use Pivot table option.
 
Should Your 'format what i need' show as 'Largest to Smallest'? Yes
Okay ... for my eyes that won't look as 'Largest to Smallest'!
.. and if Your original file is '... different' than the example then
how to help to sort something?
 
Try..........

Formula solution with helper.

1] In "helper" D3, copied down :

=IF(COUNTIFS(A$2:A3,A3,B$2:B3,B3)=1,SUMIFS(C:C,A:A,A3,B:B,B3),"")

2] In "Total" H3, copied down until blank :

=IFERROR(LARGE(D$3:D$28,ROWS($1:1)),"")

3] In "visit#" F3, copied across and down :

=IF($H3="","",INDEX(A$3:A$28,AGGREGATE(15,6,ROW($A$3:A28)-ROW($A$2)/($D$3:$D$28=$H3),COUNTIF($H$3:$H3,$H3))))

Regards
Bosco
 

Attachments

  • Visit file(1).xlsx
    14.1 KB · Views: 5
Last edited:
Back
Top