Right, Len & Substitute Functions

  • Thread starter Dominique Feteau
  • Start date
D

Dominique Feteau

I have a sheet with a column that has address values, but the suite,
building or room number is before the actual address (e.g. Suite 1, 123 W.
Main St.)

i'm using this formula to get "123 W. Main St.":
=RIGHT(B2,LEN(B2)-FIND(", ",SUBSTITUTE(B2,"
",",",LEN(B2)-LEN(SUBSTITUTE(B2," ","")))))

the problem with it is that in the new cell, there is an extra space in the
beginning.

When I try to get the "Suite 1" using: =LEFT(C14,FIND(",",C14,1)), I get the
comma at the end.

Can anyone help me out?
 

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