Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Vlookup with multiple FOR condition

Hi,

Am Wed, 24 Sep 2014 11:32:04 -0700 (PDT) schrieb KK:

I have below code for vlookup from different sheets. The problem is the inner loop is not exiting after first condition is met. Like I am getting 3 lookups on the same field (JCell) please help


try:

Sub Test()
Dim JRng As Range

Set JRng = Sheets("Sheet2").Range("J8:J10")
With JRng
.Formula = "=VLOOKUP(Sheet3!D23,Sheet4!$M$1:$N$1000,2,0)"
.Copy
.PasteSpecial xlPasteValues
End With
End Sub


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
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
Vlookup with If condition Biff Excel Worksheet Functions 1 March 19th 10 07:01 PM
Two Condition Vlookup Santi[_2_] Excel Discussion (Misc queries) 1 March 8th 10 12:01 AM
VLOOKUP Condition lightbulb Excel Discussion (Misc queries) 3 June 24th 09 08:36 PM
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
vlookup or dget with multiple condition - help please Eddy Stan Excel Worksheet Functions 4 September 1st 07 10:22 PM


All times are GMT +1. The time now is 08:28 PM.

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"