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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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