+ Reply to Thread
Results 1 to 7 of 7

Compliance between 2 columns

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    France
    MS-Off Ver
    Excel 2010 Standard
    Posts
    4

    Compliance between 2 columns

    Hello,

    I have 2 columns of numbers. One is a system proposal, the other one is what we decide to apply.
    I would need a formula which calculate a % of compliance : how many times did we follow the system ?

    Constraint 1 : number of lines will not be the same depending on the application.
    Constraint 2 : due to constraint 1, I don't want the % to be decreased or increase by blank cells (when there is no data inside).

    Thanks for your help !
    Attached Files Attached Files
    Last edited by Sakura92; 11-13-2013 at 08:25 AM.

  2. #2
    Registered User
    Join Date
    11-12-2013
    Location
    France
    MS-Off Ver
    Excel 2010 Standard
    Posts
    4

    Re: Compliance between 2 columns

    Hello all,

    As I was advised to do it, I attached an example.
    In red, the cell where I would like to have the forumla.

    Thanks for help

  3. #3
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Compliance between 2 columns

    Please try this function

    =SUMPRODUCT(1*($E$10:$E$29=$F$10:$F$29))/COUNTA($F$10:$F$29)
    Please click 'Add reputation', if my answer helped you.

  4. #4
    Registered User
    Join Date
    11-12-2013
    Location
    France
    MS-Off Ver
    Excel 2010 Standard
    Posts
    4

    Re: Compliance between 2 columns

    Hello ramananhrm,

    Thanks for your answer. This working but not perfect.
    As I said, numbers of lines in the report are not the same each time. So this time I got 20 customers but I would get only 18 or 22 next time.

    With the assummption that I have the same numbers for all, If I remove data on the 2 last customers, the % become 111%.

    How can it ignore lines where there is no data ?

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Compliance between 2 columns

    maybe:
    =SUMPRODUCT(--($E$10:$E$40=$F$10:$F$40),--(F10:F40<>""))/COUNT($F$10:$F$40)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Compliance between 2 columns

    Hopefully this should work.

    =SUMPRODUCT(1*($E$10:$E$29=$F$10:$F$29))/SUMPRODUCT(--($E$10:$E$29<>"")*--($F$10:$F$29<>""))

  7. #7
    Registered User
    Join Date
    11-12-2013
    Location
    France
    MS-Off Ver
    Excel 2010 Standard
    Posts
    4

    Re: Compliance between 2 columns

    Formula from benishiryo is working perfectly thanks !

    ramananhrm, sorry but the formula still consider blanks as i got more than 100%
    Anyway, thanks both for your help !

+ 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. [SOLVED] Help with Formula for % Compliance
    By Maeeday in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 08:01 PM
  2. Readjust weighting based on non compliance
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-17-2012, 06:15 PM
  3. [SOLVED] URGENT help or features needed for sox compliance
    By Pamela Bradford in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2006, 01:30 PM
  4. [SOLVED] Graphing data with compliance limit
    By Scott from Gippsland in forum Excel General
    Replies: 1
    Last Post: 06-23-2006, 08:51 AM
  5. [SOLVED] driver hour compliance formula mto
    By hello? in forum Excel General
    Replies: 1
    Last Post: 02-11-2005, 03:06 PM

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