Getting Text

mrh15

New Member
Joined
Oct 20, 2003
Messages
30
Does anyone know how I can get SURNAME from f(SURNAME,100,,,)
without using macros allowing changes to the number (ie 100) and the lengthof the text (ie SURNAME)

Please Help!!!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
kind of ambiguous, don't you think?

w/ exactly what you typed...

=mid(a1,3,7)
 
Upvote 0
mrh15 said:
Does anyone know how I can get SURNAME from f(SURNAME,100,,,)
without using macros allowing changes to the number (ie 100) and the lengthof the text (ie SURNAME)

Please Help!!!

Do you mean...

=LEFT(A1,SEARCH(",",A1&",")-1)
 
Upvote 0
here...
Book3.xls
ABCD
6f(SURNAME,100,,,)
7SURNAME
Sheet4


now any length, provided the first ( and , are constant.

hth
 
Upvote 0
it's not, i was only thinking if the "f" length was variable.

other than that it's identical, but a little more lengthly.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,488
Members
448,967
Latest member
visheshkotha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top