Is it possible to write a formula that will return operating hours based on the data below? I would like the results to say reflect the open hours for example the deli results would say 8am-1pm
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]7am[/TD]
[TD]8am[/TD]
[TD]9am[/TD]
[TD]10am[/TD]
[TD]11am[/TD]
[TD]12pm[/TD]
[TD]1pm[/TD]
[TD]2pm[/TD]
[TD]3pm[/TD]
[TD]4pm[/TD]
[/TR]
[TR]
[TD]Deli[/TD]
[TD]closed[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[/TR]
[TR]
[TD]Buffet[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Results[/TD]
[/TR]
[TR]
[TD]Deli[/TD]
[TD]8am-1pm[/TD]
[/TR]
[TR]
[TD]Buffet[/TD]
[TD]7am-12pm[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]7am[/TD]
[TD]8am[/TD]
[TD]9am[/TD]
[TD]10am[/TD]
[TD]11am[/TD]
[TD]12pm[/TD]
[TD]1pm[/TD]
[TD]2pm[/TD]
[TD]3pm[/TD]
[TD]4pm[/TD]
[/TR]
[TR]
[TD]Deli[/TD]
[TD]closed[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[/TR]
[TR]
[TD]Buffet[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]open[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[TD]closed[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Results[/TD]
[/TR]
[TR]
[TD]Deli[/TD]
[TD]8am-1pm[/TD]
[/TR]
[TR]
[TD]Buffet[/TD]
[TD]7am-12pm[/TD]
[/TR]
</tbody>[/TABLE]