string formula (1 Viewer)

Geordie2008

Registered User.
Local time
Today, 14:34
Joined
Mar 25, 2008
Messages
177
Hello's

I have a huge strings of text in a column. When the word "exclude" is found in the text I want to print all of the text to the right of it into a new column.... can anyone help me with the formula please?

Tnx,
M
 

KenHigg

Registered User
Local time
Today, 09:34
Joined
Jun 9, 2004
Messages
13,327
Will you only encounter the 'exclude' word once or could it be in the text muliple times?
 

Geordie2008

Registered User.
Local time
Today, 14:34
Joined
Mar 25, 2008
Messages
177
yep - only once

Tnx,
M
 

Rabbie

Super Moderator
Local time
Today, 14:34
Joined
Jul 10, 2007
Messages
5,906
Look up the INSTR and SPLIT functions in Access Help. You may need to look at the RIGHT function as well
 

KenHigg

Registered User
Local time
Today, 09:34
Joined
Jun 9, 2004
Messages
13,327
Yeah, What Rab said :p

Basically use instr to get the location of the word then embed that in the 'right' funtion to tell it where to start grabbing text - :)
 

raskew

AWF VIP
Local time
Today, 08:34
Joined
Jun 2, 2001
Messages
2,734
x = "The intent of this is to exclude all non-readers and non-spellers."
y = trim(mid(x, instr(x, "exclude")+ len("exclude")))
? y
all non-readers and non-spellers.

HTH - Bob
 

Users who are viewing this thread

Top Bottom