+ Reply to Thread
Results 1 to 5 of 5

Using loop and finding the right row combination?

  1. #1
    Registered User
    Join Date
    07-28-2005
    Posts
    73

    Exclamation Using loop and finding the right row combination?

    Hello,
    In my attachment, I have two sheets, with same columns in both sheets.
    Now, wherever,I have #VALUE! error in sheet 2, for the same combination in col A,B from sheet 1, I want it to grab the values from C,D,E,F from sheet 1 and paste it on the error values in sheet 2. There are almost 1000 rows, So I would like to do this using the check condition, if column 3 has # VALUE!, then copy data from sheet 1 for the same combination from column A and B.

    Thanks for your help.
    Attached Files Attached Files

  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,451

    Re: Using loop and finding the right row combination?

    I'm not sure if this is what you are looking for:

    Cell C2: =VLOOKUP($A2,Sheet1!$A$1:$F$5,COLUMN(C$1),FALSE)


    Please Login or Register  to view this content.

    Regards
    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
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Using loop and finding the right row combination?

    Hello hvisa:
    From the mention of "loop" and the "macro" name in your sheet I'm assuming you are looking for a macro solution. Also , from you example, I'm assuming the "#value!" is actually a string ... if these assumptions are correct then this macro should help you ...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-28-2005
    Posts
    73

    Re: Using loop and finding the right row combination?

    Thank you so much,nimrod. Yes, I was looking for a macro solution and that worked perfectly.
    Thank you TMShucks for your help.

  5. #5
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Smile Re: Using loop and finding the right row combination?

    HI hvisa:
    Glad that worked out for you.

    Cheers

+ 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