Extracting embeded data from a cell

DeaninGA

Board Regular
Joined
May 20, 2013
Messages
146
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi Everyone,

This one is kicking my tail I need to extract all of the data between the 3rd and 5th commas in a cell.. they arent in the same position every time but they are always between the 3rd and 5th commas. See the highlighted data below

Thanks in advance

VW,CV8SH900,W,20,60,S,ILE3,NJ,NC,NT
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
with Power Query
Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    TBD = Table.TransformColumns(Source, {{"Raw", each Text.BetweenDelimiters(_, ",", ",", 2, 1), type text}})
in
    TBD
RawRaw
VW,CV8SH900,W,20,60,S,ILE3,NJ,NC,NT20,60
 
Upvote 0
=MID(A1,SEARCH("[",SUBSTITUTE(SUBSTITUTE(A1,",","[",3),",","]",5))+1,SEARCH("]",SUBSTITUTE(SUBSTITUTE(A1,",","[",3),",","]",5))-SEARCH("[",SUBSTITUTE(SUBSTITUTE(A1,",","[",3),",","]",5))-3)
 
Upvote 0
THank you both. CA_Punit that worked and im not up on power query
 
Upvote 0
How about
=TRIM(MID(SUBSTITUTE(SUBSTITUTE(A2,",",REPT(" ",100),5),",",REPT(" ",100),3),100,100))
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,674
Members
448,977
Latest member
moonlight6

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