What's wrong with this formula?

R

Ray

=IF(B27>0,+B27:B32-B28,"")
Working with numbers only. If false I want the cell to be blank.
I'm getting ####
Doesn't help to widen cell
format of cell is general
Thanks
 
P

Pete_UK

Are you trying to add the numbers B27 to B32, omitting B28 ?

If so, try this:

=IF(B27>0,SUM(B27:B32)-B28,"")

Hope this helps.

Pete
 
F

Fred Smith

It would help if you told us what you want to accomplish.

You cannot use the range B27:B32 that way. Do you perhaps want:
=if(b27>0,b27-b28,"")
or,
=if(b27>0,b27-b32-b28,"")
?

Regards,
Fred
 
R

Ray

That worked!!
Thank you very much!!

Pete_UK said:
Are you trying to add the numbers B27 to B32, omitting B28 ?

If so, try this:

=IF(B27>0,SUM(B27:B32)-B28,"")

Hope this helps.

Pete



.
 

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