Ratio on/off time formula

Dairy

New Member
Joined
Jul 26, 2005
Messages
24
Having a mathematical brain block this morning.

(A1)20, (B1)20, (C1)6

So A1 is the on time in minutes, B1 is the off time in minutes and C1 is the total run time in hours. I can't figure out a formula to show total run time over 6 hours which should come to 180 minutes or 3 hours. Any ideas?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I don't think that works if there are not an integer number of cycles.

=A1 * INT(60*C1/(A1+B1)) + MIN(A1, 60*MOD(60*C1/(A1+B1), 1))

EDIT: Not sure that is correct either ...
 
Upvote 0
Thanks shg

Another formula for my collection.

I'm gonna appear quite clever soon...well maybe not soon
 
Upvote 0
Don't save that one! This one has the added benefit being being correct (I think):

=INT(60*C1/(A1+B1))*A1 + MIN(A1, MOD(60*C1/(A1+B1), 1) * (A1+B1))
 
Upvote 0
Ive copied over the other one this assumes that for instance if a cycle finishes with worked time at say 55mins then it just allows for 5 mins off as apposed to 25 dont change it again I'll run out of ink
 
Upvote 0
Amazing stuff can't thank you all enough.

I'll use this to help me calculate application rates for an effluent irrigator. We change the ratio in the parameters settings in the computer, depending on the weather conditions but knowing exactly what we're applying can mean a bit of head scratching.

Over application can and does result in heavy court fines and worst case imprisonment. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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