+ Reply to Thread
Results 1 to 9 of 9

To make a formula to calculate items sold by each sales person.

  1. #1
    Registered User
    Join Date
    11-01-2017
    Location
    Canada
    MS-Off Ver
    7
    Posts
    5

    To make a formula to calculate items sold by each sales person.

    Please help to create a formula to calculate items sold by each sales person from Dec-01-2020 to Dec-15-2020 as per data from data-sheet Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: To make a formula to calculate items sold by each sales person.

    In C4

    =COUNTIFS('Data-Sheet'!$A$3:$A$31,'Master Sheet'!$A4,'Data-Sheet'!$B$3:$B$31,'Master Sheet'!C$3,'Data-Sheet'!$C$3:$C$31,">=" &'Master Sheet'!$F$2,'Data-Sheet'!$C$3:$C$31,"<=" &'Master Sheet'!$H$2)

    NOTE: dates need converting to Excel dates (done in attached)
    Attached Files Attached Files
    Last edited by JohnTopley; 03-17-2021 at 04:01 PM.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: To make a formula to calculate items sold by each sales person.

    Excel 2016 (Windows) 32 bit
    F
    G
    1
    Sales person name
    2
    Robert
    =COUNTIFS($A$2:$A$30,F2,$C$2:$C$30,">="&DATE(2020,12,1),$C$2:$C$30,"<="&DATE(2020,12,15))
    3
    Patrick
    =COUNTIFS($A$2:$A$30,F3,$C$2:$C$30,">="&DATE(2020,12,1),$C$2:$C$30,"<="&DATE(2020,12,15))
    4
    Dwain
    =COUNTIFS($A$2:$A$30,F4,$C$2:$C$30,">="&DATE(2020,12,1),$C$2:$C$30,"<="&DATE(2020,12,15))
    5
    Hero
    =COUNTIFS($A$2:$A$30,F5,$C$2:$C$30,">="&DATE(2020,12,1),$C$2:$C$30,"<="&DATE(2020,12,15))
    Sheet: Table1
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    11-01-2017
    Location
    Canada
    MS-Off Ver
    7
    Posts
    5

    Re: To make a formula to calculate items sold by each sales person.

    Hi John,
    Thanks for your help.
    My dates automatically generated by the software as follows:
    2020-12-01 15:14
    2020-12-05 15:10
    2020-12-14 17:03
    2020-12-18 15:50
    2020-12-15 15:49
    2020-12-21 15:14
    2020-12-01 15:13
    2020-12-11 17:03
    2020-12-08 15:50
    2020-12-09 15:14
    2020-12-19 15:13
    2020-12-14 15:12
    can you make a formula with the following dates without converting to excel dates.

    Thank you

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: To make a formula to calculate items sold by each sales person.

    For formulas to work based upon dates, they need to be dates. Dates which are in fact Text need to be converted. Real dates in Excel are really serial numbers starting with Jan 1, 1900. So you are testing for numbers falling into a range.

  6. #6
    Registered User
    Join Date
    02-09-2021
    Location
    Boston
    MS-Off Ver
    2010
    Posts
    2

    Re: To make a formula to calculate items sold by each sales person.

    Columns A:B contain a list of items sold and the ID of the salesperson who sold each of them.
    We want to count the number of different items sold by each salesperson listed in column D.

    Solution:

    Use the SUM, MMULT, IF, and TRANSPOSE functions as shown in the following Array formula:
    {=SUM(($A$2:$A$13=D2)/(($A$2:$A$13<>D2)+MMULT(--(IF($A$2:$A$13=D2,$B$2:$B$13)=TRANSPOSE($B$2:$B$13)),--($A$2:$A$13=D2))))}

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: To make a formula to calculate items sold by each sales person.

    Copying the dates from post #4 into Excel converted them to Excel dates automatically.

    Use Data ==> Text to Columns to covert to dates: Select Date (button) in Step 3

  8. #8
    Registered User
    Join Date
    11-01-2017
    Location
    Canada
    MS-Off Ver
    7
    Posts
    5

    Re: To make a formula to calculate items sold by each sales person.

    All working now - Thanks for your help guys.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: To make a formula to calculate items sold by each sales person.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Need formula to calculate items sold x items= profit
    By MaryLouJW in forum Excel General
    Replies: 1
    Last Post: 08-01-2019, 11:14 PM
  2. Calculate Inventory and number of items sold
    By rtfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2019, 07:04 PM
  3. Replies: 2
    Last Post: 09-11-2015, 07:13 AM
  4. Replies: 1
    Last Post: 07-02-2013, 09:17 PM
  5. Calculate total adjustments for each sales person
    By Adama in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-03-2012, 07:46 AM
  6. [SOLVED] Calculate total sales adjustments for each sales person
    By Adama in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-02-2012, 06:26 PM
  7. Calculate total adjustments for each sales person
    By Adama in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2012, 02:33 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