Cell contains specific text, return the next 3 characters

Byzie

New Member
Joined
Jul 3, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am trying to find a way where I can return a value within a cell based on specific text.

My cell contain the below data.

Dear Victorian Power Networks - Rural, SPEAR: S178918T Responsible Authority: Greater Customer City Council Application Type: Certification Property Address(es): WARATAH GULLY, SMASHTOWN VIC 3551 Plan Number: PS123456U Estate Name: XXXXX Estate Stage G2 Council Reference(s): DS/128/2020, SC/145/2020/7 Applicant Reference: 1702011 - G2 Number of lots: 23 Action Required: Referral response required This application has been referred to you under Section 8 of the Subdivision Act of 1988. Please select the link below to access this application and provide a response. Message sent by the SPEAR system.

What I want to do is, if the cell contains "Number of lots:, then I want the number that come after it.. In this case, 23.

Any thoughts on how I can do this?
The naming format is consistent in this case also, if that helps, but the number can range from 1-2000.

Thanks in advance.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try this:

=LOOKUP(9999,--MID(SUBSTITUTE(A1," ","|"),SEARCH("Number of lots:",A1)+16,{1,2,3,4}))
 
Last edited:
Upvote 0
Solution
Thanks Phuoc, works for some, however in most others, its 0.83333 or similar when the actual number is say, 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