• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 33
  • Last Modified:

Excel formul if else

Hi
My brain is just not working today - been a long week

I need this formula please to always equal 0 if G9 is less than zero  

=IF(H9=TRUE,G9,1000)

So something like    if G9<0,0   else  =IF(H9=TRUE,G9,1000)

Thanks
0
RichardAtk
Asked:
RichardAtk
1 Solution
 
NorieVBA ExpertCommented:
Perhaps.

 =IF(H9=TRUE,MAX(0,G9),1000)
1
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Or you may try nested Ifs like below...

=IF(G9<0,0,IF(H9=TRUE,G9,1000))

Open in new window

0
 
RichardAtkAuthor Commented:
=IF(H907=FALSE,1000,IF(G907<0,0,IF(H907=TRUE,G907,1000)))  

 I came up with this in the end thanks based around your solution many thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now