=countif($f$2:$f100, f100)<2

rentonhighlands

Board Regular
Joined
Jul 31, 2014
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Members:
Can you explain in words what this formula is doing.
What I have is a list of values and in the same list there are duplicates. What the formula returns is always the first instance of the duplicate (true) then the rest (false).

But can you explain logically what the formula is doing?

=COUNTIF($F$2:$F100, F100)<2
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

It simply counts the number of occurrences of each value in Col F, the 1st occurrence will be less than 2, so True, any other occurrence will Greater than 1, so False.

Hth

Gaz
 
Upvote 0
No, if you look the 1st instance of the formula, it will say $F$2:$F2, then $F$2:$F3, this allows it to COUNT each instance it occurs. If you remove the $ then it will show F2:F2 then F3:F3, so each instance will be the 1st.

Gaz
 
Upvote 0
=COUNTIF($F$2:$F100, F100)

counts how often F100 occurs in F2:F100, and

=COUNTIF($F$2:$F100, F100)<2

returns TRUE if the count is less than 2.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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