IF statement(?)

C

contrarian

Hi,
I'm wondering if some kind person might be able to help with a proble
I have in putting together the correct "IF" statement. I'll try and b
as clear as possible (what I'm actually trying to accmplish is prett
simple - but I can't get the formula right):

(a) Column A has numbers
(b) Column B has numbers

In the calculation column (say, column C will do!) I want it to look a
a few conditions, and if met, put a word in that column (say, "fish"!)

Let's start down the list a little way in cell C6, because it refer
back to 5 numbers in column B and 1 number in column C.

Okay, these are the simple conditions: (remember, we're starting i
cell C6)

(1) If B6 is greater than B5
(2) And B6 is also greater than A5 (next door)
(2) And B6 is also less than B4, less than B3, less than B2 and les
than B1

Then put the word "FISH" there.

I do not want it to put anything if those conditions are not met.

Does anyone know how to write the correct IF statement to do this?

(Please note: if it MUST say something when the conditions are not met
I can live with that).

Thanking you heaps,
Stev
 
G

Guest

Hi,

In C6, enter the formula
=IF(AND(B6>B5,B6>A5,B6<MIN(B1:B4)),"FISH","")

Please note that if B6 happens to be equal to one of the numbers in the
other six cells you are comparing it with, the conditions are NOT met, and
therefore the formula would return a blank in C6.

Regards,
B. R. Ramachandran
 
D

David McRitchie

Hi Steve,

C6: =IF(AND(B6>A5, B6>B5, B6<B4, B6<B3, B6< B2, B6<B1),"FISH","")

If the conditions are not met an empty string is inserted in the cell,
the cell will never test as ISBLANK because it has a formula.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top