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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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