+ Reply to Thread
Results 1 to 2 of 2

Please Help resolve this code - Compare 2 sheets, if criteria is good do a task.

  1. #1
    Registered User
    Join Date
    11-05-2018
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    1

    Please Help resolve this code - Compare 2 sheets, if criteria is good do a task.

    Basically i have this script which compare 2 sheets, which compares a value in a column to the new sheet, if it finds the value, it will copy the information from Old sheet "B" to new sheet "B" column.

    The script is working flawlessly (Thanks to the author)

    I have trying to configure it to search and compare not only 1 column, but 2, if column X AND Y are equal to X AND Y in the new sheet it will do the same task.

    The reason for this is that sometimes i have the value it searches for in few different rows, so when it compares it will find it at few places. While this script works perfect only when there are unique "Find" values.

    Can you help me to edit so it fits "Find" and compare Column "P" & Column "V" if those are the same in new sheet, it will copy the Values in Column "B" old sheet to "B" new sheet.



    Please Login or Register  to view this content.

    So i need to tweak this to search both column P, AND Column V, if both are correct then it will do the comment merge, if something is wrong it will tell me what Tag is wrong.
    The author told me this should be easy change, but for me it is not.

    That should be a relatively easy change. In the Do Loop, you'd need to add a check for the value in the second column(s). If you get stuck on that, please start a new question (feel free to provide a link to this one) with what you've tried.

    I got little help with this code, but it is not working properly.
    It merges the comments to all which have the tag in P, so not correctly comparing P and V, also it is not giving me any fault anymore. But will post here maybe you get an idea.

    Please Login or Register  to view this content.
    Last edited by Jkorani; 11-05-2018 at 07:46 AM. Reason: ADded new code

  2. #2
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,270

    Re: Please Help resolve this code - Compare 2 sheets, if criteria is good do a task.

    Maybe like this only idea
    Please Login or Register  to view this content.
    Last edited by daboho; 11-05-2018 at 09:46 AM.

+ 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. Compare data on two sheets and pull multiple results based on criteria
    By Mandross in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-20-2017, 06:58 PM
  2. Compare Player vs others in a good way
    By Bleistiftgummi in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-27-2016, 05:10 AM
  3. [SOLVED] Macro to compare against multiple criteria two sheets
    By isasa74 in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 09-14-2015, 12:25 PM
  4. Need VBA code to compare two sheets
    By gokulg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2014, 03:01 AM
  5. compare code in two sheets
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2014, 02:29 PM
  6. Replies: 9
    Last Post: 08-07-2013, 02:21 PM
  7. Compare 2 sheets based on criteria
    By khalid79m in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-26-2007, 04:53 AM

Tags for this Thread

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