+ Reply to Thread
Results 1 to 2 of 2

Advanced COUNTIF and SUMIF

  1. #1
    Registered User
    Join Date
    08-23-2015
    Location
    Australia
    MS-Off Ver
    MS Mac:2011
    Posts
    4

    Advanced COUNTIF and SUMIF

    Hello, I have already gotten assistance on this workbook but now i thought I would just post the whole workbook and try to get it finished.

    At the top I need the various formulas, below is an example data set.

    Background.
    This sales crew works 16 shifts per month.
    Each shift the crew is divided into teams of 2 or 3 and assigned one of 5 areas (T,B,Q,W or O)
    Each salesperson can make either Small sales or Large sales
    Each sales person will only appear once for each shift, ,if there is a double that is my data entry error.
    Each sales team will be deployed to one area per shift.
    Small sales values may be from 0-30
    Large sales values may be from 0-20


    Want formulas for the following columns
    Q:Q - U:U, count how many times each sales person is assigned to each area in the month.
    V:V - W:W, sum of total Small and Large Sales for each sales person for the month.
    X:X - AB:AB, Sum of Small sales each sales person gets in each sales area.
    AC:AC- AG:AG, Sum of Large sales each sales person gets in each sales area.

    Anymore info let me know.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,765

    Re: Advanced COUNTIF and SUMIF

    Put this in Q3:

    =COUNTIFS($L$21:$L$148,LEFT(Q$2),$C$21:$C$148,$A3)+COUNTIFS($L$21:$L$148,LEFT(Q$2),$F$21:$F$148,$A3)+COUNTIFS($L$21:$L$148,LEFT(Q$2),$I$21:$I$148,$A3)

    Copy across to U3, then down. Put this in V3:

    =SUMIF($C$21:$C$148,$A3,D$21:D$148)+SUMIF($F$21:$F$148,$A3,G$21:G$148)+SUMIF($I$21:$I$148,$A3,J$21:J$148)

    Copy into W3, then down. Put this in X3:

    =SUMIFS($D$21:$D$148,$C$21:$C$148,$A3,$L$21:$L$148,LEFT(X$2))+SUMIFS($G$21:$G$148,$F$21:$F$148,$A3,$L$21:$L$148,LEFT(X$2))+SUMIFS($J$21:$J$148,$I$21:$I$148,$A3,$L$21:$L$148,LEFT(X$2))

    Copy across to AB3, then down. Put this in AC3:

    =SUMIFS($E$21:$E$148,$C$21:$C$148,$A3,$L$21:$L$148,LEFT(AC$2))+SUMIFS($H$21:$H$148,$F$21:$F$148,$A3,$L$21:$L$148,LEFT(AC$2))+SUMIFS($K$21:$K$148,$I$21:$I$148,$A3,$L$21:$L$148,LEFT(AC$2))

    Copy across to AG3, then down.

    Hope this helps.

    Pete

+ 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. a more advanced countif?
    By aaronp123 in forum Excel General
    Replies: 12
    Last Post: 05-23-2014, 06:29 AM
  2. [SOLVED] SUMIF advanced....
    By alfgrey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2014, 08:21 PM
  3. [SOLVED] SUMIF advanced
    By alfgrey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2013, 09:36 AM
  4. Advanced SUMIF Function Help
    By rysnyder in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2012, 06:26 PM
  5. Help with Advanced Filters and Sumif's
    By Pelona in forum Excel General
    Replies: 6
    Last Post: 07-28-2009, 03:41 PM
  6. Help on Advanced Sumif
    By paid2mkgrlspanic in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-14-2009, 03:35 PM
  7. advanced countif?
    By saybut in forum Excel General
    Replies: 4
    Last Post: 04-13-2005, 09:08 AM

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