Using IF to detect the nth character in a cell

Colmans

Board Regular
Joined
May 28, 2016
Messages
62
Hi

I need to amend a formula to run sumifs and countifs. My challenge is that I need to identify a product serial number. The serial number contains two parts, the first part is rigid but the second part is variable. Part of the code I need will always be the 5th and/or 6th characters. If I use a variable string there is a random chance that these characters will appear later in the text

e.g

ABCD24/xx/1234
WXYZ16/xx/1124

I want to identify the first above but if i use "*24*" in my search criteria it will count both

Thanks in advance for feedback and suggestions
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,216,094
Messages
6,128,785
Members
449,468
Latest member
AGreen17

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