Max & If Array for Dates

Colmans

Board Regular
Joined
May 28, 2016
Messages
62
I'm scratching my head with this conundrum

I have two similar reports that mine the same data which lists transactions.

In my first report I have a column which shows the date of the last invoice raised to a customer:

{=max(if(Retailer=A1,InvDate,"None"))}

In my first report, if there have been no invoices raised to the customer then the cell is blank, which is what I want

In my second report, the same formula returns 0 which then defaults to 00/01/1900 as a date. What am I missing?

Thanks in advance for your feedback.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
If you have MAXIFS, you can switch to that function.

Otherwise:

{=IF(COUNTIFS(Retailer,A1,InvDate,">0"),MAX(if(Retailer=A1,InvDate)),"")}
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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