brain freeze on simple formula, help!

t0aster_uk

New Member
Joined
Dec 23, 2004
Messages
6
Hi,

I am sure there is a simple way to do this but i cannot think of it, or find it using a search

basically i have a load of columns whose cells contain one of two values either true or false. I need to come up with a formula that will check an entire column
and if any of the cells contain "true" then return true, or if none of the columns contain "true" then return False. this is for working with intollerance data...

I tried using if with an array but it doesnt seem to work as planned:

{=IF(R7:R30="TRUE","TRUE","FALSE")}

Thanks

T0aster_uk
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

jindon

MrExcel MVP
Joined
Aug 21, 2004
Messages
16,995
Hi

try

=If(Countif(R7:R30,"True")>0,"True","False")

rds,

jindon
 

howzat

Board Regular
Joined
Oct 13, 2003
Messages
144
Hi there,

A vlookup or match formula including an =ISNA() evaluation would also do the trick.

Here's another approach:

=NOT(PRODUCT(--NOT(R7:R30)))

Array entered
 

Forum statistics

Threads
1,148,526
Messages
5,747,211
Members
424,068
Latest member
Salim khamis

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
Top