Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
set logical test to see if 4 cells have same value
I am trying to write a formula in Excel that tells whether 4 cells in the
same row have the same value. The IF function is limited to 2 cells. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
set logical test to see if 4 cells have same value
The IF function is limited to 2 cells, but you can nest up to 7 IF functions
within one statement. You can also combine IF with the AND or OR functions. Try something like this: =IF(AND(A9=B9,A9=C9,A9=D9),TRUE,FALSE) Hope this is helpful. Hutch "ChrisMohler" wrote: I am trying to write a formula in Excel that tells whether 4 cells in the same row have the same value. The IF function is limited to 2 cells. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
set logical test to see if 4 cells have same value
=IF(AND(A1=B1,A1=C1,A1=D1),"YUP","NOPE")
"ChrisMohler" wrote: I am trying to write a formula in Excel that tells whether 4 cells in the same row have the same value. The IF function is limited to 2 cells. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
set logical test to see if 4 cells have same value
=countif(A1:B2,A1)=4
-- Regards, Tom Ogilvy "ChrisMohler" wrote: I am trying to write a formula in Excel that tells whether 4 cells in the same row have the same value. The IF function is limited to 2 cells. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Logical test | Excel Discussion (Misc queries) | |||
Logical Test with multiple cells | Excel Worksheet Functions | |||
Logical Test | Excel Worksheet Functions | |||
logical test | Excel Worksheet Functions | |||
Logical test | Excel Programming |