Text within Cell

mkanchwala

New Member
Joined
Oct 22, 2014
Messages
4
Hi All,

I have a set of lines similar to the one below, and I am only trying to get the text between "of" and "Jan" or any other month. The text length is different. What is an appropriate formula to get this? All help is greatly appreciated.[TABLE="width: 154"]
<tbody>[TR]
[TD="width: 154"]
Sum of Salaries Jan[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi Giordano,

There may be multiple words but it will always fall within "of" and the last 3 characters "Month", yes the month will always be the last word. Thank you
 
Upvote 0
There may be multiple words but it will always fall within "of" and the last 3 characters "Month", yes the month will always be the last word.

Hi, welcome to the posting side of the forum!

Here is one option you can try:


Excel 2013/2016
AB
1Sum of Salaries JanSalaries
2Office count of supplies Marsupplies
3Count Of Christmas Trees DecChristmas Trees
4average of the month end balance of the credit card bill Junthe month end balance of the credit card bill
Sheet1
Cell Formulas
RangeFormula
B1=MID(LEFT(A1,LEN(A1)-3),SEARCH(" of ",A1)+4,255)
 
Upvote 0
Based on the sample data in FormR's post, I'd suggest a slight change to eliminate the blank space being returned at the end of each of those results

=MID(LEFT(A1,LEN(A1)-4),SEARCH(" of ",A1)+4,255)

Another similar option:
=REPLACE(LEFT(A1,LEN(A1)-4),1,SEARCH(" of ",A1)+3,"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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