+ Reply to Thread
Results 1 to 6 of 6

IF Statement and Vlookup, Help Please

  1. #1
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    IF Statement and Vlookup, Help Please

    Hi All

    is there way of combining these two Macros into one Please ? they run in this sequence,

    Thank you


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by bimo; 11-25-2014 at 03:06 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,431

    Re: IF Statement and Vlookup, Help Please

    Untested:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: IF Statement and Vlookup, Help Please

    Quote Originally Posted by TMS View Post
    Untested:

    Please Login or Register  to view this content.

    Regards, TMS
    Thanks for that
    I tested it but seems Vlookup is looping but not the If Statement ...

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,431

    Re: IF Statement and Vlookup, Help Please

    What do you mean: the VLOOKUP isn't looping?

    The code is supposed to be putting the formula in the whole (populated) column. It's using the lastRow that you use to loop to establish the range. Is it not doing that?

    As I said, it's not tested because I have nothing to test it with.

    Regards, TMS

  5. #5
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: IF Statement and Vlookup, Help Please

    Quote Originally Posted by TMS View Post
    What do you mean: the VLOOKUP isn't looping?

    The code is supposed to be putting the formula in the whole (populated) column. It's using the lastRow that you use to loop to establish the range. Is it not doing that?

    As I said, it's not tested because I have nothing to test it with.

    Regards, TMS
    Sorted now, Thank you!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,431

    Re: IF Statement and Vlookup, Help Please

    You're welcome. Thanks for the rep.

+ 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] If then statement.. vlookup? I think
    By nyichiban in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-28-2013, 03:30 PM
  2. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  3. Using a VLOOKUP and IF statement inside an IF statement
    By Isis3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2011, 07:04 PM
  4. Vlookup If Statement
    By mwgr5 in forum Excel General
    Replies: 5
    Last Post: 08-13-2008, 11:18 AM
  5. [SOLVED] If statement with Vlookup
    By Marty in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-30-2006, 11:20 AM

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