is_utf8:0,
 
Search : in
By :

Check the value and return the result

Last answer on Sep 15, 2009 2:15:26 am BST saran, on Sep 14, 2009 9:33:42 am BST 
 Report this message to moderators

Hello,
Please help me out.

I have followig values in "Sheet1",
Eg:
A
1 Apple
2 Orange
3 Lemon

In "Sheet2",Payments are made for those values present in "Sheet1" and for others.
Eg:
A B
1 Apple $20
2 Tiger $50
3 Lemon $14
4 Apple $36
5 Giraf $54

If value present in "Sheet1" matches in "Sheet2", then the entire row should be retrieved and displayed in "Sheet3". Others should be ignored.

Eg:
A B
1 Apple $20
2 Lemon $14
3 Apple $36

Thanks !

Configuration: Windows XP Internet Explorer 7.0

Best answers for « Check the value and return the result » in :
X86 assembly occurrence of a character Showx86 assembly occurrence of a character Introduction Issue Solution Explanation Introduction The small assembly exercise below is for (Intel and AMD 32-bit) x86 architectures and uses the NASM syntax , an assembler, available...
[VBA] A function that returns the color of an active MFC Show[VBA] A function that returns the color of an active MFC This function returns the value of the active format in conditional formatting. With the function below, two values can be returned. Mode = 0: the value of Interior.ColorIndex...
Excel - Comparing columns and returning value ShowExcel - Comparing columns and returning value Issue Solution Note Issue I have an Excel spreadsheet where I want to compare values between two columns and return the value from another column. EX: Column: A B C D ...
Download Source Code Spell Checker ShowSource Code Spell Checker is a program that offers to check your lines of code, highlight the errors and to report errors detected. You save valuable time by limiting the reading tedious programming codes. Advantage Via the context menu, you can...
Environment variables ShowEnvironment variables An environment variable is a dynamic value loaded into the memory that can be used by several processes operating simultaneously. On most operating systems, the location of some libraries or of the main system executables may...
Ping ShowThe Ping tool "Ping" (short for Packet INternet Groper) is without a doubt the best-known network administration tool. It is one of the simplest tools, because all it does is send packets to check if a remote machine is responding and, by...
Server integrity check ShowIntegrity check When a server has been compromised, the hacker usually covers his/her tracks by deleting all records of his/her activity from the logs. Additionally, he/she installs some tools to enable him/her to create a backdoor, in order to...

1

 venkat1926, on Sep 15, 2009 2:15:26 am BST

Try

Sub test()
Dim rng As Range, c As Range, x As String, cfind As Range
With Worksheets("sheet2")
Set rng = Range(.Range("A1"), .Range("A1").End(xlDown))
For Each c In rng
x = c.Value
Set cfind = Worksheets("sheet1").UsedRange.Cells.Find _
    (what:=x, lookat:=xlWhole)
If Not cfind Is Nothing Then
c.EntireRow.Copy
With Worksheets("sheet3")
.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial
End With
End If
Next c
End With
Application.CutCopyMode = False
End Sub

Reply to venkat1926