Checking that a cell has an address in it

mateinone

New Member
Joined
Feb 1, 2012
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hi
So I have been trying to work out a problem
I have cells that have address in them and we have another tool for geocoding, so we need these addresses to be in a standard format
So I want to basically conditional format to turn the cell red or something if the cell data is not entered correctly.

street number, street name, street type

for example

16 Anywhere Road

If is it
1/16 Anywhere Road, that needs to fail

There is another field for units/shop numbers etc.

So I figured one 'easy' way would be to check the first field is a digit, and check the last field is a type of a road.
The issue is ensuring the middle word(s) have letters in them.
I can't think of a street with only numbers in it, but there are streets with numbers and letters, for example 23rd street.

Anyway if anyone has a suggestion that can help here it would be much appreciated. I hope what i am looking for is clear

Thanks in advance
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi Mateinone,

How about you check for special characters? So if an address has %, #, * etc, it turns red? You're right, the street names could include numbers.

Alice
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,559
Members
449,089
Latest member
Motoracer88

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