butlerkd52
New Member
- Joined
- Jun 27, 2017
- Messages
- 3
Hi, first time posting! I'm attempting to auto sort sheet 2(col A, then col B) alphabetically that is pre-populated based on criteria selected from sheet 1 while ignoring specific keywords(Select) in sheet 2 and pushing those rows to the bottom of the list. I have been able to sort the data A-Z, but I cannot figure out the exclusion part of it.
What would work best, formula or macro?
Thanks in advance for your help!
The first table represents the raw data while the second table represents what I want the list to be sorted to. Col A sorted A-Z, then Col B sorted A-Z, all while ignoring everything that starts with "Select" and moves them to the bottom of the list.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Header 1[/TD]
[TD]Header 2[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Carrot[/TD]
[/TR]
[TR]
[TD]Select Fruit or Vegetable[/TD]
[TD]Select Fruit or Vegetable[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Pineapple[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Onion[/TD]
[/TR]
[TR]
[TD]Select Fruit or Vegetable[/TD]
[TD]Select Fruit or Vegetable[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Header 1[/TD]
[TD]Header 2[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Pineapple[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Carrot[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Onion[/TD]
[/TR]
[TR]
[TD]Select Fruit or Vegetable[/TD]
[TD]Select Fruit or Vegetable[/TD]
[/TR]
[TR]
[TD]Select Fruit or Vegetable[/TD]
[TD]Select Fruit or Vegetable[/TD]
[/TR]
</tbody>[/TABLE]
What would work best, formula or macro?
Thanks in advance for your help!
The first table represents the raw data while the second table represents what I want the list to be sorted to. Col A sorted A-Z, then Col B sorted A-Z, all while ignoring everything that starts with "Select" and moves them to the bottom of the list.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Header 1[/TD]
[TD]Header 2[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Carrot[/TD]
[/TR]
[TR]
[TD]Select Fruit or Vegetable[/TD]
[TD]Select Fruit or Vegetable[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Pineapple[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Onion[/TD]
[/TR]
[TR]
[TD]Select Fruit or Vegetable[/TD]
[TD]Select Fruit or Vegetable[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Header 1[/TD]
[TD]Header 2[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Pineapple[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Carrot[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Onion[/TD]
[/TR]
[TR]
[TD]Select Fruit or Vegetable[/TD]
[TD]Select Fruit or Vegetable[/TD]
[/TR]
[TR]
[TD]Select Fruit or Vegetable[/TD]
[TD]Select Fruit or Vegetable[/TD]
[/TR]
</tbody>[/TABLE]