A001 instead of P41_A001_2G

sanlen

New Member
Joined
Aug 24, 2010
Messages
39
Hi,

I have code numbers formatted in mess up way. ie. P41_A001_2G, P41_B23_2G,.....
i want to use if condition to return value base on the code number. However, i do not want to type the whole P41_A001_2G in my cell, and just want to use A001 or B23 instead.

=IF(C2=A3,"Yes","No")

How to trim a way P41_ and _2G and using only 3 characters in the middle as condition to return Yes or No?

Thanks,
sanlen
 
If this is not what you want, you may need to clarify your example a bit more.

Excel Workbook
ABCD
2P41_A001_2GA001Yes
3P41_B23_2GX45No
Check Part
 
Upvote 0

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