+ Reply to Thread
Results 1 to 3 of 3

finding row number in other workbook meeting 2 criteria

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2010
    Posts
    2

    finding row number in other workbook meeting 2 criteria

    I have x number of workbooks that all communicate with one master workbook.
    I am using beforeclose event to trigger a macro that will check each entry of the current workbook (through a loop, unless there is a faster option) and verify if that entry is already in the master. There are two criterias to match: the project number and the changeorder number - if so, it will update the data on that row (hence the need to find the row number I believe) with the information from the current workbook. The information in the master workbook should be sorted by project number, but the changeorder number is text and numbers.

    Please Login or Register  to view this content.
    Any help would be appriciated.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,946

    Re: finding row number in other workbook meeting 2 criteria

    Try using autofilters to find the values - no looping over the second range. Replace

    Please Login or Register  to view this content.
    with code like this (I tried to match what your sumproduct formula seemed to be doing) but wasn't sure what info you wanted to transfer to the master, so I used column C....

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 09-30-2015 at 12:42 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    09-15-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: finding row number in other workbook meeting 2 criteria

    Thank you for the code. I have been working on understanding how to work with autofilters. In general, it looks like the solution. I just need to tweak a few things to make it work exactly how I need it too. I will post the code once finished.

+ 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] How can a find the row number of a row meeting specified criteria?
    By satania in forum Excel General
    Replies: 2
    Last Post: 05-29-2012, 10:12 AM
  2. Replies: 1
    Last Post: 04-19-2011, 06:08 PM
  3. Counting number of cells in workbook meeting criteria
    By Hatricke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2009, 01:15 PM
  4. Finding the maximum value meeting criteria
    By ExcelTip in forum Tips and Tutorials
    Replies: 1
    Last Post: 09-19-2007, 02:09 PM
  5. Replies: 7
    Last Post: 12-28-2006, 04:29 AM
  6. Finding the median of numbers meeting criteria
    By thekovinc in forum Excel General
    Replies: 3
    Last Post: 02-06-2006, 08:45 PM
  7. [SOLVED] Finding The Nth Greatest Value Meeting Criteria
    By Clara in forum Tips and Tutorials
    Replies: 23
    Last Post: 10-07-2005, 02:08 AM

Tags for this Thread

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