Hi All,
I using an Excel Function Formula where I am trying to achieve a particular outcome. The current Formula looks like this:
=SUMPRODUCT(--(COUNTIF(O3:Y3,$O$4:$Y$4)>0))
I have two sets of data as per Example 1 below:
1. Range Data
2. Criteria Data
What I am currently doing is counting the unique only appearances found
in the Range Data against the Criteria Data
So for example the count of those events from the above data would = 7
Broken down as follows:
Range Data 200 Count = 1 (even though it appears more than once in the
Range Data Table we are only counting its unique
appearance against the Criteria Table
Therefore for the other Data in the Range Data Table we have:
300 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
400 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
500 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
600 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
70 - appears once in Range Data Table but no appearance in the Criteria Data Table Count = 0
800 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
99 - appears twice in Range Data Table but appears in the Criteria Data Table Count = 1
111 - appears once in Range Data Table but no appearance in the Criteria Data Table Count = 0
This all works fine with Contiguous Criteria Data but what I would like to achieve is to
select non adjacent Criteria Data and perform the same Unqiue Count as above
For example as per the Image below:
In this example I have selected Criteria Values of "120","200", "500", "300", and "800" highlighted in Orange and
resulting in a Unique Count of "4"
I look forward in hearing from someone around this request
Regards
I using an Excel Function Formula where I am trying to achieve a particular outcome. The current Formula looks like this:
=SUMPRODUCT(--(COUNTIF(O3:Y3,$O$4:$Y$4)>0))
I have two sets of data as per Example 1 below:
1. Range Data
2. Criteria Data
What I am currently doing is counting the unique only appearances found
in the Range Data against the Criteria Data
So for example the count of those events from the above data would = 7
Broken down as follows:
Range Data 200 Count = 1 (even though it appears more than once in the
Range Data Table we are only counting its unique
appearance against the Criteria Table
Therefore for the other Data in the Range Data Table we have:
300 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
400 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
500 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
600 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
70 - appears once in Range Data Table but no appearance in the Criteria Data Table Count = 0
800 - appears once in Range Data Table but appears in the Criteria Data Table Count = 1
99 - appears twice in Range Data Table but appears in the Criteria Data Table Count = 1
111 - appears once in Range Data Table but no appearance in the Criteria Data Table Count = 0
This all works fine with Contiguous Criteria Data but what I would like to achieve is to
select non adjacent Criteria Data and perform the same Unqiue Count as above
For example as per the Image below:
In this example I have selected Criteria Values of "120","200", "500", "300", and "800" highlighted in Orange and
resulting in a Unique Count of "4"
I look forward in hearing from someone around this request
Regards