Extracting portion of a text from a cell

smalik

Board Regular
Joined
Oct 26, 2006
Messages
180
Office Version
  1. 365
Platform
  1. Windows
Is there an easy way to extract a portion of a text from a cell without going through VBA?

Here is a sample text in a cell:
About this role:
In this role, you will:
Text (size varies)
Required Qualifications, US:
1 year of Business Operations or Leadership experience, or equivalent demonstrated through one or a combination of the following: work experience, training, military experience, education, etc. ....
Required Qualifications, International:
Text (size varies)

I have over 5,000 of these job descriptions. All I need is the text between "Required Qualifications, US" and "Required Qualifications, International". The text between the two titles could be of any size.

Any help is greatly appreciated.

Thanks in advance.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
How about
Excel Formula:
=REPLACE(LEFT(A2,SEARCH("Required Qualifications, International:",A2)-2),1,SEARCH("Required Qualifications, Us",A2)+28,"")
 
Upvote 0
Solution
Hi,

Would this work for you:

Book3.xlsx
AB
1About this role: In this role, you will: Text (size varies) Required Qualifications, US: 1 year of Business Operations or Leadership experience, or equivalent demonstrated through one or a combination of the following: work experience, training, military experience, education, etc. .... Required Qualifications, International: Text (size varies)1 year of Business Operations or Leadership experience, or equivalent demonstrated through one or a combination of the following: work experience, training, military experience, education, etc. ....
Sheet1055
Cell Formulas
RangeFormula
B1B1=TRIM(SUBSTITUTE(SUBSTITUTE(MID(SUBSTITUTE(A1,"Required Qualifications,",REPT(" ",LEN(A1))),LEN(A1),LEN(A1)),"US:",""),CHAR(10),""))
 
Upvote 0
How about
Excel Formula:
=REPLACE(LEFT(A2,SEARCH("Required Qualifications, International:",A2)-2),1,SEARCH("Required Qualifications, Us",A2)+28,"")
Thank you... What is the significance of "+28" at the end of the formula
 
Upvote 0
Here is another formula for you to consider...
Excel Formula:
=MID(LEFT(A1,FIND("Required Qualifications, International:",A1)-2),FIND("Required Qualifications, US:",A1)+28,LEN(A1))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,407
Messages
6,119,332
Members
448,888
Latest member
Arle8907

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