Display and count unique values in date range

alfik1

New Member
Joined
Jun 10, 2016
Messages
14
Hi all,

Im standing in front of the task (see picture attached) and I cannot to figure it out . Does anybody has idea how to achieve desired result based on the criterias defined?
The result should be done by fromula, not by pivot or vba. If possible, do not use any formula in data table...
Im using excel 2016
Many thanx for any idea

 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Maybe...


A
B
C
D
E
F
G
H
I
1
Data​
Results​
2
A​
B​
From​
01/02/2018​
A​
B​
3
111​
01/02/2018​
Till​
06/02/2018​
111​
2​
4
222​
02/02/2018​
222​
4​
5
222​
03/02/2018​
-​
-​
6
222​
04/02/2018​
-​
-​
7
222​
05/02/2018​
-​
-​
8
111​
06/02/2018​
-​
-​
9
111​
07/02/2018​
-​
-​
10
333​
08/02/2018​
-​
-​
11
222​
09/02/2018​
-​
-​
12
222​
10/02/2018​
-​
-​
13

Array formula in H3 copied down
=IFERROR(INDEX(Data[A],SMALL(IF(FREQUENCY(IF(Data>=$F$2,IF(Data<=$F$3,MATCH(Data[A],Data[A],0))),ROW(Data[A])-MIN(ROW(Data[A]))+1),ROW(Data[A])-MIN(ROW(Data[A]))+1),ROWS(H$3:H3))),"-")
confirmed with Ctrl+Shift+Enter, not just Enter

Formula I3 copied down
=IF(H3="-","-",COUNTIFS(Data[A],H3,Data,">="&$F$2,Data,"<="&$F$3))

Hope this helps

M.
 
Upvote 0
Hi Phil,

I think function SUMIF() wont be enough, because I dont know the criterium (exact value) needed for this calculation.
I need to implement also LARGE function probably.
Also some other functions to have required result :confused:
 
Upvote 0
Hi Phil,

I think function SUMIF() wont be enough, because I dont know the criterium (exact value) needed for this calculation.
I need to implement also LARGE function probably.
Also some other functions to have required result :confused:

Have you tried the formulas in post 3?

M.
 
Upvote 0
Have you tried the formulas in post 3?

M.

Hi Marcelo, yes I already tried this formula.
On the picture you can see the result.
I substituted SMALL function with LARGE to have top 10 list, but it is sorting on base of values in the cells of data A. I would like to sort them on base how many times appears - see desired result in tle picture. Is it possible?

 
Upvote 0
No, but to put in descending order the top 10 requires a very complicated formula.
A helper column would be acceptable?

M.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

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