IF AND Statement for dates

jarett

Board Regular
Joined
Apr 12, 2021
Messages
165
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have 3 columns of dates, I want to display the oldest date in a new column "RUSH DATE". When the date column is null from the data source it populates the cell with the value "-53688". How can I get those cells to display a blank value when they are "null" or can I account for this value in the formula to get my result? In the example on line 35 I would want the rush date value to be "3/24/2023" . I couldnt get the XL2BB to work.

1681309139102.png
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Maybe
Excel Formula:
=MINIFS(H2:J2,H2:J2,">0")
 
Upvote 0
Maybe
Excel Formula:
=MINIFS(H2:J2,H2:J2,">0")
So it displays the correct date if there are more than one valid dates in the other 3 columns, however when the value is "-53688" which is the DB's null the result in the new column is "1/0/1900". How can this display a blank cell instead of the 1/0/1900?
 
Upvote 0
How about
Excel Formula:
=iferror(1/(1/0MINIFS(H2:J2,H2:J2,">0")),"")
 
Upvote 0
=iferror(1/(1/0MINIFS(H2:J2,H2:J2,">0")),"")
Fluff, you have a typo in that formula. Did you mean:
Excel Formula:
=iferror(1/(1/MINIFS(H2:J2,H2:J2,">0")),"")
(remove the 0 from before the MINIFS?)
 
Upvote 0
Solution
You're quite right, not sure where that crept in.
 
Upvote 0
Worked great and used it as an outline for another column, one more question. Trying to calculate number of days between two columns, one columns contains a formula "O"
VBA Code:
=IFERROR(1/(1/MINIFS(P3,P3,">0")),"")
the other column is just a date "M". I want the time between those two days, I got it to calculate if there is a vaild value in the column O "DATE COMPLETED", just when that column has no value and just the formula I get a #VALUE! error in my WIP TIME column, this is the formula in the WIP column
Code:
=IF(ISBLANK([@[DATE COMPLETED]]),"",NETWORKDAYS([@[UDF_DATE_PRODUCTION_RECEIVED]],[@[DATE COMPLETED]]))

1681317388627.png
 
Upvote 0
You need to use
Excel Formula:
=IF([@[DATE COMPLETED]]="","",NETWORKDAYS([@[UDF_DATE_PRODUCTION_RECEIVED]],[@[DATE COMPLETED]]))
a cell that contains a formula is not blank
 
Upvote 0
You need to use
Excel Formula:
=IF([@[DATE COMPLETED]]="","",NETWORKDAYS([@[UDF_DATE_PRODUCTION_RECEIVED]],[@[DATE COMPLETED]]))
a cell that contains a formula is not blank
Prefect!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,300
Messages
6,124,138
Members
449,144
Latest member
Rayudo125

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