Hi all,
I have to macro below which has been working great when sorting a list of items in a specific alphanumerical order. It works great when the sheet has a single list of items. The challenge I have now, is that I oftentimes have a sheet containing several lists of items. Attached sample book shows an example of what I'm talking about (To Be Sorted). The macro in its current state sorts based on an inserted column B (which is then deleted), but ALL content is then re-arranged. The result you can see it in Sheet1. What I've been doing to avoid such result, is cutting and pasting every list to its own sheet, run the macro, then cut and paste the resulting sorted list back to the main sheet, but it has become a time consuming process when I have close to 10 lists in the sheet.
What I'm looking to achieve is this: I'd like to manually click on the first item of a list (for instance, A2, H2 or H11 in the sample sheet) to tell Excel where my list starts, then run a macro that sorts that specific list individually, without affecting the other lists within the sheet. My lists always have at least one empty column (and an empty row if there's more below) between them. (OR, if possible, it would be even better if Excel can find those cells where the lists start, since they will always be under the title "SKU").
If you see the code, you'll notice I'm introducing a formula to sort based on its results, the reason I need this is so the items are sorted like first column, not as the second one in the sample below. However, if there's a better way to achieve this sorting, that would be even better!:
BCP-3500 VS BCP-10315
BCP-10315 VS BCP-34201
BCP-34201 VS BCP-3500
Thanks for any help!
Please Login or Register to view this content.
Bookmarks