Convert data from one column to another

RodneyC

Board Regular
Joined
Nov 4, 2021
Messages
207
Office Version
  1. 2016
Platform
  1. Windows
My sheet has 10,000 rows, a lot to work with. For every cell in column D that says DALLAS FT. WORTH I need to populate the the same cell in column K with DALLAS. There are about 70 different cities in column D. I do have a column with all the "convert from" cities with the heading FROM and another column with the "convert to" cities with the heading TO, they just aren't currently reading from/to each other and aren't populating column K.

Thanks in advance.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

bstory84

Active Member
Joined
Oct 31, 2011
Messages
474
Office Version
  1. 365
Platform
  1. Windows
Can you post a sample or screen shot? I'm assuming this is a simple VLOOKUP against your From & To city references.
 

RodneyC

Board Regular
Joined
Nov 4, 2021
Messages
207
Office Version
  1. 2016
Platform
  1. Windows
Can you post a sample or screen shot? I'm assuming this is a simple VLOOKUP against your From & To city references.
1638220936332.png
This is simply my starting point. There are over 200 different cities in the 10,000 rows of FROM and about 70 cities in the TO column.
 

bstory84

Active Member
Joined
Oct 31, 2011
Messages
474
Office Version
  1. 365
Platform
  1. Windows
Unfortunately this does not provide Cell addresses or Worksheet names.
Just using your example image and assuming the "FROM" is cell A1 and the "TO" is C1 on worksheet "Sheet2".

In column "K" of your Source data (containing your 10K rows).
Excel Formula:
=VLOOKUP(D1,Sheet2!A1:C11,3,0)
Breakdown of the variables in the formula (function).
D1 - Cell reference should be where your city value "Dallas FT. Worth"
Sheet2!$A$1:$C$11 = Your Conversion table
3 - Column to return , in this case Column "C" ("TO")
0 - False "Exact match"

I hope this helps.
 

RodneyC

Board Regular
Joined
Nov 4, 2021
Messages
207
Office Version
  1. 2016
Platform
  1. Windows
Unfortunately this does not provide Cell addresses or Worksheet names.
Just using your example image and assuming the "FROM" is cell A1 and the "TO" is C1 on worksheet "Sheet2".

In column "K" of your Source data (containing your 10K rows).
Excel Formula:
=VLOOKUP(D1,Sheet2!A1:C11,3,0)
Breakdown of the variables in the formula (function).
D1 - Cell reference should be where your city value "Dallas FT. Worth"
Sheet2!$A$1:$C$11 = Your Conversion table
3 - Column to return , in this case Column "C" ("TO")
0 - False "Exact match"

I hope this helps.
Thanks. About to head out. Will work with it shortly
 

Forum statistics

Threads
1,175,504
Messages
5,897,817
Members
434,678
Latest member
Gautam cv

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
Top