LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default relating 2 sheets

Firstly, Id like to thank for the trying to help, but please note that
i dont know anything about visual basics and how to activate them, so
if there is any more clarifications about visual basics and how to
implement them on excel will be great.

Thanx for ur time
believe me im dying to get this




On Apr 24, 12:10 am, JLGWhiz
wrote:
See If this will work:

Sub abc()
lstRw = Worksheets(2).Cells(Rows.Count, 4).End(xlUp).Row
Set scrhRng = Worksheets(2).Range("D1:D" & lstRw)
For Each i In scrhRng
sRng = i.Address
With Worksheets(1).Range("K1:K" & Cells(Rows.Count, 11).End(xlUp).Row)
Set c = .Find(i.Value, LookIn:=xlValues)
If Not c Is Nothing Then
fRng = c.Address
Range(fRng).Offset(0, 1).Copy Worksheets(2).Range(sRng).Offset(0, 1)
End If
End With
Next
End Sub



" wrote:
Hi,


I have two sheets where I have to drag data from the first sheet to
the second one which plays the role of a report.
I am not being abele to get the exact vlookup formula.


to clear myself take this exapmle,


Sheet A which contains the data
Sheet B where the results should appear


if a cell in sheet B (D5) matches with a cell within a column in sheet
A (K6), then E5 in sheet B should equal L6 in sheet A.


I hope it is clear enough,


please need help.


Abosteif- Hide quoted text -


- Show quoted text -



 
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
Max (A1:A1), relating to other cells Mark Solesbury Excel Worksheet Functions 2 March 30th 07 04:27 PM
Relating cells PaulinaDi Excel Worksheet Functions 3 October 17th 06 08:44 PM
Relating fields Henk Excel Discussion (Misc queries) 1 May 29th 06 11:33 AM
Relating text to a value SociologyStudent Excel Worksheet Functions 1 May 11th 06 04:17 AM
Relating text to a value SociologyStudent Excel Worksheet Functions 5 May 10th 06 08:21 PM


All times are GMT +1. The time now is 09:10 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"