If function with certain condition

P

Pran

I have 4 cells,

if 1st cell has number, then result is "A"
if 1st & 2nd cell has number, then result is "B"
if 1st,2nd & 3rd has number, then result is "C"
if all cells has number, result is "D"

How can i make this function?

Regards,
 
J

JoeU2004

Pran said:
I have 4 cells,
if 1st cell has number, then result is "A"
if 1st & 2nd cell has number, then result is "B"
if 1st,2nd & 3rd has number, then result is "C"
if all cells has number, result is "D"
How can i make this function?

=IF(ISNUMBER(A1),IF(ISNUMBER(A2),IF(ISNUMBER(A3),IF(ISNUMBER(A4),"D","C"),"B"),"A"),"in
process")
 
J

JoeU2004

PS....
=IF(ISNUMBER(A1),IF(ISNUMBER(A2),IF(ISNUMBER(A3),IF(ISNUMBER(A4),"D","C"),"B"),"A"),
"in process")

If you will ensure that A2 will not have a number unless A1 does, and A3
will not have a number unless A1 and A2 do, and A4 will not have a number
unless A1, A2 and A3 do -- that is, A1:A4 are filled in in sequence, as
dates of completion of sequential stages -- then:

=CHOOSE(1+SUMPRODUCT(--ISNUMBER(A1:A4)), "in process", "A", "B", "C", "D")


----- original message -----
 
P

Pran

Both formula WORK,

Many thx bro,
Pran,


JoeU2004 said:
PS....


If you will ensure that A2 will not have a number unless A1 does, and A3
will not have a number unless A1 and A2 do, and A4 will not have a number
unless A1, A2 and A3 do -- that is, A1:A4 are filled in in sequence, as
dates of completion of sequential stages -- then:

=CHOOSE(1+SUMPRODUCT(--ISNUMBER(A1:A4)), "in process", "A", "B", "C", "D")


----- original message -----
 

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