Extract part of text String form a cell

nomanalik

New Member
Joined
Feb 26, 2018
Messages
9
Dear all,
I have a column in which i have a data in the following format:

Name%datetime

e.g:

John%2018/03/08 19:50
Davis%2018/03/08 19:58
Dawson%2018/03/08 20:05

Now i want to extract just names from these above strings and want to delete the %datetime. Please let me know how i can do this in a simple way. Is there any formula to do this ? Please help me...

Thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try:
=LEFT(A1,FIND("%",A1)-1)
 
Upvote 0
Hi,

Another way:


Excel 2010
ABC
1John%2018/03/08 19:50John
2Davis%2018/03/08 19:58Davis
3Dawson%2018/03/08 20:05Dawson
Sheet2
Cell Formulas
RangeFormula
C1=REPLACE(A1,FIND("%",A1),255,"")
 
Upvote 0
.. and want to delete the %datetime.
If you don't actually want that %... data you could just delete it from the original column as follows
a) Select the column by clicking its heading label.
b) Edit/Replace (or Ctrl+H)|Find what: %* | Replace with: Leave blank|Check in Options that 'Match entire cell contents' is NOT checked|Replace All
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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