Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lee
 
Posts: n/a
Default Replacing values based on a set list

Hi Could anyone help me with this one: -

I have an Excel workbook with two worksheets: sheet1 and sheet2.

On sheet1, I have 2 columns of data:-
Column 1 - CityID
Column2 - CityName

On sheet2, I have a list of 500 office locations, some of which are in the
same city. Sheet2 has several columns, one of which is the city location of
the office.

I am trying to prepare the Excel sheet ready to import into Access and want
to replace each instance of the city location listed on sheet2 with the
CityID number from sheet1 where the city is matched. For example: -

Sheet 1
CityID CityName
1 Aberdeen

Sheet2
In the city column, replace all instances of Aberdeen with a 1

Can anyone point me in the right direction of how to go about this?

Thanks for all and any help!

Kindest Regards

Lee
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Sounds like you need to use VLOOKUP, then paste the
CityID over the CityName. To learn how to use it, see:

http://www.contextures.com/xlFunctions02.html

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi Could anyone help me with this one: -

I have an Excel workbook with two worksheets: sheet1 and

sheet2.

On sheet1, I have 2 columns of data:-
Column 1 - CityID
Column2 - CityName

On sheet2, I have a list of 500 office locations, some

of which are in the
same city. Sheet2 has several columns, one of which is

the city location of
the office.

I am trying to prepare the Excel sheet ready to import

into Access and want
to replace each instance of the city location listed on

sheet2 with the
CityID number from sheet1 where the city is matched. For

example: -

Sheet 1
CityID CityName
1 Aberdeen

Sheet2
In the city column, replace all instances of Aberdeen

with a 1

Can anyone point me in the right direction of how to go

about this?

Thanks for all and any help!

Kindest Regards

Lee
.

  #3   Report Post  
Lee
 
Posts: n/a
Default

Jason,

You are a re star! This worked like a dream!!

Thanks for your help, you saved me hours!!

Regards

Lee

"Jason Morin" wrote:

Sounds like you need to use VLOOKUP, then paste the
CityID over the CityName. To learn how to use it, see:

http://www.contextures.com/xlFunctions02.html

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi Could anyone help me with this one: -

I have an Excel workbook with two worksheets: sheet1 and

sheet2.

On sheet1, I have 2 columns of data:-
Column 1 - CityID
Column2 - CityName

On sheet2, I have a list of 500 office locations, some

of which are in the
same city. Sheet2 has several columns, one of which is

the city location of
the office.

I am trying to prepare the Excel sheet ready to import

into Access and want
to replace each instance of the city location listed on

sheet2 with the
CityID number from sheet1 where the city is matched. For

example: -

Sheet 1
CityID CityName
1 Aberdeen

Sheet2
In the city column, replace all instances of Aberdeen

with a 1

Can anyone point me in the right direction of how to go

about this?

Thanks for all and any help!

Kindest Regards

Lee
.


  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

I only pointed you to one of the better Excel websites
out there. Thank Debra Dalgleish.
Jason

-----Original Message-----
Jason,

You are a re star! This worked like a dream!!

Thanks for your help, you saved me hours!!

Regards

Lee

"Jason Morin" wrote:

Sounds like you need to use VLOOKUP, then paste the
CityID over the CityName. To learn how to use it, see:

http://www.contextures.com/xlFunctions02.html

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi Could anyone help me with this one: -

I have an Excel workbook with two worksheets: sheet1

and
sheet2.

On sheet1, I have 2 columns of data:-
Column 1 - CityID
Column2 - CityName

On sheet2, I have a list of 500 office locations,

some
of which are in the
same city. Sheet2 has several columns, one of which

is
the city location of
the office.

I am trying to prepare the Excel sheet ready to

import
into Access and want
to replace each instance of the city location listed

on
sheet2 with the
CityID number from sheet1 where the city is matched.

For
example: -

Sheet 1
CityID CityName
1 Aberdeen

Sheet2
In the city column, replace all instances of Aberdeen

with a 1

Can anyone point me in the right direction of how to

go
about this?

Thanks for all and any help!

Kindest Regards

Lee
.


.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Values on one list and not another B Schwarz Excel Discussion (Misc queries) 4 January 7th 05 01:48 PM
project values based on other values Gabriele Excel Discussion (Misc queries) 1 January 7th 05 09:27 AM
Selecting data from a list based on entered values GrantM Excel Discussion (Misc queries) 1 December 20th 04 10:59 AM
limit cell list selection based on the selection of another list lorraine Excel Worksheet Functions 2 December 14th 04 08:17 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


All times are GMT +1. The time now is 12:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"