formula needed

A

ah

Hi;

Can anyone advice me on how to extract the text value only?
The formula that I'm using currently works well if the text value appears
before the space only:

=(LEFT(INDIRECT("Sheet1!A"&ROW()),FIND(" ",INDIRECT("Sheet1!A"&ROW()))-1))

My requirements are to appear all the text value, and skip the numeric and
symbol.
For example:
a) For ABC - 123, it should appears as ABC to me
b) For ABC DEF -098, it should appears as ABC DEF to me.

Thanks for your help in advance.
 
A

ah

Hi ;
Thanks for your prompt response. It's really help after I change the formula
to:

=(LEFT(INDIRECT("Sheet1!E"&ROW()),FIND("-"&"",INDIRECT("Sheet1!E"&ROW()))-2))

But, for those cell that are empty, it will returns a result of an error of:
#VALUE! to me. Is there any way for it to remain empty when the cell that I'm
refering to is empty?

Please advice.

Thanks a lot for your kind assistance.
 
T

Teethless mama

=IF(Sheet1!E1="","",your formula)


ah said:
Hi ;
Thanks for your prompt response. It's really help after I change the formula
to:

=(LEFT(INDIRECT("Sheet1!E"&ROW()),FIND("-"&"",INDIRECT("Sheet1!E"&ROW()))-2))

But, for those cell that are empty, it will returns a result of an error of:
#VALUE! to me. Is there any way for it to remain empty when the cell that I'm
refering to is empty?

Please advice.

Thanks a lot for your kind assistance.
 
T

T. Valko

=IF(INDIRECT("Sheet1!E"&ROW())="","",LEFT(INDIRECT("Sheet1!E"&ROW()),FIND("-",INDIRECT("Sheet1!E"&ROW()))-2))

Biff
 
A

ah

Hi;

I've changed the formula to the following, but the wording of #VALUE! still
appears to me:

=IF("Sheet1!E"&ROW()="
","",(LEFT(INDIRECT("Sheet1!E"&ROW()),FIND("-",INDIRECT("Sheet1!E"&ROW()))-1)))

Can you help me on this? Thanks a lot!
 
D

David Biddulph

You've forgotten an INDIRECT.
Try
=IF(INDIRECT("Sheet1!E"&ROW())="","",(LEFT(INDIRECT("Sheet1!E"&ROW()),FIND("-",INDIRECT("Sheet1!E"&ROW()))-1)))
 

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