date with if() is not working

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have this formula =IF(A1<1/9/2016,"",A1) which does not work. However, if i save the date 1/9/2016 in a cell, lets say H1 and do this formula again but instead of the date 1/9/2016, i put H1. thank you<h1,"",a1)....<h1,"",a1)...<h1,"",a1).<h1," ",a1)
<h1,"",a1), it="" will="" work,="" why="" is="" that?="" thank="" you="" so="" much
<h1,"",a1), that="" would="" work.="" why="" is="" that?="" thank="" you="" so="" much


(column A) .............(column B)
Joining date ............Testing
1/1/2001 ................=IF(A1<1/9/2016,"",A1)
2/2/2009 ................=IF(A2<1/9/2016,"",A2)
2/3/2017 ................=IF(A3<1/9/2016,"",A3)
3/6/2002 ................=IF(A4<1/9/2016,"",A4)</h1,"",a1),></h1,"",a1),></h1,"",a1)....<h1,"",a1)...<h1,"",a1).<h1,">
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi
I have this formula =IF(A1<1/9/2016,"",A1) which does not work. However, if i save the date 1/9/2016 in a cell, lets say H1 and do this formula again but instead of the date 1/9/2016, i put H1. thank you<h1,"",a1)....<h1,"",a1)...<h1,"",a1).<h1," ?,a1)
<h1,"",a1), much
<h1,"",a1), much


(column A) .............(column B)
Joining date ............Testing
1/1/2001 ................=IF(A1<1/9/2016,"",A1)
2/2/2009 ................=IF(A2<1/9/2016,"",A2)
2/3/2017 ................=IF(A3<1/9/2016,"",A3)
3/6/2002 ................=IF(A4<1/9/2016,"",A4)</h1,"",a1),></h1,"",a1),></h1,"",a1)....<h1,"",a1)...<h1,"",a1).<h1,">

How is this "not working"? I copied your sample data and it seems to be working as the formula is intended. I just had to format col B as date.

Edit: Nvm, I see all entries save #3 are not returning blanks.

The formula does not recognize 1/9/2016 as a number to compare vs the values in col A. Therefor, you must format it properly in the comparison to work. Such as:

Code:
=IF(A1 < DATEVALUE("1/9/2016"),"",A1)
<datevalue("1 9="" 2016?),??,A1)

Or

Code:
=IF(A1 < DATE(2016,1,9),"",A1)

Mind the spaces in the above formulas around the " < " sign.</datevalue("1>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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