using IF & AND

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to get "1" to display in a cell if the value of L4 is 1, and the
sum of M4 & P4 is 0.(if this is false i want nothing to display).
I got as far as the following formula, but can't quite seem to get it to work.
Thanks if anybody can tell me the adjustment i need to make



=IF(=AND(L4=1,=SUM(P4,M4)=0))=1,1,"")
 
xeno said:
I am trying to get "1" to display in a cell if the value of L4 is 1, and the
sum of M4 & P4 is 0.(if this is false i want nothing to display).
I got as far as the following formula, but can't quite seem to get it to work.
Thanks if anybody can tell me the adjustment i need to make



=IF(=AND(L4=1,=SUM(P4,M4)=0))=1,1,"")


What about adding a new column called Z to add coumns M and P and then
do a simple formula IF(Z4=0,1,"") if that works, then change the column
width of Z to 0. I know the whole thing is sloppy, and not a neat
little formula, but it should work.
 
Thanks,
i will try the edited formula first, but i like your thinking, i kick myself
for not seeing it! - i am sure to find uses for this type of fix in the future
 

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

Back
Top