Extract values from Column

Ananthak275

Board Regular
Joined
Aug 22, 2020
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
  2. MacOS
Need to extract the values between the hyphen in Column "Values". No VBA please. Trying to use the search function built in. Not sure how to how to deal with the spaces.

ValuesCarBuilderNameLocation
Green Car - Ford - Aisha - Toronto - LondonGreen CarFordAishaLondon
Red SUV - Tesla - Cody - Madrid - TorontoRed SUVTeslaCodyToronto
Minivan - Nissan - Tre - Paris - TorontoMinivanNissanTreToronto
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
A power query solution for your Windows platform.

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Delimiter" = Table.SplitColumn(Source, "Values", Splitter.SplitTextByDelimiter(" - ", QuoteStyle.Csv), {"Values.1", "Values.2", "Values.3", "Values.4", "Values.5"}),
    #"Renamed Columns" = Table.RenameColumns(#"Split Column by Delimiter",{{"Values.1", "Car"}, {"Values.2", "Builder"}, {"Values.3", "Name"}, {"Values.4", "Location"}})
in
    #"Renamed Columns"
 
Upvote 0
For example:

Pull down and pull to the right

Excel Formula:
=TRIM(SUBSTITUTE(MID(SUBSTITUTE("-"&$A2,"-",REPT("@",100)),100*COLUMN(A2),100),"@",""))
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,588
Members
449,039
Latest member
Arbind kumar

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