If Function Greater than Less Than

S

Sher10

Hello, I was hoping someone can help me. I am preparing a banking sprea
sheet and I want a comment to appear if the variance is Greater than $
or greater than ($5). I have used the formula

=if(and(m18<-5, M18>5), "PROVIDE COMMENT", "")

I know the formula is close but not quite there.

Can someone please help.

Ie if my variance is $9.60 the cell needs to return "PROVIDE COMMENT"
if my variance is ($6.50) the cell needs to retun "PROVIDE COMMENT
 
J

joeu2004

Sher10 said:
I want a comment to appear if the variance is Greater
than $5 or greater than ($5). I have used the formula
=if(and(m18<-5, M18>5), "PROVIDE COMMENT", "")

Ostensibly, change "AND" to "OR", to wit:

=if(or(m18<-5,m18>5),"...comment...","")

Alternatively, you could write:

=if(abs(m18)>5,"...comment...","")
 
S

Sher10

Thankyou so much. That worked perfectly.

'joeu2004[_2_ said:
;1599871']"Sher10 said:
I want a comment to appear if the variance is Greater
than $5 or greater than ($5). I have used the formula
=if(and(m18<-5, M18>5), "PROVIDE COMMENT", "")-

Ostensibly, change "AND" to "OR", to wit:

=if(or(m18<-5,m18>5),"...comment...","")

Alternatively, you could write:

=if(abs(m18)>5,"...comment...",""
 

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