ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Check that all cells in a range have same values (https://www.excelbanter.com/excel-programming/393122-check-all-cells-range-have-same-values.html)

Finny388

Check that all cells in a range have same values
 
All the formulas I can find pertain to only checking one cell agains
another:
EXACT() - "Compares two text strings and returns TRUE if they are
exactly the same..."

Is there no formula to compare several strings? Seems silly.

2007 only has 5 new formulas? yikes.


Bernie Deitrick

Check that all cells in a range have same values
 
Finny,

=IF(COUNTIF(A:A,A1)=COUNTA(A:A),"ALL are the same","NOT all are the same")

can be used to tell if all the entries in column A are all the same.

HTH,
Bernie
MS Excel MVP


"Finny388" wrote in message
ups.com...
All the formulas I can find pertain to only checking one cell agains
another:
EXACT() - "Compares two text strings and returns TRUE if they are
exactly the same..."

Is there no formula to compare several strings? Seems silly.

2007 only has 5 new formulas? yikes.




Finny388

Check that all cells in a range have same values
 
On Jul 11, 9:32 am, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
Finny,

=IF(COUNTIF(A:A,A1)=COUNTA(A:A),"ALL are the same","NOT all are the same")

can be used to tell if all the entries in column A are all the same.

HTH,
Bernie
MS Excel MVP

"Finny388" wrote in message

ups.com...

All the formulas I can find pertain to only checking one cell agains
another:
EXACT() - "Compares two text strings and returns TRUE if they are
exactly the same..."


Is there no formula to compare several strings? Seems silly.


2007 only has 5 new formulas? yikes.


thanks! nice work!



All times are GMT +1. The time now is 01:31 PM.

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