#N/A Error When Formula Connected to Date Formula

marvin jones

Board Regular
Joined
Mar 16, 2016
Messages
86
Hi All,

I'm getting an error in cell AU4 with the formula =LOOKUP(2,1/(Origami!$J$2:$J$227=AR4)/(Origami!$Z$2:$Z$227=AT4)/(Origami!$BN$2:$BN$227=AS4),(Origami!W$2:W$1000)). I can see this is connected to the date formula in cell AR4. If i hard code the date in cell AR4, the formula in cell AU4 works. I have the below;

AQ4 |has formula| |AR4 =AQ4| |AU4 = formula above|
05/01/2018 11:00 |05/01/2018 #N/A

How can i get the formula to work without hard coding the dates?

Thanks,
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
The two dates are not the same.
05/01/2018 11:00 =43221.4583333333

05/01/2018 = 43221

Date and time in excel is a number. The date is the number of dates since 12/31/1899, 1/1/1900=1 1/2/1900=2 and so on. Time is part of the 24 hour day noon is .5 since it is half a day.
 
Upvote 0
The two dates are not the same.
05/01/2018 11:00 =43221.4583333333

05/01/2018 = 43221

Date and time in excel is a number. The date is the number of dates since 12/31/1899, 1/1/1900=1 1/2/1900=2 and so on. Time is part of the 24 hour day noon is .5 since it is half a day.

Ah, OK, thanks Scott. So, how do i fix this so i can get the formula to work? There must be a way!
 
Upvote 0
If 5/1/18 with no time works then the INT function will remove the decimals.
Code:
=INT(your formula that returns the date here)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,740
Messages
6,174,223
Members
452,552
Latest member
Kleets

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