As an avid photographer of cars, I have decided to log down every interesting vehicle I've seen in this Excel table, so that when I get around to identifying them, I don't need to keep looking up their registration plate on the internet for further information, especially if I've seen them before. One of these aspects involves a regional identifier, which tells you where the car was registered.
When I do a single IF statement, the area identifier works as intended.
plate1.png
As you can see, C2 is correctly identified as "Staffordshire" and C3 is correctly identified as "Leeds". The only problem is, there are over 400 of these, and Excel only allows up to 255 maximum nested statements. So I need a way to compress this into far fewer statements.
plate2.png
The second picture is ideally how I want both of these conditions to function, so that once I type in a car's regional identifier, it automatically gives me the correct area (depending on the plate's age) without me having to manually look it up. The only problem is, it considers this invalid. "BF" in this case should return "Birmingham", although for whatever reason it isn't. What I want to know is:
- Is it even possible to nest multiple IF(OR statements together?
- If so, where have I gone wrong?
Bookmarks