Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Macro for comparing 2 values (number and date)

it's not a macro but a real nifty tool. and it's free.
go to http://www.jkp-ads.com/Download.htm
it works like excel find but it searches ALL sheets and
shows a list of where it found it all. click on a member
of the list and it takes you to it where ever it is. click
another member of the list and boom - you're there.
Great tool. everyone should get it. downloads as a zip.
easy to install. even puts an icon up.
-----Original Message-----
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 company
bought the material.
IN tabel 2 I have the dates (valid from .- valid to)

where the company
was buying for a certain supplier.

The dates from tabel 1 need to be in between the dates in

tabel 2, for
example:
If tabel 1 date is 3-february-2003, I need to find which

supplier was
valid in this period. and so on

Please take a look in the excel where I have the 2 tabels

and it is
easy to understand hte problem

I dont believe the Macro is difficult to write, but I do

not know how
to do it

I really appreciate any help
Thanks a lot in advance
Marta

Attachment filename: forum excel- macro

problem.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=653613
---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro for comparing 2 values (number and date)

Hi martha.

I posted 3 times already (failed 3 times i think), though first time o
internet.

I will give you a new attachment, with the solutions. In the red cell
for suppliers I putted formula's, which check if one of your material
is in the list, and further checks which supplier comes in a certai
date criteria.

Please let me know if this is what you are looking for, and if you hav
any questions, send me a email to my address.

Regards
Max(16)
the netherland

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

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
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 02:27 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"