count number of voucher per day

yky

Well-known Member
Joined
Jun 7, 2011
Messages
1,881
Office Version
  1. 2010
Platform
  1. Windows
I have sales data which I need to count the number of voucher for each day. Is there a formula to do so?

Desired outcome: 4-5-0-3-2 for the five days.

DATE VOUCHER NO.
1-Oct-16091
1-Oct-16092
1-Oct-16093
1-Oct-16094
1-Oct-16094
2-Oct-16095
2-Oct-16095
2-Oct-16096
2-Oct-16096
2-Oct-16097
2-Oct-16097
2-Oct-16098
2-Oct-16099
3-Oct-16
4-Oct-16100
4-Oct-16001
4-Oct-16002
4-Oct-16002
5-Oct-16003
5-Oct-16003
5-Oct-16003
5-Oct-16003
5-Oct-16004

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I have sales data which I need to count the number of voucher for each day. Is there a formula to do so?

Desired outcome: 4-5-0-3-2 for the five days.

DATE VOUCHER NO.
1-Oct-16091
1-Oct-16092
1-Oct-16093
1-Oct-16094
1-Oct-16094
2-Oct-16095
2-Oct-16095
2-Oct-16096
2-Oct-16096
2-Oct-16097
2-Oct-16097
2-Oct-16098
2-Oct-16099
3-Oct-16
4-Oct-16100
4-Oct-16001
4-Oct-16002
4-Oct-16002
5-Oct-16003
5-Oct-16003
5-Oct-16003
5-Oct-16003
5-Oct-16004

<tbody>
</tbody>

=IFERROR(SUM(IF($A$2:$A$24=$F2, 1/(COUNTIFS($A$2:$A$24, $F2, $B$2:$B$24, $B$2:$B$24)), 0)),0) press CTRL+SHIFT+ENTER
 
  • Like
Reactions: yky
Upvote 0
A
B
C
D
E
F
G
1
1-Oct-16​
91​
1-Oct-16​
4​
2
1-Oct-16​
92​
2-Oct-16​
5​
3
1-Oct-16​
93​
3-Oct-16​
0​
4
1-Oct-16​
94​
4-Oct-16​
3​
5
1-Oct-16​
94​
5-Oct-16​
2​
6
2-Oct-16​
95​
7
2-Oct-16​
95​
8
2-Oct-16​
96​
9
2-Oct-16​
96​
10
2-Oct-16​
97​
11
2-Oct-16​
97​
12
2-Oct-16​
98​
13
2-Oct-16​
99​
14
3-Oct-16​
15
4-Oct-16​
100​
16
4-Oct-16​
1​
17
4-Oct-16​
2​
18
4-Oct-16​
2​
19
5-Oct-16​
3​
20
5-Oct-16​
3​
21
5-Oct-16​
3​
22
5-Oct-16​
3​
23
5-Oct-16​
4​

<tbody>
</tbody>


g1=SUM(IF(FREQUENCY(IF($A$1:$A$23=E1,IF($B$1:$B$23<>"",$B$1:$B$23)),$B$1:$B$23),1)) control +shift+enter copy down

After you type in the formula, don't just press enter.
Instead, press CTRL + SHIFT + ENTER


If you've already entered the formula, then highlight the cell with the formula and press F2.
Then press CTRL + SHIFT + ENTER



 
Last edited:
  • Like
Reactions: yky
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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