Need help with getting rid of a circular reference, or better setting this one up.

Greg_2

New Member
Joined
Jul 4, 2011
Messages
2
Without going into too much detail of the process, the tool I am designing allows the supervisors of a net repair shop calculate how long each panel will take to complete, and what time the net will be completed at.

To calculate the time, the supervisor enters in information on each panel, and then it gets formatted as you see in the picture below. They enter the time of day repairs started on the net, and then the hours to complete for Panel 1 are added to that to get a completion time for Panel 1. Then the hours to complete for Panel 2 are added to the completion time for Panel 1 to get a completion time for Panel 2 etc.

X57aF.png


The trouble I am running into, is accounting for the daily breaks an employee has during the day. They have 3 fifteen minute breaks at 10am, 3pm and 5pm, and a thirty minute break at 12pm. The thing to keep in mind is that if a panel's hours to complete span more than one break, they all have to be added on to the time. For example, if Panel 3 is started at 9:48am, and will take "2:30" to complete, the completion time should be 1:03pm, not 12:18pm. This takes into account the 45 minutes of break between 9:48am and 12:18pm.

At the moment, I have a rather large If/And formula, structured so that if the previous cell is less than a break time start, and the time in the current cell is greater than a break start time, the appropriate amount of time will be added to the current cell. This of course creates a circular reference, which is where I am running into trouble.

Here is my current If structure:

Code:
=(IF(AND(T14<=Standards!$E$2,U14>=Standards!$E$5),U14+SUM(Standards!$G$2:Standards!$G$5),IF(AND(T14<=Standards!$E$2,U14>=Standards!$E$4),U14+SUM(Standards!$G$2:Standards!$G$4),IF(AND(T14<=Standards!$E$2,U14>=Standards!$E$3),U14+SUM(Standards!$G$2:Standards!$G$3),IF(AND(T14<=Standards!$E$2,U14>=Standards!$E$2),U14+ Standards!$G$2,IF(AND(T14<= Standards!$E$3,U14>= Standards!$E$5),U14+SUM(Standards!$G$2:Standards!$G$4),IF(AND(T14<= Standards!$E$3,U14>= Standards!$E$4),U14+SUM(Standards!$G$2:Standards!$G$3),IF(AND(T14<= Standards!$E$3,U14>= Standards!$E$3),U14+ Standards!$G$3,IF(AND(T14<= Standards!$E$4,U14>= Standards!$E$5),U14+SUM(Standards!$G$4:Standards!$G$5),IF(AND(T14<= Standards!$E$4,U14>= Standards!$E$4),U14+ Standards!$G$4,IF(AND(T14<= Standards!$E$5,U14>= Standards!$E$5),U14+Standards!$G$5, T14+U13)))))))))))

And this is what standards it is drawing from:

bYtKg.png


If anyone has any ideas on how to accomplish this without a circular reference, or has advice on how best to set this circular reference up, your feedback would be appreciated.

Let me know if there is anything I left out, or something you would like explained further!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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