All characters left of a number

swaink

Active Member
Joined
Feb 15, 2002
Messages
432
Hi All

I wonder if you can assist me please

I am in the process of cleaning up some date (1.5m records) its a slow process but i'm getting there

However I have become stuck on a query for one field, the field should only contain names but in some instances I am seeing address details too

I have been running update queries to tidy up but I am not stuck as to how I can look foir all the characters to the left of a number

for example Mr Jon Do 43 terrace gardens I only want to see Mr Jon Do

I have tried this Expr1: Left([contact],(InStr(1,[contact],'1')-1)) but I wondered if there is anyway to get the left of any numeric value rather than do this one at a time

Any advice appreciated

All the best

Kevin
 
Hi Joe

Not sure if you would have approached this in the same way but think I got there ir appears to work ok

GetText = Trim(Right(myEntry, myLen - i + 1))

All the best

Kev
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Morning Joe

Thank you bud it got the grey cells working, appreciate your time

Kev
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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