# DATE FORMAT

#### 1AG

##### New Member
I have a formula that will return latest date if cells match criteria, however because the column that contains the formula is formatted as (Date), if criteria does not match, 1/0/1900 is being returned rather than specified text in formula. (Hope I explained well enough) This is the formula.

MAX(IF((\$D:\$D=\$B2)*(\$H:\$H=\$G2),\$E:\$E,"X"))

MAX Date(IF((Customer=Customer)*(City=City), Latest Billing Date,"X" )) returning "X" if no billing date- "X" is not being returned, 1/0/1900 is. Thank you for your help!!

### Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

#### Fluff

##### MrExcel MVP, Moderator
Excel Formula:
``=IFERROR(1/(1/MAX(IF((\$D:\$D=\$B2)*(\$H:\$H=\$G2),\$E:\$E,"X"))),"X")``

#### 1AG

##### New Member
Excel Formula:
``=IFERROR(1/(1/MAX(IF((\$D:\$D=\$B2)*(\$H:\$H=\$G2),\$E:\$E,"X"))),"X")``
Worked perfectly, thank you!

#### Fluff

##### MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

#### 1AG

##### New Member
You're welcome & thanks for the feedback.
Very Welcome! This is an EXCELLENT site, saving soo much time and increasing productivity, I am very grateful for everyone's time and effort who are able to help!!

Replies
3
Views
480
Replies
18
Views
184
Replies
19
Views
137
Replies
7
Views
95
Replies
3
Views
91

1,148,189
Messages
5,745,238
Members
423,936
Latest member
Conservatopia

### 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?

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