Formula True or False

kbendelac

New Member
Joined
Aug 9, 2020
Messages
36
Office Version
  1. 2019
Platform
  1. Windows
I am looking for a formula for a range of cells less than 0 to return the value as either True of false

=COUNTA(BB6,BF6,BJ6,BN6,BR6)>0
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
T202011b.xlsm
B
2TRUE
3c
Cell Formulas
RangeFormula
B2B2=COUNTA(BB6,BF6,BJ6,BN6,BR6)=0


N.B. Your question states less than 0
If they are all blank Counta yields 0
 
Upvote 0
Thanks, should I be using COUNTIF less than 0 to return the string as either true or false?
 
Upvote 0
Are you trying to count the number of cells in the range that are less than 0 or evaluate each as T/F?
=BB6<0 or something like =COUNTIF(BB6:BR6,"<0")
 
Upvote 0
I am trying to compare 5 different cells that contain a number and determine of those cells if there are any zeros by returning the value with true/false
 
Upvote 0
Sorry I just realized that I should be using the IF formula. I was able to have the formula work for one cell =IF(BB6>0, "TRUE", "FALSE"), but now I need to add the rest of the string.

BB6,BF6,BJ6,BN6,BR6
 
Upvote 0
If they're all numbers, then:

=BB6*BF6*BJ6*BN6*BR6=0

If there could be spaces or letters,

=SUM(COUNTIF(OFFSET(BB6,0,{0,4,8,12,16}),0))>0

These both return TRUE if there are any zeros.
 
Upvote 0
Your question is unclear.

You could show some examples of what you are have and expected results.
Review the following:

T202011b (version 1).xlsb
AB
16TRUE
3c
Cell Formulas
RangeFormula
B1B1=A1>0
 
Upvote 0
Sorry I just realized that I should be using the IF formula. I was able to have the formula work for one cell =IF(BB6>0, "TRUE", "FALSE"), but now I need to add the rest of the string.

BB6,BF6,BJ6,BN6,BR6
If they're all numbers, then:

=BB6*BF6*BJ6*BN6*BR6=0

If there could be spaces or letters,

=SUM(COUNTIF(OFFSET(BB6,0,{0,4,8,12,16}),0))>0

These both return TRUE if there are any zeros.
Yes, this worked perfect! Thank you
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,039
Members
448,940
Latest member
mdusw

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