Getting Certain Text from cell

volsfan210

New Member
Joined
Jul 24, 2024
Messages
13
Office Version
  1. 365
Hi -

Have a group of cells that have text in them but I only wont certain text from the cells.

I only need to pull the "Test 1, Test 2, etc" out of each cell.

The problem is the "Test 1" isnt the same number from the front on each one so a Trim or Mid hasnt worked for me.

Any ideas!

Thanks as always!!
 

Attachments

  • Test.png
    Test.png
    17.1 KB · Views: 5

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Assuming your data is in A1:A8... how about:

Excel Formula:
=LET(vals,A1:A8,TEXTAFTER(vals," ",LEN(vals)-LEN(SUBSTITUTE(vals," ",""))-1))
 
Upvote 0
Hi, just another option you can try:

Book3
AB
1WBS: 000122345.ic Test 1Test 1
2WBS: 000122345.ic Apple Test 2Test 2
3WBS: 000122345.ic AB Test 3Test 3
Sheet1
Cell Formulas
RangeFormula
B1:B3B1=TEXTAFTER(A1," ",-2)
 
Upvote 0
Another option
Excel Formula:
=textafter(a1:a8 " ",-2)
 
Upvote 0
Thanks All -

That makes it work on the basic ones but when I look through all my data and noticing that its not always just Test 1 etc

I want to be able to pull the 1st word after the abbreviation or number!

Thanks,!
 

Attachments

  • Test 2.png
    Test 2.png
    40.8 KB · Views: 3
Upvote 0
Hi, how about also posting the sample data in a way that we can copy it for testing?
I want to be able to pull the 1st word after the abbreviation or number!
That's not clear for me, perhaps you can also include a manually created set of expected results for those examples?
 
Upvote 0
Hi, how about also posting the sample data in a way that we can copy it for testing?

That's not clear for me, perhaps you can also include a manually created set of expected results for those examples?
Hi -

Uploaded image below!!!
 

Attachments

  • Test 3.png
    Test 3.png
    46.1 KB · Views: 5
Upvote 0
Can you post some sample data, not an image.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Can you post some sample data, not an image.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Unfortunately our Admin group has locked down the add in feature so I am not able to do that
 
Upvote 0
Hi, this might work for you.

Book4
AB
1 WBS: 000123456.ME.ABC Test Excel DataTest Excel Data
Sheet1
Cell Formulas
RangeFormula
B1B1=TEXTAFTER(TRIM(A1)," ",2)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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