clearing duplicate data in multiple columns after sorting
Posted by Pete on August 23, 2000 8:22 PM
My original problem was that I needed to sort the columns a,b,c without moving everything up.
A B C
1|Beverages |Colas |Sprite
2| | |Pepsi
3| | |Coke
4| |Juice |Orange
5| | |Apple
6|Meats |Chicken|Friers
7| | |Cuts
8| |Beef |Steaks
9| | |Hamburger
The only way to sort is to fill in the blanks with repeating info. I found the handy function of selecting the range, then Go To/Special/Blanks then in a2 enter =a1 then CNTL ENTER. Copy the range and paste values to rid the formula. Then sort accordingly.
A B C
1|Beverages |Colas |Coke
2|Beverages |Colas |Pepsi
3|Beverages |Colas |Sprite
4|Beverages |Juice |Apple
5|Beverages |Juice |Orange
6|Meats |Beef |Hamburger
7|Meats |Beef |Steak
After sorting the range correctly, now I want to remove (actually 'clear') the repeating cells and restore the original format.
Is there a non-macro way to do this? If a macro is required, any ideas on a variable ranges?