Find date in the first paragraph of a cell having multiple paragraph

debraj_patra1

New Member
Joined
Apr 15, 2013
Messages
12
Hi in an excel sheet colomn have cell having multiple paragraph with Dates in it after a particular text " On"

i want to built a formula which will look for the specific text " On" and extract the date after it only for the first paragraph in the cell.

comments
"MAC Book Pro - 2,450/- Per Month. MacBook Pro 13-inch Retina dual-core i5 2.7GHz/8GB/256GB/Iris Graphics
This MacBook Pro 13-inch allocated to Abbas Zaidi (IN8807) as per the list provided by agency on 19-Sep-2017.

MAC Book Pro - 2,450/- Per Month. MacBook Pro 13-inch Retina dual-core i5 2.7GHz/8GB/256GB/Iris Graphics
This MacBook Pro 13-inch allocated to Sweta Chand (IN8807) as per the list provided by agency on 12-May-2017.

MAC Book Pro - 2,450/- Per Month. MacBook Pro 13-inch Retina dual-core i5 2.7GHz/8GB/256GB/Iris Graphics
This MacBook Pro 13-inch allocated to Manu Mehta (IN8807) as per the list provided by agency on 12-Apr-2017.

MAC Book Pro - 2,450/- Per Month. MacBook Pro 13-inch Retina dual-core i5 2.7GHz/8GB/256GB/Iris Graphics
This MacBook Pro 13-inch allocated to Rohit Singh (IN5849) as per the list provided by agency on 13-Oct-2016.

MAC Book Pro - 2,450/- Per Month. MacBook Pro 13-inch Retina dual-core i5 2.7GHz/8GB/256GB/Iris Graphics
This MacBook Pro 13-inch allocated to Amrit Arya (IN5849) as per the list provided by agency on 28th Aug 2015."

Regards
Debraj
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Assuming the first paragraph always has a date in it and that the word "on" only exists once in that first paragraph (in front of the date you want), then give this formula a try...

=LOOKUP(9.9E+307,--LEFT(MID(A1,SEARCH(" on ",A1)+4,99),ROW($1:$99)))

Note: This formula returns the serial date number so you will have to use Cell Formatting to make it look like you want.
 
Upvote 0
Thanks for your reply,

now i am facing an issue in the cell having below contents, here data is not fetching

"MAC Book Pro - 2,450/- Per Month. MacBook Pro 13-inch Retina dual-core i5 2.7GHz/8GB/256GB/Iris Graphics


This MacBook Pro 13-inch allocated to Suhel Sayyed (IN8652) as per the list provided by agency on 31st Aug 2015."

Thanks in advance.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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