function to return positive number or zero

  • Thread starter Michael McClellan
  • Start date
M

Michael McClellan

OK Gurus, here is a good one.

I need a function in excel that will return a number if the number in
question is positive, but if the number is negative will return zero.
Is there a function like this?

I need to put this into a formula, so no macros please.

Thanks.

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
N

Norman Jones

Hi Michael,

Perhaps: = If(A1>0,A1,0)

entered in B1.

As you don't want a macro solution, I am intrigued as to why you post to a
programming group.
 
D

Dave Peterson

=max(a1,0)

Why not post a formula question in the worksheet.functions newsgroup?
 

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

Similar Threads


Top