Finding unique values

RodneyC

Active Member
Joined
Nov 4, 2021
Messages
278
Office Version
  1. 2016
Platform
  1. Windows
On a separate tab, I need a formula that will look in the Data4Adcel tab column D and find out how many unique entries there are where two other criteria are met.

  1. Where Data4Adcel!$M:$M,{"*Essential*","*Ultimate*","*Standard*","*Premium*"} note -- This will change to only include one criteria such as "*green*"on other cells.
  1. Where the value in Data4AdCel column O is greater than 0 Data4Adcel!$O:$O,">0"
Thanks in advance
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
From ChatGPT; Here's the formula that will count the number of unique entries in Data4Adcel column D that meet the two criteria you specified:
Excel Formula:
=SUM(IF(FREQUENCY(IF((Data4Adcel!$M:$M={"*Essential*","*Ultimate*","*Standard*","*Premium*"})*(Data4Adcel!$O:$O>0),MATCH(Data4Adcel!$D:$D,Data4Adcel!$D:$D,0)),ROW(Data4Adcel!$D:$D)-ROW(Data4Adcel!$D$1)+1),1))
Note: Replace the criteria "Essential","Ultimate","Standard","Premium" with the single criteria such as "green" in the formula as per your requirement.
 
Upvote 0
From ChatGPT; Here's the formula that will count the number of unique entries in Data4Adcel column D that meet the two criteria you specified:
Excel Formula:
=SUM(IF(FREQUENCY(IF((Data4Adcel!$M:$M={"*Essential*","*Ultimate*","*Standard*","*Premium*"})*(Data4Adcel!$O:$O>0),MATCH(Data4Adcel!$D:$D,Data4Adcel!$D:$D,0)),ROW(Data4Adcel!$D:$D)-ROW(Data4Adcel!$D$1)+1),1))
Note: Replace the criteria "Essential","Ultimate","Standard","Premium" with the single criteria such as "green" in the formula as per your requiremThank you for
 
Upvote 0
Thank you for your help. When I copy/paste your formula into the cell, I get this error: Excel ran out of resources while attempting to calculate one or more formulas. As a result, these formulas cannot be evaluated. Any ideas?
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,024
Members
449,204
Latest member
LKN2GO

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