+ Reply to Thread
Results 1 to 5 of 5

Countif??

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Countif??

    Hi all

    I'm having issues working out the formula for a countif or dcounta i think i might need.

    First column is Salesman and second is company sold to. I'm trying to work out how many the salesman has sold without counting the blank cells. I don't need to know which companies, just the total over all. Obviously this list will increase with more sales.
    So if salesman is JA then total companies sold to is ?? etc.

    please see attached example.

    Thanks.
    Attached Files Attached Files
    Last edited by Gallinski; 02-06-2012 at 08:17 PM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Countif??

    Try this:

    =SUM(--(IFERROR(MATCH($C$6:$C$15,INDEX(IF(($B$6:$B$15="JA")*($C$6:$C$15<>""),$C$6:$C$15,-1),0),0),0)=ROW(INDIRECT("1:" & COUNTA($B$6:$B$15)))))

    This is an array formula and must be entered using Ctrl-Shift-Enter, not just enter.

  3. #3
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Countif??

    No sorry didn't seem to work.

  4. #4
    Registered User
    Join Date
    02-12-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Countif??

    It's ok, found a thread which helped with the answer. Used the following formula.

    =SUMPRODUCT(--($B$6:$B50="JA"),--($C$6:$C50<>""))

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Countif??

    Oh, sorry, I thought you wanted to count the number of *different* companies each person had sold to.

+ 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