+ Reply to Thread
Results 1 to 5 of 5

vba lookup using multiple criteria based no cell values

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    vba lookup using multiple criteria based no cell values

    Hello

    I need an help in vba for lookup. I have two sheets.
    Sheet 1 have a list of "customer names" in column A and list of "products name" in row 1.


    In sheet2, column A have customer names, column B have the location and column C have the products name.

    A single customer can own more than one product, which means sheet2 will have duplicate names with unique product name.

    In this sheet1, there are status "Yes" or "No" for the products owned by each customer based on the product name


    I need a vba code to find the cells which are "No" from sheet1 and then go to sheet 2, look up values using "customer name" & "Product Name".
    If it finds the product, the "No" from sheet1 has to be replaced to "Yes".

    I have attached the excel for easy understanding.

    Response will be deeply appreciated, since i have been working on this very long.

    Regards,
    Rakesh R
    Attached Files Attached Files
    Last edited by rakeshr; 08-26-2013 at 07:13 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: vba lookup using multiple criteria based no cell values

    Does it have to be VBA? I have attached a solution that uses formulas.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: vba lookup using multiple criteria based no cell values

    Hi Jeff,

    Thank you for the formula.

    The attached file does not have VBA code, but i was wandering if i could get a VBA code for the same.

    The formula works fine when working with small data numbers. However, i have 5000 rows & 10 columns to be updated using this method.

    Would be great helpful if i could get a VBA code for this.

    Rakesh

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: vba lookup using multiple criteria based no cell values

    A VBA solution, but will not be faster than a formula.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: vba lookup using multiple criteria based no cell values

    Thanks AB33... This is what i was looking for & works perfectly fine. Great help!!!

    Thank you too Jeff... I infact learnt a new formula from you.

    Rakesh

+ 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 to return multiple values to a single cell based on multiple criteria
    By lwallace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 06:32 AM
  2. Lookup/ Return and concatenate values based upon multiple criteria
    By steveboise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-15-2013, 10:43 AM
  3. Replies: 10
    Last Post: 02-19-2013, 12:05 PM
  4. Lookup Multiple Values From a List Based on One Criteria
    By jjcgirl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2013, 03:28 PM
  5. Aggregate multiple values into one cell based on multiple criteria using VBA
    By jwestover1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-04-2013, 01:17 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