Need help with Excel

Copper Contributor

I need some help with a function or a VBA script.  Essential I want to see:

 

If the 7th character is the letter "a" or "b" in column C then copy entire row and paste in sheet2.

sample data below.  Column C is "Cord"  I want to separate (filter) if the the data in the column cord contains the letter A or B then take the entire row and place in a new sheet.  The character length will always remain the same. I have over 15,000 lines that need to be separated into corresponding sheets based on what the 7th character is.

BldgAreaCordRoomExistTYPE
FRKITC01A01A01C H
FRKITC01A01A02C H
FRKITC01A01A03C H
FRKITC01A02A01C H
FRKITC01A02A02C H
FRKITC01A02A03C H
FRKITC01A03A01C R
FRKITC01A03A02C R
FRKITC01A03A03C R
FRKITC01A03B01C R
FRKITC01A03B02C R
FRKITC01A03B03C R
FRKITC01A03C01C R
FRKITC01A03C02C R
FRKITC01A03C03C R
FRKITC01A03D01C R
FRKITC01A03D02C R
FRKITC01A03D03C R
FRKITC01A03E01C R
FRKITC01A03E02C R
FRKITC01A03E03C R

 

1 Reply

I was able to use a filter function using contains ??????A?? or ??????B?? then the results, I just copied the entire sheet of the results and pasted in new sheet!  Worked like a charm. @Walz_Label