Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Vytautas
 
Posts: n/a
Default Need to find and replace

I have two Sheets. I have a list of numbers in FIRST sheet and another list
in the SECOND sheet. But in the second sheet there is another column with
another information.
What i want to do is that Excel could find the value of the first sheet in
the second sheet and could write that data next to the list of values in the
first sheet.

Here how it shoud look:

Sheet1
Column A | Column B
25
35
40
50

Sheet2
Column A | Column B
30 | 1.5
31 | 2.1
40 | 3.1
25 | 4

I WANT:

Sheet1
Column A | Column B
25 | 4
35 | NO DATA
40 | 3.1
50 | NO DATA
  #2   Report Post  
Barb Reinhardt
 
Posts: n/a
Default

The VLOOKUP function will do much of what you want.

"Vytautas" wrote in message
...
I have two Sheets. I have a list of numbers in FIRST sheet and another list
in the SECOND sheet. But in the second sheet there is another column with
another information.
What i want to do is that Excel could find the value of the first sheet in
the second sheet and could write that data next to the list of values in
the
first sheet.

Here how it shoud look:

Sheet1
Column A | Column B
25
35
40
50

Sheet2
Column A | Column B
30 | 1.5
31 | 2.1
40 | 3.1
25 | 4

I WANT:

Sheet1
Column A | Column B
25 | 4
35 | NO DATA
40 | 3.1
50 | NO DATA



  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

Try this in B1 of Sheet1:

=IF(ISNA(MATCH(A1,Sheet2!$A$1:$A$4,0)),"No
Data",VLOOKUP(A1,Sheet2!$A$1:$B$4,2,0))

And copy down to B4.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Vytautas" wrote in message
...
I have two Sheets. I have a list of numbers in FIRST sheet and another

list
in the SECOND sheet. But in the second sheet there is another column with
another information.
What i want to do is that Excel could find the value of the first sheet in
the second sheet and could write that data next to the list of values in

the
first sheet.

Here how it shoud look:

Sheet1
Column A | Column B
25
35
40
50

Sheet2
Column A | Column B
30 | 1.5
31 | 2.1
40 | 3.1
25 | 4

I WANT:

Sheet1
Column A | Column B
25 | 4
35 | NO DATA
40 | 3.1
50 | NO DATA


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
Find & Replace in VB macro JackC Excel Discussion (Misc queries) 1 August 24th 05 09:22 PM
Problem with Find and Replace mjhill01 Excel Worksheet Functions 1 August 18th 05 04:12 AM
Find and replace of word causes change of font formatting jwa90010 New Users to Excel 4 July 22nd 05 08:10 PM
Find and Replace - Quickest Option? Lindsey M Excel Worksheet Functions 1 March 8th 05 11:34 AM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM


All times are GMT +1. The time now is 06:02 AM.

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"