SORT column ascending order

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
543
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
we have the following sheet where we have data in column A to D, and in column F, we have combined the data,

now we want to sort the column F in ascending order. help please

Cell Formulas
RangeFormula
F2:F18F2=IF(A2="","",A2& " (" &C2& ") " &"("&D2&")")
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
now we want to sort the column F in ascending order. help please
Do you mean to sort only col F without affecting other columns?
Just remove the formula and keep the value:
VBA Code:
Sub remove_formula()

With Range("F2", Cells(Rows.Count, "F").End(xlUp))
    .Value = .Value
End With
End Sub

then sort manually.
 
Upvote 0
Do you mean to sort only col F without affecting other columns?
Just remove the formula and keep the value:
VBA Code:
Sub remove_formula()

With Range("F2", Cells(Rows.Count, "F").End(xlUp))
    .Value = .Value
End With
End Sub

then sort manually.
Thanks Akuini,

No, we want to sort only column F data, we can get sorted data in Column G

Any Excel formula will be appreciated

Thanks
 
Upvote 0
By which data do you wish to sort? Title, Distributor, or Domestic Gross?
 
Upvote 0
If you are running O365, then in G2 =SORT(F2:F11,1,1)

RankTitleDistributorDomestic grossCOMBINESORT
Top Gun: MaverickT+4Paramount$718,732,821Top Gun: Maverick (Paramount) (718732821)Avatar: The Way of Water (20th Century / Disney) (684075767)
Avatar: The Way of WaterT+420th Century / Disney$684,075,767Avatar: The Way of Water (20th Century / Disney) (684075767)Black Panther: Wakanda Forever (Disney) (453829060)
Black Panther: Wakanda ForeverT+4Disney$453,829,060Black Panther: Wakanda Forever (Disney) (453829060)Doctor Strange in the Multiverse of Madness (411331607) (9586754)
Doctor Strange in the Multiverse of MadnessT+4########$9,586,754Doctor Strange in the Multiverse of Madness (411331607) (9586754)Jurassic World Dominion (Universal) (376851080)
Jurassic World DominionT+6Universal$376,851,080Jurassic World Dominion (Universal) (376851080)Minions: The Rise of Gru (369695210) (98605746)
Minions: The Rise of GruT+6########$98,605,746Minions: The Rise of Gru (369695210) (98605746)Puss in Boots: The Last Wish (Universal) (185535345)
The BatmanT+8Warner Bros.$369,345,583The Batman (Warner Bros.) (369345583)Sonic the Hedgehog 2 (Paramount) (190872904)
Thor: Love and ThunderT+8Disney$343,256,830Thor: Love and Thunder (Disney) (343256830)The Batman (Warner Bros.) (369345583)
Sonic the Hedgehog 2T+8Paramount$190,872,904Sonic the Hedgehog 2 (Paramount) (190872904)Thor: Love and Thunder (Disney) (343256830)
Puss in Boots: The Last WishT+8Universal$185,535,345Puss in Boots: The Last Wish (Universal) (185535345)Top Gun: Maverick (Paramount) (718732821)
 
Upvote 0
Help.xlsx
ABCDEFG
1RankTitleDistributorDomestic grossCOMBINESORT
22Top Gun: MaverickT+4Paramount$718,732,821Top Gun: Maverick Paramount $718,732,821Top Gun: Maverick Paramount $718,732,821
33Avatar: The Way of WaterT+420th Century / Disney$684,075,767Avatar: The Way of Water 20th Century / Disney $684,075,767Avatar: The Way of Water 20th Century / Disney $684,075,767
44Black Panther: Wakanda ForeverT+4Disney$453,829,060Black Panther: Wakanda Forever Disney $453,829,060Black Panther: Wakanda Forever Disney $453,829,060
55Doctor Strange in the Multiverse of MadnessT+4Disney$9,586,754Doctor Strange in the Multiverse of Madness Disney $9,586,754Jurassic World Dominion Universal $376,851,080
66Jurassic World DominionT+6Universal$376,851,080Jurassic World Dominion Universal $376,851,080The Batman Warner Bros. $369,345,583
77Minions: The Rise of GruT+6Universal$98,605,746Minions: The Rise of Gru Universal $98,605,746Thor: Love and Thunder Disney $343,256,830
88The BatmanT+8Warner Bros.$369,345,583The Batman Warner Bros. $369,345,583Sonic the Hedgehog 2 Paramount $190,872,904
99Thor: Love and ThunderT+8Disney$343,256,830Thor: Love and Thunder Disney $343,256,830Puss in Boots: The Last Wish Universal $185,535,345
1010Sonic the Hedgehog 2T+8Paramount$190,872,904Sonic the Hedgehog 2 Paramount $190,872,904Minions: The Rise of Gru Universal $98,605,746
1111Puss in Boots: The Last WishT+8Universal$185,535,345Puss in Boots: The Last Wish Universal $185,535,345Doctor Strange in the Multiverse of Madness Disney $9,586,754
Sheet1
Cell Formulas
RangeFormula
G2:G11G2=SORTBY(F2:F11,E2:E11,-1)
F2:F11F2=B2&" "&D2&" "&TEXT(E2,"$#,##")
Dynamic array formulas.


Sorted by Domestic Gross
 
Upvote 0
For 2010 how about
Fluff.xlsm
ABCDEFGH
1RankTitleDistributorDomestic grossCOMBINESORT
2Top Gun: MaverickT+4Paramount$718,732,821Top Gun: Maverick (Paramount) ($718,732,821)10Avatar: The Way of Water (20th Century / Disney) ($684,075,767)
3Avatar: The Way of WaterT+420th Century / Disney$684,075,767Avatar: The Way of Water (20th Century / Disney) ($684,075,767)1Black Panther: Wakanda Forever (Disney) ($453,829,060)
4Black Panther: Wakanda ForeverT+4Disney$453,829,060Black Panther: Wakanda Forever (Disney) ($453,829,060)2Doctor Strange in the Multiverse of Madness ($411,331,607) ($9586754)
5Doctor Strange in the Multiverse of MadnessT+4$411,331,607$9586754Doctor Strange in the Multiverse of Madness ($411,331,607) ($9586754)3Jurassic World Dominion (Universal) ($376,851,080)
6Jurassic World DominionT+6Universal$376,851,080Jurassic World Dominion (Universal) ($376,851,080)4Minions: The Rise of Gru ($369,695,210) ($98605746)
7Minions: The Rise of GruT+6$369,695,210$98605746Minions: The Rise of Gru ($369,695,210) ($98605746)5Puss in Boots: The Last Wish (Universal) ($185,535,345)
8The BatmanT+8Warner Bros.$369,345,583The Batman (Warner Bros.) ($369,345,583)8Sonic the Hedgehog 2 (Paramount) ($190,872,904)
9Thor: Love and ThunderT+8Disney$343,256,830Thor: Love and Thunder (Disney) ($343,256,830)9The Batman (Warner Bros.) ($369,345,583)
10Sonic the Hedgehog 2T+8Paramount$190,872,904Sonic the Hedgehog 2 (Paramount) ($190,872,904)7Thor: Love and Thunder (Disney) ($343,256,830)
11Puss in Boots: The Last WishT+8Universal$185,535,345Puss in Boots: The Last Wish (Universal) ($185,535,345)6Top Gun: Maverick (Paramount) ($718,732,821)
Master
Cell Formulas
RangeFormula
F2:F11F2=IF(A2="","",A2& " (" &C2& ") " &"("&D2&")")
G2:G11G2=COUNTIFS($F$2:$F$20,"<"&F2,$F$2:$F$20,"?*")+1
H2:H11H2=INDEX(F:F,AGGREGATE(15,6,ROW($F$2:$F$11)/($G$2:$G$11=SMALL($G$2:$G$11,ROWS(H$1:H1))),1))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,946
Messages
6,181,939
Members
453,074
Latest member
JefersonKollet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top