DATE FORMAT

1AG

New Member
Joined
Apr 8, 2020
Messages
25
Office Version
  1. 2011
Platform
  1. Windows
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
Joined
Jun 12, 2014
Messages
65,938
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=IFERROR(1/(1/MAX(IF(($D:$D=$B2)*($H:$H=$G2),$E:$E,"X"))),"X")
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,938
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

1AG

New Member
Joined
Apr 8, 2020
Messages
25
Office Version
  1. 2011
Platform
  1. Windows
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!!
 

Forum statistics

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

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
Top