Help combine 2 formulas into 1

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

Guest

I am dumbfounded. Just could not do it to combine the following
2 formulas in cols I and J into 1 formula in col J.
Cell I5
=IF(F5<0,(INT(F5/D5)*-D5),0)
Cell J5
=if( I5>E5,E5,I5)

Thank you.
RobertR
 
Hi Robert

try
=IF(IF(F5<0,(INT(F5/D5)*-D5),0)>E5,E5,IF(F5<0,(INT(F5/D5)*-D5),0))

Cheers
JulieD
 
With nothing in I5 and this formula in J5:

=MIN(E5,IF(F5<0,(INT(F5/D5)*-D5),0))
 
JulieD and Myrna, both your speedy solutions work.
Thank you.

RobertR
 
you're welcome and thanks for the feedback (hope you went with Myrna's it's
an awful lot less typing than mine!)
 

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