Hi. Essentially I have a spreadsheet that I have tables in. For examples purposes all names of tables will be alphabetical. I have Sheet 1 (a directory) with a list of a business including their contact info. On sheet 2 i have created a table for each business I will link to Sheet 1, these tables include rows with the business hours. Example:
COLUMN A | COLUMN B | COLUMN C
MONDAY | 07:30 | 16:30 |
TUESDAY| 07:30 | 16:30 |
WEDNESDAY | 07:30 | 16:30 |
ETC
ETC
SATURDAY | CLOSED |
Sheet 1 will look like this (The main sheet)
BUSINESS NAME | TODAY | column C | CONTACT
BUSINESS DEPOT | (INSERT HOURS FROM SHEET 2) | If statement | PHONE #
STATE FARM | (INSERT HOURS FROM SHEET 2) | IF statement | PHONE #
WALMART | (INSTERT HOURS OF WALMART FROM SHEET 2) | IF statement | PHONE #
ETC
---------
I'm good with the contact info. However my main goal is to have an if statement for row c on sheet 1 table. If the hours of the current day and time correlate with the hours of the business operation hours then say "OPEN" or "CLOSED". For example: If BUSINESS DEPOT is open from monday-fri 07:30 and closes at 16:30 and the current time of the day [AKA now()] is within that range then return "OPEN" in COUMN C of SHEET 1. If it is not open because the current day is sunday then return "CLOSE" in COLUMN C of SHEET 1. I was doing good but HLOOKUP got me confused. So far I have to do something but doesn't help at all. I basically want COLUMN B of SHEET 1 to list the current days operation hours of that specific business. So if I am looking at the spreadsheet at 16:35 of a Monday I want SHEET 1 to look like this:
BUSINESS DEPOT | 07:30-16:30 | OPEN | PHONE | 123-456-7890
But if I'm looking at the same sheet on a saturday I want it to return this:
BUSINESS DEPOT | | CLOSED | PHONE | 123-456-6907
I was doing good until the if statement included the weekends and I had to start incorporating HLOOKUP which got me really messed up. If any of this makes sense please help me out!
Bookmarks