Results 1 to 10 of 60

Thread: Vba button Comparison data between two file or two tabs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Hi Thai,
    Quote Originally Posted by Thainguyen
    Here is the video i found online. We could use as a good sample. The only different is they are highlighted the result.
    https://www.youtube.com/watch?v=cqd0QWF9b4s
    I will take a look at that video later when I have the time, .. that may answer some of my questions…
    _.________________________________________________ __________________________

    In the meantime, you say regarding this:
    Code:
    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    1
    Original Original Original Original Original Original Test Output Test Output Test Output Test Output Test Output NEW NEW NEW NEW NEW NEW
    4
    1
    Nu Torque ABC
    456
    456
    ABC < > 13456
    1
    Nu Torque
    13456
    456
    456
    ...so...This is the required output
    Test Output Test Output Test Output Test Output Test Output
    ABC < > 13456
    Here is your answer: Answer2Aug.JPG: https://imgur.com/wp8zu01

    _.. so This alternative you say is OK , but not preferred:
    Test Output Test Output Test Output Test Output Test Output
    1
    Nu Torque New 13456
    456
    456
    But in some previous data cases, this sort of output was the correct output.
    So when and how do I know which should be the correct output? Give me please some more test data such that there is an example of both those two types of output. Show me again the results wanted. Explain to me what the criteria is for deciding when which of those two types of output is wanted
    _.________________

    You also say that this is incorrect
    Test Output Test Output Test Output Test Output Test Output
    MISSING: 1 MISSING: Nu Torque MISSING: ABC MISSING: 456 MISSING: 456
    Please explain again what criteria will determine when this sort of output is wanted.

    _.____

    The problem that I have currently is that the criteria you have given me can allow for three different forms of output for the same data. It is not clear to me yet how I can decide which of those three answers should be used. Us humans can make a guess at which answer looks the most useful. But the computer program must have hard facts / criteria to use to decide when it gives which output

    My initial idea would be that the program would look at how many of the 5 cells are different. If only one or two is different, then this could be taken as the original data changed and have the
    ” < > “
    in one or two places, rather than it being indicated as
    NEW: data
    ( Note , However if, say only one cell is different , but also the data in the NEW sheet is on a different line, then it will be impossible or extremely difficult to locate that data to make the necessary comparison: There may be other data that is similar but with only a cell or two different.

    _.________________

    When asking such a question as this, it is helpful if you can think very carefully about all the possible scenarios and choose very carefully the test data you give me so that all scenarios and required output is shown. ( But as always still keep the amount of test data to the minimum necessary to do this: We can discus later how to extend the code to work on much more data. It is stupid to do this until we have the code working correctly. No body will want to sort out problems using large amounts of data as this would take a ridiculous amount of time)
    We are wasting a lot of time as the original test data has not been chosen to demonstrate all possible scenarios. But this is normal I guess, .. , some testing will often reveal a scenario which was difficult to imagine initially.
    Please spend some time thinking very carefully about the next test data you give me so that as many different possibilities are demonstrated in the “Results Wanted” tab. Make sure there is data that could make any of the three possibilities valid, but show data that you want to give at least one for all those three outputs, and explain carefully what criteria is used to decide which one to be used.

    You need to think not as a Human, but as a boring computer.. what would it use to determine which of those three outputs is valid. We can make an intuitive guess between what is “New” and what is old data that has been changed. The computer program must make a decision based on specific criteria
    _.________________________

    So I wait now for some more test data from you, (including a Results Wanted worksheet) , but will also watch that video when I have time
    Alan

    _.________

    P.S. A minor Question: Are the entries in column B in the original data unique? or could there be duplicate “Ref/Designator” ?
    Last edited by DocAElstein; 08-05-2018 at 02:12 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

Similar Threads

  1. Link spin button or scroll button to chart.
    By Thainguyen in forum Excel Help
    Replies: 1
    Last Post: 06-08-2018, 04:19 AM
  2. VBA Macro to open a file and extract data
    By jeremiah_j2k in forum Excel Help
    Replies: 0
    Last Post: 05-22-2017, 03:17 PM
  3. Button to export data to a master file
    By aryanaveen in forum Excel Help
    Replies: 0
    Last Post: 01-17-2015, 02:35 AM
  4. Replies: 7
    Last Post: 05-20-2014, 02:10 AM
  5. Replies: 3
    Last Post: 08-28-2013, 02:02 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •