Considering Specific Alphanumeris characters in Cell

shansakhi

Active Member
Joined
Apr 5, 2008
Messages
291
Office Version
  1. 365
Platform
  1. Windows
Hi All,
Can you please assist for below.
I have below data sepearted by "-". There are thousand of rows.
I want all the 2 alphanumeric codes except W2 as output... only2 alphanumeric

Routing (Input)AL (Output)
MJ-W2-W2-W2-W2-MJMJ MJ
ET-ET-W2-W2-W2-TFET ET TF
W2-W2-TF-MJ-W2-W2TF MJ
CO-W2-W2-V-W2-COCO CO
CO-V-W2-V-TF-W2CO TF
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about
Fluff.xlsm
AB
1Routing (Input)AL (Output)
2MJ-W2-W2-W2-W2-MJMJ MJ
3ET-ET-W2-W2-W2-TFET ET TF
4W2-W2-TF-MJ-W2-W2TF MJ
5CO-W2-W2-V-W2-COCO CO
6CO-V-W2-V-TF-W2CO TF
Data
Cell Formulas
RangeFormula
B2:B6B2=LET(s,TEXTSPLIT(A2,"-"),TEXTJOIN(" ",,FILTER(s,(s<>"W2")*(LEN(s)=2))))
 
Upvote 0
Solution
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,221,522
Messages
6,160,308
Members
451,637
Latest member
hvp2262

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top