+ Reply to Thread
Results 1 to 1 of 1

VBA for Do Until Loop with VLookUp

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    VBA for Do Until Loop with VLookUp

    Hello,

    I would like to ask for your help to use the following formula with VBS in the spreadsheet code. For the moment I'm using it with Conditional Formatting on <Sheet1> to strike through the rage cells from G10 below (up to G100) if the value (text) from column G if not present in the spreadsheet named <Resources>

    =AND(IFERROR(VLOOKUP(G10,resources!$A:$A,1,0),0)<>G10,IFERROR(VLOOKUP(G10,resources!$C:$C,1,0),0)<>G10,IFERROR(VLOOKUP(G10,resources!$E:$E,1,0),0)<>G10,IFERROR(VLOOKUP(G10,resources!$G:$G,1,0),0)<>G10,IFERROR(VLOOKUP(G10,resources!$I:$I,1,0),0)<>G10)


    column A column C column E...

    a1 c1 e1
    a2 c2 e2
    a3 e3
    a4



    In spreadsheet <Sheet1>


    column G

    a3
    a1
    e2
    i1 <--- strikethrough because is not founded in spreadsheet <Resources>

    My issue is that if I'm updating the spreadsheet <Resources> with file names by adding new columns with file names i have to add the following formula with the new column that contains file names in the spreadsheet <Sheet1> Conditional Formatting.

    IFERROR(VLOOKUP(G10,resources!$<new column>:<new column>,1,0),0)<>G10

    I would like to have the formula

    IFERROR(VLOOKUP(G10,resources!$I:$I,1,0),0)<>G10 repeated until now data is found in 2 consecutive columns.


    What i'm trying to do is strike through the text from column G10 and below on spreadsheet <Sheet1> if it's not found in spreadsheet <Resources>. The data on both spreadsheets are updated (on Resources in columns and rows and Sheet 1 from row G10 below only).

    Thank you for your time! Kind regards,

    Jack
    Last edited by jack.d; 05-21-2012 at 02:02 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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