+ Reply to Thread
Results 1 to 7 of 7

Count a Range of cells if another range of cells meets criteria

  1. #1
    Registered User
    Join Date
    09-10-2010
    Location
    Redditch, England
    MS-Off Ver
    Excel 2010
    Posts
    35

    Count a Range of cells if another range of cells meets criteria

    Hi hope someone can help.

    I have a spreadsheet which lists all the sales for a particular period from all our sales offices.

    What I want to do is count the number of sales of a particular product from a particular sales office.

    Have attached an image to show you.

    So I want to create a formula that tells me that sales office AW has sold 1 x Product A and 2 x Product B and 1 x product D and so forth for each sales office.

    I can tell that a product has been sold by the fact that the cells in columns D - G are not equal to 0.00

    Can anyone help me please

    sales.jpg

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count a Range of cells if another range of cells meets criteria

    Reading your problem i would suggest you to use a pivot table to get your result.

    You get better help if you add an excel-file without confidentional information.

    Please also add the desired (expected) result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count a Range of cells if another range of cells meets criteria

    Hi mjg,

    Instead of image, please upload an excel workbook and do mention your expected result. thanks.



    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    09-10-2010
    Location
    Redditch, England
    MS-Off Ver
    Excel 2010
    Posts
    35

    Wink Re: Count a Range of cells if another range of cells meets criteria

    Hi both. Thanks for the reply.

    Please find attached the demo spreadsheet showing the data and the reporting template I require

    Thanks for your help

    Regards
    Attached Files Attached Files

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count a Range of cells if another range of cells meets criteria

    Okay.. see the attached file where I used sumproduct function :-

    demo spreadsheet.xlsm


    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Registered User
    Join Date
    09-10-2010
    Location
    Redditch, England
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Count a Range of cells if another range of cells meets criteria

    Brilliant, thank you for your help

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count a Range of cells if another range of cells meets criteria

    you are welcome...

    please mark this thread as [SOLVED].. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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