+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Compare and show only the different value cells as result?

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Compare and show only the different value cells as result?

    Dear Friends,

    I have worksheet with multiple cells per set that to be checked with another set of cells as in the attached worksheet and show the different value cells as a result. What is the code to solve the problem?

    The First Set has the Master Data. If second set ("To Check") doesn't have the data which is in the Master Data then it should show the missed data the in the Result.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Compare and show only the different value cells as result?

    In I5, try:

    =SUMIF($B$5:$B$16,H5,$C$5:$C$16)-SUMIF($E$5:$E$11,H5,$F$5:$F$11)

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Compare and show only the different value cells as result?

    formula provided by NBVC works as long as column H is filled in.
    If you want both columns filled in automatically, then you need to first create the list in column H.

    See attached file. I have created a number of helper columns [M thru' P], to show the process and logic. You can leave it as is and use it or try to combine the formulas in one cell.

    I am sure someone will come up with a cute little formula that will do the trick.

    Until then, use the sample provided here.
    modytrane
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-02-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Compare and show only the different value cells as result?

    Quote Originally Posted by modytrane View Post
    formula provided by NBVC works as long as column H is filled in.
    If you want both columns filled in automatically, then you need to first create the list in column H.

    See attached file. I have created a number of helper columns [M thru' P], to show the process and logic. You can leave it as is and use it or try to combine the formulas in one cell.

    I am sure someone will come up with a cute little formula that will do the trick.

    Until then, use the sample provided here.
    modytrane
    Thanks for your help. I need a macro to do this job. Any help please?

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Compare and show only the different value cells as result?

    Try this one, thought I'd uploaded it yesterday, my apology for the delay.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JBeaucaire; 04-05-2009 at 04:26 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    04-02-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Compare and show only the different value cells as result?

    Quote Originally Posted by JBeaucaire View Post
    Try this one, thought I'd uploaded it yesterday, my apology for the delay.
    Please Login or Register  to view this content.
    Thanks for the help.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Compare and show only the different value cells as result?

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

+ 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