Extract...

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,838
Office Version
  1. 2010
Platform
  1. Windows
Hello all... Is there a way to do this please... I need to extract the topics from my data... So in cell B7 after the word "Agenda"... I'd want the text after "1." but before "2." in C7. Then agenda 2. in D7 etc across the row... I'm assuming numbers in Agenda 1 would mess everything up but I have 1000s of these so anything that helps speed things up would be appreciated…

Excel Workbook
BCD
612
7Record Type: Conclusion. Former Reference: WM (44) 51. Attendees: W Churchill; C Attlee; E Bevin; H Morrison; J Anderson; O Lyttelton; Woolton; S Bruce; F Khan Noon; L Amery; J Grigg; S Cripps; R Law; A Cadogan; C Portal; Jammu and Kashmir; Beaverbrook; A Alexander; A Sinclair; B Bracken; Cherwell; A Cunningham; A Brooke. Agenda: 1. His Highness the Maharaja of Kashmir and Sir Firoz Khan Noon; 2. Naval, Military and Air Operations - Air Operations - Home Theatre. 'Crossbow' Targets. Mediterranean - Naval Operations - India. Mediterranean - Military Operations - Russia. Burma. New Guinea; 3. Russia - Loan of British Warships; 4. Foreign Affairs - Greece - Italy - France - Egypt; 5. 'Overlord' Security - Censorship of Diplomatic Communications from this country.His Highness the Maharaja of Kashmir and Sir Firoz Khan NoonNaval, Military and Air Operations - Air Operations - Home Theatre. 'Crossbow' Targets. Mediterranean - Naval Operations - India. Mediterranean - Military Operations - Russia. Burma. New Guinea;
Sheet1
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi,

Formula in C7 copied Across as far as needed, for additional Text Strings in Column B, copy Down and Across as far as needed:


Book1
BCDEFG
7Record Type: Conclusion. Former Reference: WM (44) 51. Attendees: W Churchill; C Attlee; E Bevin; H Morrison; J Anderson; O Lyttelton; Woolton; S Bruce; F Khan Noon; L Amery; J Grigg; S Cripps; R Law; A Cadogan; C Portal; Jammu and Kashmir; Beaverbrook; A Alexander; A Sinclair; B Bracken; Cherwell; A Cunningham; A Brooke. Agenda: 1. His Highness the Maharaja of Kashmir and Sir Firoz Khan Noon; 2. Naval, Military and Air Operations - Air Operations - Home Theatre. 'Crossbow' Targets. Mediterranean - Naval Operations - India. Mediterranean - Military Operations - Russia. Burma. New Guinea; 3. Russia - Loan of British Warships; 4. Foreign Affairs - Greece - Italy - France - Egypt; 5. 'Overlord' Security - Censorship of Diplomatic Communications from this country.His Highness the Maharaja of Kashmir and Sir Firoz Khan Noon;Naval, Military and Air Operations - Air Operations - Home Theatre. 'Crossbow' Targets. Mediterranean - Naval Operations - India. Mediterranean - Military Operations - Russia. Burma. New Guinea;Russia - Loan of British Warships;Foreign Affairs - Greece - Italy - France - Egypt;'Overlord' Security - Censorship of Diplomatic Communications from this country.
Sheet540
Cell Formulas
RangeFormula
C7=TRIM(MID(SUBSTITUTE(SUBSTITUTE(REPLACE($B7,1,SEARCH("Agenda:",$B7)+7,""),COLUMNS($C7:C7)&".",REPT(" ",LEN($B7))),COLUMNS($C7:C7)+1&".",REPT(" ",LEN($B7))),LEN($B7),LEN($B7)))
 
Upvote 0
Thank you very much jtakw, that is working and it's exactly what I'm looking for...!
 
Upvote 0
Could anyone help me with this set up please... This time I'm after the text that follows a number and a period, "1.", "2." etc...

Excel Workbook
BCD
2412
251. Pacific War Council - Meeting on Tuesday 3rd August 1943. 2. Floods in North East India. 3. India - Appointment of Director of Combined Operations. 4. Move of Additional Chinese Troops to India. 5. Priorities for Research and Development. 6. German Long Range Rocket. 7. Manning of Landing Ships and Craft. 8. Operation 'OVERLORD' - Landing Craft. 9. Morale of Italian Troops in North East Italy, the Balkans, Greece and Aegean. 10. LSI's for 'AVALANCHE'. 11. Action in the Event of Italian collapse. 12. Aircraft for SOE Purposes. 13. 'INGOT' NegotiationsPacific War Council - Meeting on Tuesday 3rd August 1943.Floods in North East India.
Sheet1
 
Upvote 0
C25 formula copied across as far as needed:


Book1
BCDEFGHIJKLMNO
251. Pacific War Council - Meeting on Tuesday 3rd August 1943. 2. Floods in North East India. 3. India - Appointment of Director of Combined Operations. 4. Move of Additional Chinese Troops to India. 5. Priorities for Research and Development. 6. German Long Range Rocket. 7. Manning of Landing Ships and Craft. 8. Operation 'OVERLORD' - Landing Craft. 9. Morale of Italian Troops in North East Italy, the Balkans, Greece and Aegean. 10. LSI's for 'AVALANCHE'. 11. Action in the Event of Italian collapse. 12. Aircraft for SOE Purposes. 13. 'INGOT' Negotiations Pacific War Council - Meeting on Tuesday 3rd Pacific War Council - Meeting on Tuesday 3rd August 1943.Floods in North East India.India - Appointment of Director of Combined Operations.Move of Additional Chinese Troops to India.Priorities for Research and Development.German Long Range Rocket.Manning of Landing Ships and Craft.Operation 'OVERLORD' - Landing Craft.Morale of Italian Troops in North East Italy, the Balkans, Greece and Aegean.LSI's for 'AVALANCHE'.Action in the Event of Italian collapse.Aircraft for SOE Purposes.'INGOT' Negotiations Pacific War Council - Meeting on Tuesday 3rd
Sheet540
Cell Formulas
RangeFormula
C25=TRIM(MID(SUBSTITUTE(SUBSTITUTE(" "&$B25," "&COLUMNS($C25:C25)&".",REPT(" ",LEN($B25)))," "&COLUMNS($C25:C25)+1&".",REPT(" ",LEN($B25))),LEN($B25),LEN($B25)))
 
Upvote 0
Tag me to that post, I'll get on it in the morning, it's rather late where I am.
 
Upvote 0
Thanks... not sure how I tag you to it but the link is up there in reply #7 ... No rush whatsoever, I have thousands of pieces of data to look at using the two methods you have already shown me...!
 
Upvote 0
I've ran in to difficulties with the solution in post # 6 because of extra "." in the data... Is there a way of using " 1. " (space one period space), " 2. " etc please?
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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