+ Reply to Thread
Results 1 to 2 of 2

Need basic loop to evaluate two worksheets: a match on one column and a date comparison.

  1. #1
    Registered User
    Join Date
    06-16-2021
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    12

    Need basic loop to evaluate two worksheets: a match on one column and a date comparison.

    I am looking for some code which will allow me to evaluate every record in worksheet 1 to determine whether each has an exact match of the value in Column A with Column A of any record in worksheet 2. If there is a match, return a true/false determined by whether the date listed in column B of worksheet 2 is after the date in Column B AND before the date in Column C of worksheet 1. Example attached.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Need basic loop to evaluate two worksheets: a match on one column and a date compariso

    You can do it with a formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Loop through and copy text from one cell to a cell in another column based on date match
    By James Keuning in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-24-2021, 12:22 AM
  2. [SOLVED] Loop through column, match date, copy & paste row data to another sheet
    By benlw1984 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2020, 06:08 AM
  3. [SOLVED] Evaluate Match 3 sheets continue when error (probably Loop?)
    By psjpsjpsjpsj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2016, 07:02 PM
  4. Replies: 4
    Last Post: 08-29-2013, 04:27 PM
  5. Column comparison using match and index function
    By shraddha5 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2013, 01:11 AM
  6. VBA: using Evaluate with sumproduct function ( Date Comparison not working)
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2012, 05:36 AM
  7. Basic IF loop & commands for an entire column?
    By lieb39 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2010, 05:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1