Use of IF(OR(

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Works for me. If I put numbers in V5, W5, and X5, I get a result
 
Upvote 0
I may have forgot to mention a step.
I want to to be able to use one or the other or both
So, if I only enter minutes I get a result, or if I only enter hours I get a result.
 
Upvote 0
Ok, so you need a formula for entered hours and a different formula for entered minutes....
maybe something like
Code:
=IF(AND(V5<>"",W5<>""), "your hr formula",IF(AND(V5<>"",X5<>""),"your minutes formula",""))
 
Upvote 0
Great! that is doing what I want, now I need the hour formula and the minute formula to add together if I use them both, right now it'll only return one value or the other.
 
Upvote 0
What are the 2 formula you are using ??
 
Upvote 0
What are the 2 formula you are using ??

=IF(AND(V5<>"",W5<>""), V5*W5,IF(AND(V5<>"",X5<>""),X5/60*V5,""))

this is from the target cell, right now if one is blank it reports the other, I want it to add the two formulas together if I so choose to use both formulas.
 
Upvote 0
Code:
=if(and(v5<>"",w5<>""), v5*w5+x5/60*v5,if(and(v5<>"",x5<>""),v5*w5+x5/60*v5,""))
 
Upvote 0
Hmmm.....simpler ???
Code:
=IF(V5="","", V5*W5+X5/60*V5)
 
Upvote 0
Code:
=if(and(v5<>"",w5<>""), v5*w5+x5/60*v5,if(and(v5<>"",x5<>""),v5*w5+x5/60*v5,""))

Perfect! Post #9 didn't cut it. I forgot to add something...
IF(A5="x")

Currently I have this:

=IF(AND,V5<>"",W5<>""), V5*W5+X5/60*V5,IF(AND(V5<>"",X5<>""),V5*W5+X5/60*V5,""))

and it works great! just need to be able to turn it on/off with a trigger from A5
 
Upvote 0

Forum statistics

Threads
1,217,355
Messages
6,136,071
Members
449,988
Latest member
Mabbas

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top