Advanced Sorting

G

Guest

Guest
Hello
I have posted a question about sorting
I am wondering is it possible to sort a data with the following format (in excel)
Date..Time..Color..Freq
.2.....3......B.....C
..............A.....D
..............C.....P
Date..Time..Color..Freq
.3.....4......D.....A
..............D.....Q
..............O.....R

...means blank cells

so I can sort Date or Time and move the corrisponding data all together without changing the original format

Thanks in advance
 
A precondition for my recommended approach is that you remove all repeating titles (i.e., Date..Time..Color..Freq). If you're unwilling to do that then perhaps someone can write a custom VBA for you.
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I need to figure out how to sort the spects for a company
There are thousands of records(thousands of headers) in a spect.
So is writing VBA the only way to do the sorting with headers?
Do you know how to write this kind of VBA by any chance?
 
Upvote 0
I also tried to sort without the header but I still can't do the sorting.
For example
Before sorting:
Date Time Color
22....33...44
...........22
...........33
11....22...44
...........55
...........66
After sorting:
Date Time Color
11....22...22
22....33...33
...........44
...........44
...........55
...........66
I need to get a sorting like
Date Time Color
11....22...44
...........55
...........66
22....33...44
...........22
...........33
1. Select cells A1:B7 and choose the Edit | Go To... | Special... Blanks menu command.

2. Without altering the selection Control+Enter the formula, =A2, into cell A3.

2.5 Select columns A:B and perform Copy/Paste Special... Values.

3. Select columns A:B and press [ Tab ] until cell A2 is the active cell.

4. Choose the Format | Conditional Formatting ... menu command.

5. Setup a "Formula Is" condition using the formula, =A1=A2, and format the Font color to match the cell background color (white, in my case).

What does step 5 do? I can't see any changes after I finish that step.
And What should I do after I finish those 5 steps?
Should I select all the data and press sort button or should I just select the data under first 2 columns?
 
Upvote 0
These results suggest that steps 1 thru 2.5 weren't performed properly. Step 5 preserves the appearance of your original data.
 
Upvote 0
So what should I do after those 5 steps?
Those 5 steps are just prepare me for soring right
 
Upvote 0
On 2002-03-01 12:20, Anonymous wrote:
So what should I do after those 5 steps?
Those 5 steps are just prepare me for soring right

>So what should I do after those 5 steps?

Do your sort on columns A and/or B.

>Those 5 steps are just prepare me for soring right

Yes.
 
Upvote 0
I did those 5 steps over and over again and I still couldn't get my data to sort properly
Anyways, thank you so much for helping Mark
 
Upvote 0

Forum statistics

Threads
1,214,405
Messages
6,119,315
Members
448,886
Latest member
GBCTeacher

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