+ Reply to Thread
Results 1 to 10 of 10

count the number of populated cells in column N based on data in column D

  1. #1
    Registered User
    Join Date
    06-08-2012
    Location
    Wigan
    MS-Off Ver
    Excel 2010
    Posts
    4

    count the number of populated cells in column N based on data in column D

    Hi Good Evening,

    This is probably quite an easy one but I'm new. I am working on a spreadsheet where data will be input daily to measure KPI's. I need cell I5 on KPI's sheet to divide the number of deales JD has on finance by the total number of deals he has done. I thought I needed to a calculation in another table, which I have tried in INPUT!N183

    =SUMPRODUCT( (D6:D85="JD")*(N6:N85) ) This unfortunately gives #VALUE!

    Then I was going to put

    =INPUT!N183/'KPI''s'!D5

    in KPI's!I5

    I can see that once I have this formula, my document is complete. Can anyone please help?

    Thanks in advance,

    Caroline
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: count the number of populated cells in column N based on data in column D

    Hi,

    I'm assuming you need

    =SUMIF(D5:D86,"JD",O5:O86)

    in N183
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: count the number of populated cells in column N based on data in column D

    Maybe I am confused but if I am understanding this correctly you need to take the coulumn N divide it by column D then divide by 100 to get the percent.

    I think your coulmn H is the total deals on finance... =(G5/D5)/100

    When I set up JD's line using =(G5/D5)/100 then I get 27% for him..

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: count the number of populated cells in column N based on data in column D

    I need cell I5 on KPI's sheet to divide the number of deales JD has on finance by the total number of deals he has done.
    Trying to figure out how to identify the 'deals done on finance', I'm going with the 'ACC' flag in column X

    If that is correct then in I5 on the KPI's sheet, try

    =1-COUNTIFS(INPUT!$D:$D,"JD",INPUT!$X:$X,"ACC")/COUNTIF(INPUT!$D:$D,"JD")

    This also eliminates the need for the helper table in INPUTS!M182:R187

  5. #5
    Registered User
    Join Date
    06-08-2012
    Location
    Wigan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: count the number of populated cells in column N based on data in column D

    Hi,

    Thanks for the quick relpy, but no, what I am trying to achieve in N183 is the number of times there is a value (not to sum the values) in the VB column column N, when also JD appears in column D.

    thanks again

    caroline

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: count the number of populated cells in column N based on data in column D

    ...then have you tried =COUNTIF() rather than =SUMIF() ?

  7. #7
    Registered User
    Join Date
    06-08-2012
    Location
    Wigan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: count the number of populated cells in column N based on data in column D

    Quote Originally Posted by Richard Buttrey View Post
    ...then have you tried =COUNTIF() rather than =SUMIF() ?
    Yes, I thought it would be that simple too. I have tried =COUNTIF(D5:D86,"JD",O5:O86) in N183 and it says I have entered too many arguments for this function.

    Cheers

    Caroline

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: count the number of populated cells in column N based on data in column D

    Using a similar method of formula construction to my earlier suggestion, in KPI's I5

    =1-COUNTIFS(INPUT!$D:$D,C5,INPUT!$N:$N,"<>")/COUNTIF(INPUT!$D:$D,C5)

    By making your 2 sheets more consistant when you enter the names, you could then use the fill handle to copy the formula down for the other sales execs.

    I've completed the first column for you, hopefully that will guide you toward completing the rest.

    JUNE%202012%20DOC(1).xlsx

  9. #9
    Registered User
    Join Date
    06-08-2012
    Location
    Wigan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: count the number of populated cells in column N based on data in column D

    Quote Originally Posted by jason.b75 View Post
    Using a similar method of formula construction to my earlier suggestion, in KPI's I5

    =1-COUNTIFS(INPUT!$D:$D,C5,INPUT!$N:$N,"<>")/COUNTIF(INPUT!$D:$D,C5)

    By making your 2 sheets more consistant when you enter the names, you could then use the fill handle to copy the formula down for the other sales execs.

    I've completed the first column for you, hopefully that will guide you toward completing the rest.

    Attachment 160787
    Wow,

    Thank you so much. I reckon I can complete it now.

    Regards

    Caroline

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: count the number of populated cells in column N based on data in column D

    Hi,

    COUNTIFS() takes pairs of associated parameters unlike SUMIFS() which should contain the column to be summed as the first parameter, then pairs of criteria parameters.

    So
    =COUNTIF(D5:D86,"JD")
    will count the number of JD's in the column

    =COUNTIFS(D6:D86,"JD",O6:O86,"<>")
    will count the number of JDs in D6:D86 which also have a non blank value in O6:O86

+ 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