Pulling certain characters from strings of data regardless of the amount of characters

joes2580

New Member
Joined
Feb 18, 2015
Messages
36
Hi,

For example, I have a string of data that I need to extract info from but I can't use text to columns. So example, I have "Manual check No: 00000 Check date 1/1/2001" so in A1 for example (say the info I am extracting from is in C1) I want just the "00000" and in cell B1 I want just the "1/1/2001". I did try the MID function but it doesn't work all the way down the sheet because at certain points the Manual check No changed to the string " Check No:". Appreciate any assistance.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Formula in B1: =IFERROR(TRIM(REPLACE(REPLACE(A1,FIND("Check date",A1),255,""),1,FIND(":",A1),"")),"")
Formula in C1: =IFERROR(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255))+0,"")
Format C1 as date

Copy down.

Excel 2010
ABC
1Manual check No: 00000 Check date 1/1/2001000001/1/2001
2Check No: 32 Check date 1/1/2001321/1/2001
3Check No: 327967 Check date 12/11/201732796712/11/2017
Sheet1
Cell Formulas
RangeFormula
B1=IFERROR(TRIM(REPLACE(REPLACE(A1,FIND("Check date",A1),255,""),1,FIND(":",A1),"")),"")
C1=IFERROR(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255))+0,"")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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