How to count Specific name for a Specific Date Range

Seifeddine87

Board Regular
Joined
Sep 7, 2015
Messages
128
Office Version
  1. 2016
  2. 2011
  3. 2010
hi i have been trying to do this for few hours and i just give up i know you gays you could do it with your eyes closed :)

1) i want to know how many Specific item has been sold in Specific Date Range
2) i want to know total profit in Specific item has been sold in Specific Date Range

Example

ABCDEFGHI
1CodeDateStock NoProfitStart Date End Date
2311905/04/19
405501/04/1901/05/19
3449505/04/197556
4449705/04/1940452Stock NoSold itemsProfit
5466206/04/19541240=?????=?????
6358007/04/194525751
56
7444608/04/1945120452145
8378308/05/19453054112
9155208/05/194038
10855608/05/197575

<tbody>
</tbody>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
if any one know if there is a way round it or if any one got different strategy i could use to make it happen thank you
 
Upvote 0
Put this formula in cell F5...

=COUNTIFS(C$2:C$10,E5,B$2:B$10,">="&E$2,B$2:B$10,"<="&F$2)

and this formula in cell G5...

=SUMIFS(D$2:D$10,C$2:C$10,E5,B$2:B$10,">="&E$2,B$2:B$10,"<="&F$2)

and then copy them down to the end of your data.

NOTE: Change the red row numbers to a row number that is equal to or greater than the actual row number for your last data item.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,175
Members
448,870
Latest member
max_pedreira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top