steve tatum
New Member
I am trying to copy partial data from two different cells and combining the data into one cell. For example if the data in A1 is "123 stop" and the data in A2 is "456 stop" then A3 is "123 456".
For example if the data in A1 is "123 stop" and the data in A2 is "456 stop" then A3 is "123 456".
At very beginner level using SEARCH (for space position)
and LEFT Excel functions …
Thanks. But what if A1 is "123 stop" and A2 is "45678 dontstop". I want A3 to be "12345678". A1 and A2 could be various values. I would like code that generically looks for a space from the left and copies the data from the left of the space.To get a targeted answer sample is must..
Try this...
=TRIM(SUBSTITUTE(A1&A2,"stop",""))
Thanks. But what if A1 is "123 stop" and A2 is "45678 dontstop". I want A3 to be "12345678". A1 and A2 could be various values. I would like code that generically looks for a space from the left and copies the data from the left of the space.