Merge 3 Formulas in 1 (Mid+len)

vishan

New Member
Joined
Mar 11, 2011
Messages
14
Hi Excel Gurus,

i have some text in Column BC1:1000, from which i want to separate that text by some conditions.

Here is sample of data: UnDelivered vide DRS #:DS/LDH/1314/000944 - 14 Aug 13 Reason : - CID - CONSIGNEE REQUESTED DELIVERY ON ANOTHER DATE and Available for DRS @ LDH

i want to separate it from ": -" to "and Available" like = "CONSIGNEE REQUESTED DELIVERY ON ANOTHER DATE"

i have 3 formulas for separating as follows mentioned but i cant make that in one.

1.BE2
= MID(BC2,FIND("CID -",BC2)+6,LEN(BC2))
2.BF2 = MID(BE2,FIND(" and Av",BE2),LEN(BE2))
3.BG2 = LEFT(BF2,LEN(BF2)-LEN(BF2))

pls help in merge this or suggest new formula.

thanks a lot in adv.

Regards
Vishan
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try

=TRIM(MID(SUBSTITUTE(A1,"and Available",REPT(" ",LEN(A1))),FIND("CID -",A1)+6,LEN(A1)))
 
Upvote 0
Maybe this:

Code:
BE2-> =MID(A1,SEARCH("CID -",BC2)+6,SEARCH("and Available",BC2)-SEARCH("CID -",BC2)-7)

Markmzz
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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