LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro for comparing 2 values (number and date)

I want to find the supplier number that exist in tabel 2 adn copy it
to my tabel 1.

To do that I need to comapre both tabels, 1 and 2 in steps:

1) compare the column - material number in tabel 1 and 2.
2) Compare the dates. In tabel 1 I have the date where the compan
bought the material.
IN tabel 2 I have the dates (valid from .- valid to) where the compan
was buying for a certain supplier.

The dates from tabel 1 need to be in between the dates in tabel 2, fo
example:
If tabel 1 date is 3-february-2003, I need to find which supplier wa
valid in this period. and so on

Please take a look in the excel where I have the 2 tabels and it i
easy to understand hte problem

I dont believe the Macro is difficult to write, but I do not know ho
to do it

I really appreciate any help
Thanks a lot in advance
Mart

Attachment filename: forum excel- macro problem.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=65361
--
Message posted from http://www.ExcelForum.com

 
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
Macro to find matching date and copy values to another sheet Tiger Excel Discussion (Misc queries) 3 August 13th 07 01:45 PM
Help with Comparing values and retrieving values in Excel!!!!!! [email protected] Excel Worksheet Functions 1 November 17th 06 12:21 AM
Macro Help Needed: Comparing cell values and deleting rows [email protected] Excel Discussion (Misc queries) 1 September 19th 06 02:39 AM
formatting date-time values in macro scw-tzg Excel Worksheet Functions 2 November 14th 05 09:21 PM
Macro to spread values between start and end date Mark[_27_] Excel Programming 2 October 9th 03 10:33 PM


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