I think I would just use the cell references as the formula is much simpler, but would this suffice if you really want to use the named ranges?
D2 would house a manual "N/A"
D3 copied down.
Delay
<colgroup><col style="font-weight:bold; width:30px; "><col style="width:51px;"><col style="width:71px;"><col style="width:70px;"><col style="width:52px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="align: right"]Event[/TD]
[TD="align: right"]StarTime[/TD]
[TD="align: right"]EndTime[/TD]
[TD="align: right"]Delay[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10:00[/TD]
[TD="align: right"]11:00[/TD]
[TD="align: right"]N/A[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]11:05[/TD]
[TD="align: right"]11:15[/TD]
[TD="align: right"]0:05[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]11:30[/TD]
[TD="align: right"]12:10[/TD]
[TD="align: right"]0:15[/TD]
</tbody>
Spreadsheet Formulas |
Cell | Formula | D3 | =INDEX(StartTime,ROWS(D$1:D3)-1)-INDEX(EndTime,ROWS(D$1:D3)-2) |
<tbody>
</tbody> |
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4