ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I do an IF with a range? (https://www.excelbanter.com/excel-discussion-misc-queries/167389-how-do-i-do-if-range.html)

Marcelo

How do I do an IF with a range?
 
Hi,
I need to find in a range if I have a certain value (100 and <200) I was
trying =IF(AND(D3:H3100,D3:H3<200),"OK","Neg")
but it give me the error: #value!
How do I do this?
Thanks
--
Marcelo

Don Guillett

How do I do an IF with a range?
 
maybe?
=IF(AND(sum(D3:H3)=100,sum(D3:H3)<200),"OK","Neg" )


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Marcelo" wrote in message
...
Hi,
I need to find in a range if I have a certain value (100 and <200) I was
trying =IF(AND(D3:H3100,D3:H3<200),"OK","Neg")
but it give me the error: #value!
How do I do this?
Thanks
--
Marcelo



iliace

How do I do an IF with a range?
 
=IF(SUM((D3:H3100)*(D3:H3<200)),"Neg","OK")

Use Ctrl+Shift+Enter after pasting in formula bar.

On Nov 26, 3:19 pm, Marcelo wrote:
Hi,
I need to find in a range if I have a certain value (100 and <200) I was
trying =IF(AND(D3:H3100,D3:H3<200),"OK","Neg")
but it give me the error: #value!
How do I do this?
Thanks
--
Marcelo



T. Valko

How do I do an IF with a range?
 
Try this:

=IF(FREQUENCY(D3:H3,{199,100}),"OK","Neg")

--
Biff
Microsoft Excel MVP


"Marcelo" wrote in message
...
Hi,
I need to find in a range if I have a certain value (100 and <200) I was
trying =IF(AND(D3:H3100,D3:H3<200),"OK","Neg")
but it give me the error: #value!
How do I do this?
Thanks
--
Marcelo





All times are GMT +1. The time now is 09:00 PM.

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