Results 1 to 5 of 5

VBA to find additional matches based on first match

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-09-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    176

    VBA to find additional matches based on first match

    I have attached a workbook that has some data in AS5 the number 2 currently occupies that cell. I need a way to have whatever number is in AS5 be compared to D5,E5 and F5. If in this example the number 2 (AS5) is also in either D5, E5 or F5, then vba needs to look down thru row 14 of D:F and if there are additional 2's found in any row, then extract the numbers next to (in this example) the number 2 and deliver the results back over to column AS where the number 2 (AS5) is currently occupying and display in AS8 and below, (AS9, AS10, AS11,etc). You hopefully will be clear on my expected result when you review the attached spread sheet. If that function can be accomplished, i would love for it to be able to perform the same analysis and extracted results across the entire column range of AR5:Bi5 and AR6:Bi6. You may ask why did I point direction to AS5 (#2)? simply because it has a number in the cell and the ones next to it are blank so just thought it would be easier to get a positive result.

    Another anticipated question from you might be what is the status of D5:F14? those numbers will be changing every day.... Also the numbers in AR5:Bi5 & AR6:Bi6 will change daily as well. So at some point soon, the AS5 (#2) might be blank tomorrow so if the vba sees the cell does not have a number in it, then just ignore it until a number finally does occupy that cell again.
    Gosh I hope at least some of that made a little sense.... I sure appreciate any help or suggestions!
    Attached Files Attached Files
    Last edited by Hillster; 11-04-2019 at 05:49 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Index match based on 2 matches
    By trolle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-13-2017, 03:13 AM
  2. Replies: 1
    Last Post: 11-21-2016, 01:24 PM
  3. [SOLVED] INDEX/MATCH Lookup based on Data from two additional sheets
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-08-2015, 02:07 PM
  4. Find all matches for one cell and when a match found return a ref number VBA
    By ch_abs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2014, 06:15 AM
  5. Macros to find all matches and put in a userform to choose best match
    By lottidotti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2012, 12:51 PM
  6. Replies: 2
    Last Post: 03-02-2009, 12:15 AM
  7. Search (match) through columns and find ALL matches
    By qz33 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2008, 08:58 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