Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vlookup Question


There are two sheets. I would like to be able to run a macro on Sheet
that
looks up the row value from column F in sheet1 after matching the dat
in each row with columns A,B,C,D from sheet2. If it does not have
match, it would put "new" in column F.


Sheet1 looks like this and is a dynamic range named "data":


2005i Line1 MID 5/20/06 6/20/06 Joe
2005j Line2 TMP 5/20/06 7/1/06 Mike
2005j Line2 TMP 7/01/06 8/1/06 Fred

Sheet2 looks like this and is a dyanmic range named "data":

2005i Line1 MID 5/20/06 6/20/06
2005j Line2 TMP 5/20/06 7/1/06
2005j Line2 TMP 7/01/06 8/1/06
2006n Line3 PTY 9/17/06 9/25/06

Data would look like this after macro:

2005i Line1 MID 5/20/06 6/20/06 Joe
2005j Line2 TMP 5/20/06 7/1/06 Mike
2005j Line2 TMP 7/01/06 8/1/06 Fred
2006n Line3 PTY 9/17/06 9/25/06 NEW

Any suggestions will be appreciated

--
czywr
-----------------------------------------------------------------------
czywrg's Profile: http://www.excelforum.com/member.php...fo&userid=3105
View this thread: http://www.excelforum.com/showthread.php?threadid=53887

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Vlookup Question

Hi,

isn't it easier to use formula in sheet2 instead of macro?

But maybe I didn't understand your needs.

Regards,
Ivan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vlookup Question


A formula would do it for me. How do you do a lookup that checks or
matches a whole row of data?


--
czywrg
------------------------------------------------------------------------
czywrg's Profile: http://www.excelforum.com/member.php...o&userid=31051
View this thread: http://www.excelforum.com/showthread...hreadid=538877

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Vlookup Question

Hi,

you need a helper column (in both sheets) that will concatenate values
from all columns you want to compare. Then lookup in the helper column.

Regards,
Ivan

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 question aimlessmn Excel Discussion (Misc queries) 2 April 10th 09 09:49 PM
Vlookup Question carl Excel Worksheet Functions 1 February 21st 06 05:50 PM
VLOOKUP question Pierre Fichaud Excel Worksheet Functions 5 March 18th 05 10:53 PM
Vlookup question please Bob Newman Excel Worksheet Functions 3 March 17th 05 02:17 PM
Vlookup question MESTRELLA29[_2_] Excel Programming 2 February 23rd 05 08:39 PM


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