+ Reply to Thread
Results 1 to 11 of 11

Find difference between numbers in cells in 2 columns

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Find difference between numbers in cells in 2 columns

    HI I would like to have a macro, which can find the difference in Sheet "Final Match" between Cell values in column I and column J. So if there is a difference between I3 and J3 It display the result in K3. And like that all the way down. All controlled with a command button from sheet1
    Please have a look at my test sheet.
    Sincerely
    Abjac
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find difference between numbers in cells in 2 columns

    Hi Abjac,
    I think this is a continuation of your previous topic. If so, then try
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Find difference between numbers in cells in 2 columns

    Try
    Please Login or Register  to view this content.
    Last edited by jindon; 06-08-2013 at 03:31 AM.

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Find difference between numbers in cells in 2 columns

    HI Nilem. Your right. Thats what it is. Infact it should be a little problem, but i found out of not so easy. The macroes i found gave wrong result or they did not count after the comma. Your code is working great together with the other for sure. I have a little request for a change. First i would like to remove the zeroes in the fields which dont have a difference and then also not to display a minus, if there is a minus.
    But your code according to the other if great thanks.
    '
    Jindon you code according to this testsheet i uploaded, show the wrong result. I have infact here only one error i think in row 179. the difference is
    1,23 but your code gives the result of -123000000000002. So this is not correct off course.
    Will wait to make this solved untill you have had a look.

    Thanks for now to both

    SIncerely
    Abjac

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Find difference between numbers in cells in 2 columns

    Swap 1 and 2 in the formula
    Please Login or Register  to view this content.

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find difference between numbers in cells in 2 columns

    see attachment
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Find difference between numbers in cells in 2 columns

    HI Jindon. It changed but only removed the minus in front. The result should be 1,23 but it display this 123000000000002.
    So its not quite dorrect. Nilem dont know whats wrong, but i cant download the file right now. Will try later on if its better

    Thanks

    Abjac

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Find difference between numbers in cells in 2 columns

    Something is wrong
    change to
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Find difference between numbers in cells in 2 columns

    That did the trick Jindon. Tested more numbers and it display it perfect. So thanks allot
    Have a nice day

    Will mark this as solved. Have 2 good solutions from both of you. Will try your sheet,Nilem when it allow me to download it.

    Thanks to both of you.

    Abjac
    Last edited by abjac; 06-08-2013 at 05:42 AM.

  10. #10
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Find difference between numbers in cells in 2 columns

    HI Nilem dont know whats wrong could you try to upload it again. I can download my own file but not yours.

    Sincerely
    Abjac

  11. #11
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find difference between numbers in cells in 2 columns

    Abjac,
    this is the file from your previous topic. I just joined a macro for columns 'New Cars Input' and 'Difference'
    If you have trouble downloading a file from the forum, write to me PM and I will send the file to your email.

+ 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