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
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
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)
Last edited by JohnTopley; 03-17-2021 at 04:01 PM.
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
Excel 2016 (Windows) 32 bit
F G 1Sales person name 2Robert =COUNTIFS($A$2:$A$30,F2,$C$2:$C$30,">="&DATE(2020,12,1),$C$2:$C$30,"<="&DATE(2020,12,15)) 3Patrick =COUNTIFS($A$2:$A$30,F3,$C$2:$C$30,">="&DATE(2020,12,1),$C$2:$C$30,"<="&DATE(2020,12,15)) 4Dwain =COUNTIFS($A$2:$A$30,F4,$C$2:$C$30,">="&DATE(2020,12,1),$C$2:$C$30,"<="&DATE(2020,12,15)) 5Hero =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
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.
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))))}
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
All working now - Thanks for your help guys.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks