#1   Report Post  
EXCEL101
 
Posts: n/a
Default Comparing Cells

I need to perform the following function:

compare column a in sheet1 with column a in sheet2,
if there is a match then I want to pull the values from sheet 1 column b and
c to
the corresponding row in sheet2.

For instance on sheet1, cell a2 is abcd, b2 is 12345 anc c2 is 54321,
on sheet 2 cell a12 is abcd. So I would like to pull b2 and c2 from sheet 1
to sheet 2 in cells b12 and c12.

Any ideas?
  #2   Report Post  
bj
 
Posts: n/a
Default

In sheet2 B2
enter
=if(iserror(vlookup(b2,Sheet1!A:C,2,False),"",vloo kup(b2,Sheet1!A:C,2,False)
and in C2
=if(iserror(vlookup(b2,Sheet1!A:C,3,False),"",vloo kup(b2,Sheet1!A:C,3,False)
and copy down as far as you need to.
"EXCEL101" wrote:

I need to perform the following function:

compare column a in sheet1 with column a in sheet2,
if there is a match then I want to pull the values from sheet 1 column b and
c to
the corresponding row in sheet2.

For instance on sheet1, cell a2 is abcd, b2 is 12345 anc c2 is 54321,
on sheet 2 cell a12 is abcd. So I would like to pull b2 and c2 from sheet 1
to sheet 2 in cells b12 and c12.

Any ideas?

  #3   Report Post  
EXCEL101
 
Posts: n/a
Default

Tried that and am receiving a formula error.

"bj" wrote:

In sheet2 B2
enter
=if(iserror(vlookup(b2,Sheet1!A:C,2,False),"",vloo kup(b2,Sheet1!A:C,2,False)
and in C2
=if(iserror(vlookup(b2,Sheet1!A:C,3,False),"",vloo kup(b2,Sheet1!A:C,3,False)
and copy down as far as you need to.
"EXCEL101" wrote:

I need to perform the following function:

compare column a in sheet1 with column a in sheet2,
if there is a match then I want to pull the values from sheet 1 column b and
c to
the corresponding row in sheet2.

For instance on sheet1, cell a2 is abcd, b2 is 12345 anc c2 is 54321,
on sheet 2 cell a12 is abcd. So I would like to pull b2 and c2 from sheet 1
to sheet 2 in cells b12 and c12.

Any ideas?

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

A small typo (in both formulas):

=if(iserror(vlookup(b2,Sheet1!A:C,2,False)),"",vlo okup(b2,Sheet1!A:C,2,False))



EXCEL101 wrote:

Tried that and am receiving a formula error.

"bj" wrote:

In sheet2 B2
enter
=if(iserror(vlookup(b2,Sheet1!A:C,2,False),"",vloo kup(b2,Sheet1!A:C,2,False)
and in C2
=if(iserror(vlookup(b2,Sheet1!A:C,3,False),"",vloo kup(b2,Sheet1!A:C,3,False)
and copy down as far as you need to.
"EXCEL101" wrote:

I need to perform the following function:

compare column a in sheet1 with column a in sheet2,
if there is a match then I want to pull the values from sheet 1 column b and
c to
the corresponding row in sheet2.

For instance on sheet1, cell a2 is abcd, b2 is 12345 anc c2 is 54321,
on sheet 2 cell a12 is abcd. So I would like to pull b2 and c2 from sheet 1
to sheet 2 in cells b12 and c12.

Any ideas?


--

Dave Peterson
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
Deselect Cells while using ctrl Sloth Excel Discussion (Misc queries) 5 July 14th 05 10:58 PM
Condensing a list/range with blank cells to a new list/range without blanks KR Excel Worksheet Functions 4 July 5th 05 04:23 PM
Fill cells from non-adjacent cells Abes Excel Discussion (Misc queries) 2 March 25th 05 01:15 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 03:52 AM.

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"