Looking for Formula to Extract Specific Text from a Cell

hammerhead13

Board Regular
Joined
Aug 4, 2008
Messages
86
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. Mobile
I am looking to extract the SN: from the Cell Regardless of the other Info in the Cell. Is this Possible?

[TABLE="width: 500"]
<tbody>[TR]
[TD]Serial Number[/TD]
[TD]<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>Summary Description[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TSupport] Incident J3MH200000 routed to TEC SN: 8CG7242PFT Location: NYC[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][EXTERNAL] [TSupport] Incident J3IG115A84 routed to TEC SN: 8XG6203B3Q Location: NJ[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thank you in Advance!<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hello,

With your data in cell B2 ...

Code:
=MID(B2,FIND("SN",B2)+4,FIND("Location",B2)-FIND("SN",B2)-5)

Hope this will help
 
Upvote 0
That works perfect. Thank you!

May I ask how I may be able to use it in a VLookup.

I have a Sheet and the Table is 'Connect Data Dump'!$A$2:$X$599. So basically I want it to be able to extract that serial from the cell in that dump essentially.
 
Upvote 0
You are welcome ...

If I understand correctly you need beforehand to use VLookup in order to retrieve the field ...

My recommendation would be to start by creating your VLookup formula ...

Once it performs as you need it to ... just replace B2 by your new Vlookup formula ...

Hope this will help
 
Upvote 0
I think I may be over-complicating this.

I previously was using this to find my information. The problem is that info changed and the length now varies so it would not pull the correct SN:

Currently using:
=
IF(ISBLANK(A6)," ",MID(VLOOKUP(A6,'Connect Data Dump'!$B$2:$Y$599,8,FALSE),50,10))

Basically I am trying for something like this but I do not have the correct Syntax

=IF(ISBLANK(A4)," ",MID(VLOOKUP(A4,FIND("SN",H2)+4,FIND("Location",H2)-FIND("SN",B2)-5),'Connect Data Dump'!$A$2:$X$599,8,FALSE))
 
Last edited:
Upvote 0
May be ...

=IF(ISBLANK(A4)," ",MID(VLOOKUP(A4,FIND("SN",H2)+4,FIND("Location",H2)-FIND("SN",H2)-5),'Connect Data Dump'!$A$2:$X$599,8,FALSE))
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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