Lookup with if Function

nicci113

New Member
Joined
Sep 29, 2012
Messages
19
Hi There,

It seem easy at first but I can't think of another way and needa bit of direction.

I have series of UK registered vehicle, I need to identify the new and old i.e. Any vehicle registered before 2000 is old everything else is New, Since the format changed at 2000, I can get unique values.. Please help!

QW50QWE - NEW
q234REW- OLd.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Based on your (extremely limited) data the pattern seems to be if the second character is a number then it's old else it's new.
So this should work

=IF(ISNUMBER(MID(A2,2,1)+0),"Old","New")
 
Upvote 0
Thanks Works fine and sorry for less data but the pattern is same. Can you please let me know why you put +0? Is it to check if the number can be added to the value if not its "old"
"
 
Upvote 0
+0 coerces the result into a number as it's actually text. It may look like "2" in your second example but it's actually text so the ISNUMBER() will fail without +0
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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