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

rentonhighlands

Board Regular
Joined
Jul 31, 2014
Messages
110
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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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