Tidy split of a column

C

carol

Hi,
I have the FIND, then LEFT and MID working well.
Unfortunatly the column I refer to has a mixture of
single letter references and then what I want to split
CRW,15 or BAW,35.

With the single letter references (X,L,R,E,A) I get the
error #VALUE in the FIND, LEFT and MID columns.

How can I make it that they are blank ??

=IF(F="X"," ",FIND(",",F6)) only gives me the #NAME
error!!!

Any assistance would be greatly appreciated.
Cheers
Carol
 
B

Bob Phillips

=IF(NOT(ISNUMBER(FIND(",",F6))),"",IF(F="X"," ",FIND(",",F6)) )

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
G

Guest

Hi Bob,
Excellent quick reply .thanks.
I tired that and all they single reference files are
blank - but now with the CRW,15 or BA,5 references in the
column - I get the #NAME error
Carol
 
G

Guest

Hi Bob,
Excellent quick reply .thanks.
I tired that and all they single reference files are
blank - but now with the CRW,15 or BA,5 references in the
column - I get the #NAME error
Carol
 
B

Bob Phillips

Carol,

That is because of your

IF(F="X"," ",...

F is what is giving the name error. I got it also, but assumed it was
worikbook name you were using. Presumably it should refer to a cell, F1?
--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top