Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Fill in columns by matching a value on another sheet

I have a large spreadsheet with information that I need to copy over to a
newsheet. I need to pull location information out of a specific cell on the
first sheet and put it in a cell in a column on the second sheet in the row
that corresponds to the matching account number.

for example on sheet1 I have:

Column A Coulumn B
12345 New York

and on sheet2 I have:

Column A Column Z
12345

and in column Z I want to have Excel copy 'New York' from the first sheet.

This is what i have tried without luck:
=IF(COUNTIF(Sheet1!$B$2:$B$404,Sheet2!B6)0,Offset (MATCH(B6,Sheet1!$B$2:$B$404),0,11),"")

any help is greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Fill in columns by matching a value on another sheet

=VLOOKUP(A1,Sheet1!A1:B100,2,FALSE)

of course the 100 can be changed to match your needs.

--
Gary''s Student - gsnu200800
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Fill in columns by matching a value on another sheet

Have you tried vlookup?

"Xhawk57" wrote:

I have a large spreadsheet with information that I need to copy over to a
newsheet. I need to pull location information out of a specific cell on the
first sheet and put it in a cell in a column on the second sheet in the row
that corresponds to the matching account number.

for example on sheet1 I have:

Column A Coulumn B
12345 New York

and on sheet2 I have:

Column A Column Z
12345

and in column Z I want to have Excel copy 'New York' from the first sheet.

This is what i have tried without luck:
=IF(COUNTIF(Sheet1!$B$2:$B$404,Sheet2!B6)0,Offset (MATCH(B6,Sheet1!$B$2:$B$404),0,11),"")

any help is greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Fill in columns by matching a value on another sheet

Worked like a charm! Thnaks for the reminder that everything doesn't have to
be as complicated as I make it.

"Gary''s Student" wrote:

=VLOOKUP(A1,Sheet1!A1:B100,2,FALSE)

of course the 100 can be changed to match your needs.

--
Gary''s Student - gsnu200800

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
Matching Columns Leo Setting up and Configuration of Excel 2 April 3rd 08 05:44 PM
Matching 2 columns JJ44 Excel Worksheet Functions 3 July 19th 07 05:24 PM
matching on columns nick Excel Discussion (Misc queries) 0 October 24th 06 05:02 PM
MATCHING COLUMNS JOE Excel Discussion (Misc queries) 0 May 3rd 06 05:51 PM
List matching data from sheet 1 in sheet 2 Thrain Excel Worksheet Functions 4 December 2nd 05 07:11 PM


All times are GMT +1. The time now is 05:34 PM.

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

About Us

"It's about Microsoft Excel"