#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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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