[Solved] Sorting Pot Sizes (by inches ")

Plant Lady

New member
How would I sort a column that has pot diameters (1", 2", 10" etc)?

Example:

The plant size and name is imported from data in another program and it comes over in one column as below:

Example:

2" Plant
10" Plant
8" Plant

When I sort by size, it always puts the 10" plants first.

Thanks!
 
Hello Plant Lady,
Thanks for your query. It seems that you want to sort data from largest to smallest number.
For doing this:
1. First remove all the characters except numbers from the cells. For example, if your cell contains the text: 5" plant, then remove the portion: " plant.
For doing this, press CTRL+H to open the Find and Replace dialog box. In the Find what field, type the characters you want to remove and keep the Replace with field blank. Then click Replace All.
1.png
This command will remove all the characters except numbers.
2. Now, select the range of cells that you want to sort > go to the Home tab > click drop-down Sort & Filter in the Editing group > select Largest to Smallest.
2.png
This command will sort your data.
3.png
Hope you find this helpful.
Regards,
Rafiul Hasan
Team ExcelDemy
 
Rafiul,

Thanks so much for the help. I tried doing as mentioned, but it still isn't sorting properly.

I am wondering if I need to split the text to another column but haven't been able to parse out just the pot size (all numbers in front of the " sign and also the " sign to a new column.

I have attached the sheet I am working with.

I appreciate your time!

Carla
 

Attachments

  • Help Sorting This List.xlsx
    54.6 KB · Views: 2
Carla,
In your provided spreadsheet, I have noticed that there is some discontinuity in your data. The problem you are facing is because of these discontinuities. Some of the data don't contain the (") sign. So, you have to separate the data that don't have the (") sign.

1. First insert two new columns right beside the Plant Size column. Then select the column until you reach the last value > go to Data tab > click Text to Columns.
1.png
2. The Convert Text to Columns Wizard will appear. Keep the Delimited field marked > click Next.
2.png
3. In next step, mark only the Other field and type inverted comma (") here > click Next.
3.png
4. Then type a destination (I have chosen cell $C$2) where you want to show the result after splitting data > click Finish.
4.png
5. Then your numerical data and text that were connected with the (") sign will be separtaed. Now, place the data that don't have the (") sign in a separate place. I have placed them in row 466.
13.png

6. Now, select a random cell in the column that includes numerical data only > go to Home tab > click Sort & Filter under Editing group > select Largest to Smallest.
5.png

7. As a result, your data will be sorted from highest to lowest value.
7.png
8. You will find that the Header has been moved to the bottom of the sorted data.
Click on the row > press CTRL+X to cut the row.
8.png

9. Select the first row > right-click on mouse > select Insert cut cells.
9.png
10. The Header row will be pasted on the top.10.png
That's it! Hope this time you can manage to fulfill your task.
 
Let me provide you with the resolved Excel file!

Keep in touch with ExcelDemy.

Regards
Rafiul Hasan
Team ExcelDemy
 

Attachments

  • Resolved Help Sorting This List.xlsx
    58.8 KB · Views: 0
Last edited:

Online statistics

Members online
0
Guests online
12
Total visitors
12

Forum statistics

Threads
306
Messages
1,351
Members
557
Latest member
RSntg
Top