Formula to determine if a date and time are within a range.

patrick_oneal

New Member
Joined
Nov 14, 2016
Messages
12
Hello,

Completely stumped here. Thought I would take a change and add some experts.

I need to be able to reference a table that is attached as an image. I need a formula that can read a cell that says "44027 11:00" find where it is on the reference table and return the code associated with the day. The difficult thing is that the 44027 11:00 is the result of other formulas so I don't know if that is why it is throwing my search results.
 

Attachments

  • Ref Table.PNG
    Ref Table.PNG
    15.6 KB · Views: 9

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
The difficult thing is that the 44027 11:00 is the result of other formulas so I don't know if that is why it is throwing my search results.
If "44027 11:00" is in one cell, your formulas probably aren't set up in a way they supposed to. The number 44027 is (as a date) equal to July 15, 2020. If the intention is to populate that particular cell with "July 15, 2020 11:00" the outcome should be (as a number) 44027.4583333333
The formatting of a cell determines if Excel treats a number as a number or as a date & time.
 
Last edited:
Upvote 0
Your date 44027 11:00 is invalid. Whatever formula is reporting it needs to be adjusted to report a decimal number. 44027 11:00 should be 43845.45833

Try this:

MrExcel posts18.xlsx
ABCDEF
1startendcodelookup datecode
21/1/20 10:00 AM1/2/20 9:59 AMa144027 11:00#N/A
31/2/20 10:00 AM1/3/20 9:59 AMa21/15/20 11:00 AMa15
41/3/20 10:00 AM1/4/20 9:59 AMa343845.45833a15
51/4/20 10:00 AM1/5/20 9:59 AMa47/15/20 11:00 AMa20
61/5/20 10:00 AM1/6/20 9:59 AMa544027.45833a20
71/6/20 10:00 AM1/7/20 9:59 AMa6
81/7/20 10:00 AM1/8/20 9:59 AMa7
91/8/20 10:00 AM1/9/20 9:59 AMa8
101/9/20 10:00 AM1/10/20 9:59 AMa9
111/10/20 10:00 AM1/11/20 9:59 AMa10
121/11/20 10:00 AM1/12/20 9:59 AMa11
131/12/20 10:00 AM1/13/20 9:59 AMa12
141/13/20 10:00 AM1/14/20 9:59 AMa13
151/14/20 10:00 AM1/15/20 9:59 AMa14
161/15/20 10:00 AM1/16/20 9:59 AMa15
171/16/20 10:00 AM1/17/20 9:59 AMa16
181/17/20 10:00 AM1/18/20 9:59 AMa17
191/18/20 10:00 AM1/19/20 9:59 AMa18
201/19/20 10:00 AM1/20/20 9:59 AMa19
211/20/20 10:00 AM1/21/20 9:59 AMa20
Sheet37
Cell Formulas
RangeFormula
E4,E6E4=E3
F2F2=VLOOKUP(E2,A2:C21,3)
F3F3=VLOOKUP(E3,A2:C21,3)
F4F4=VLOOKUP(E4,A2:C21,3)
F5F5=VLOOKUP(E5,A2:C21,3)
F6F6=VLOOKUP(E6,A2:C21,3)
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

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