Hi,
I work on a helpdesk and am required to calculate incident duration to determine if we have achieved or missed SLA. The sites we provide service to have non-standard hours of business (hours of operation) and am required to calculate the duration of the incident, factoring in the open and close times of the site. I created a number of formulas that calculate the incident duration relative to the hours of operation and then nested all the formulas into an IF statement. I’m calculating hundreds of incidents and so far, so good, until the client changes the hours of operation for a site, or adds a new site with new hours of operation and I have to edit a long nested formula to accommodate.
My thought was to create a VLOOKUP table with the hours of operation as the lookup value and the formulas in the array so that I could add to or edit the table, rather than the nested IF formula. Playing around with the concept I can’t get it to work, I think as the formula is “hard written” (if that’s the right terminology) so when I perform the VLookup the formula is relative to the original design, not its place in the column I’m trying to populate. Tried to fix the cell reference and build the Lookup formula to include all columns but am failing.
Is it possible to perform a Vlookup to return a formula, which in turn will perform the calculation, rather than a value?
If not, are there other options available to achieve my outcome? Essentially I don’t want to have to edit the nested formula each time the client makes a change.
Excel 2010
<tbody>
</tbody>
<tbody>
</tbody>
Thanks,
I work on a helpdesk and am required to calculate incident duration to determine if we have achieved or missed SLA. The sites we provide service to have non-standard hours of business (hours of operation) and am required to calculate the duration of the incident, factoring in the open and close times of the site. I created a number of formulas that calculate the incident duration relative to the hours of operation and then nested all the formulas into an IF statement. I’m calculating hundreds of incidents and so far, so good, until the client changes the hours of operation for a site, or adds a new site with new hours of operation and I have to edit a long nested formula to accommodate.
My thought was to create a VLOOKUP table with the hours of operation as the lookup value and the formulas in the array so that I could add to or edit the table, rather than the nested IF formula. Playing around with the concept I can’t get it to work, I think as the formula is “hard written” (if that’s the right terminology) so when I perform the VLookup the formula is relative to the original design, not its place in the column I’m trying to populate. Tried to fix the cell reference and build the Lookup formula to include all columns but am failing.
Is it possible to perform a Vlookup to return a formula, which in turn will perform the calculation, rather than a value?
If not, are there other options available to achieve my outcome? Essentially I don’t want to have to edit the nested formula each time the client makes a change.
Excel 2010
E | F | G | H | I | |
---|---|---|---|---|---|
2 | Hours of Operation | Start | Stop | Formula / Calculation | |
3 | M-F (09:00 - 16:30) | 14/04/2015 13:00 | 15/04/2015 16:30 | 660 | |
4 | M-F (09:00 - 16:30); S (10:00 - 13:00) | 14/04/2015 13:00 | 14/04/2015 16:30 | 210 | |
5 | M-F (09:00 - 16:30); S (10:00 - 14:00) | 14/04/2015 13:00 | 15/04/2015 16:30 | 660 | |
6 | M-T,R-F (09:00 - 16:30); W (09:00 - 18:30) | 14/04/2015 13:00 | 15/04/2015 16:30 | 660 | |
7 | M-W,F (09:00 - 16:30); R (09:00 - 18:30) | 14/04/2015 13:00 | 15/04/2015 16:30 | 660 |
<tbody>
</tbody>
Sheet2
Worksheet Formulas
<tbody> </tbody> |
<tbody>
</tbody>
Thanks,