Convert data from one column to another

RodneyC

Active Member
Joined
Nov 4, 2021
Messages
278
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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Can you post a sample or screen shot? I'm assuming this is a simple VLOOKUP against your From & To city references.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,569
Latest member
Honeymonster123

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