ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   warn me when text appears (https://www.excelbanter.com/excel-worksheet-functions/22371-warn-me-when-text-appears.html)

steve

warn me when text appears
 
im trying to find out if excel will warn me if text appears in a range of
cells more than twice,, i run a fantacy league but each member can only have
two players from the same team ie leeds,mancester, liverpool. can i write a
formula that will tell me if one team appears more than twice
--
steve b

John Mansfield

Steve,

As an example, assuming your data is the range A1:A10, this formula will
return TRUE for any duplicates:

=IF(COUNTIF($A$1:$A$10, A1)1,TRUE,FALSE)

----
Regards,
John Mansfield
http://www.pdbook.com

"steve" wrote:

im trying to find out if excel will warn me if text appears in a range of
cells more than twice,, i run a fantacy league but each member can only have
two players from the same team ie leeds,mancester, liverpool. can i write a
formula that will tell me if one team appears more than twice
--
steve b


Peo Sjoblom

You might want to apply this if these entries are typed

http://www.cpearson.com/excel/NoDupEntry.htm

--
Regards,

Peo Sjoblom


"steve" wrote in message
...
im trying to find out if excel will warn me if text appears in a range of
cells more than twice,, i run a fantacy league but each member can only
have
two players from the same team ie leeds,mancester, liverpool. can i write
a
formula that will tell me if one team appears more than twice
--
steve b




Bob Phillips

You could use the formula

COUNTIF($A$1:$A$10, A1)1

with conditional formatting

--

HTH

RP
(remove nothere from the email address if mailing direct)


"John Mansfield" wrote in message
...
Steve,

As an example, assuming your data is the range A1:A10, this formula will
return TRUE for any duplicates:

=IF(COUNTIF($A$1:$A$10, A1)1,TRUE,FALSE)

----
Regards,
John Mansfield
http://www.pdbook.com

"steve" wrote:

im trying to find out if excel will warn me if text appears in a range

of
cells more than twice,, i run a fantacy league but each member can only

have
two players from the same team ie leeds,mancester, liverpool. can i

write a
formula that will tell me if one team appears more than twice
--
steve b







All times are GMT +1. The time now is 10:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com