Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50076

How to copy rows to new worksheet based on unique first character in column

$
0
0
Hello, I am trying to create a macro to copy rows from a data file into separate worksheets based on the unique first character of cell entries for a particular column in the data file.

I read previous posts for copying rows to a new worksheet but the column that is being evaluated to determine the name of the new spreadsheet should only have the first character evaluated, not the entire cell.

Any suggestions?
I will try to attach a file showing the raw data in the first sheet with the intended output in additional sheets. The column being evaluated is column 'K' and entries are in the format "B-01-00", "C-01-04", "D-02-03", etc... I would like to have a worksheet for all the "B"s, "C"s, "D"s, etc.... (there could be many variations up to "Z").

Attachment 220105

Viewing all articles
Browse latest Browse all 50076

Trending Articles