Hey there, so I have been running a Countifs formula for a while, and it works great. Love being able to do multiple criteria.
Basically it is:
=Countifs(Items,Item,Locations,Location,Dates,">"&Date)
But now I need to include a MAX for the Dates section. Basically I need to take the MAX date out of two dates and incorporate it into my already existing formula. I am not sure how I would do that, something tells me that the below is not correct. I just have a feeling .....
In my mind, I see it as:
=Countifs(Items, Item, Locations, Location, Max(Dates1,Dates2), ">"&Date)
Dates1 & Dates2 are separate ranges.
I am running excel 2013, so I don't have access to Maxif or Maxifs, as those were introduced in 2016.
I have tried the above formula using CSE, and it doesn't work, it gives me an error. Mot likely due to the MAX formula being nested in the countifs.
I was thinking of something like
=Max(Countifs(Items, Item, Locations, Location, Dates, ">"&Date1),Countifs(Items, Item, Locations, Location, Dates, ">"&Date2))
But that will just give me the largest number of the counts between those two criteria, which is not what I want.
I thought of something like maybe:
=Count(If((Items=Item)*(Locations=Location),If(Max(Dates1,Dates2)>Date)))
Or something similar, but wasn't exactly sure how the syntax should go, due to multiple criteria.
Kind of clueless here and looking for some direction .....
Any thoughts?
-Spydey
Basically it is:
=Countifs(Items,Item,Locations,Location,Dates,">"&Date)
But now I need to include a MAX for the Dates section. Basically I need to take the MAX date out of two dates and incorporate it into my already existing formula. I am not sure how I would do that, something tells me that the below is not correct. I just have a feeling .....
In my mind, I see it as:
=Countifs(Items, Item, Locations, Location, Max(Dates1,Dates2), ">"&Date)
Dates1 & Dates2 are separate ranges.
I am running excel 2013, so I don't have access to Maxif or Maxifs, as those were introduced in 2016.
I have tried the above formula using CSE, and it doesn't work, it gives me an error. Mot likely due to the MAX formula being nested in the countifs.
I was thinking of something like
=Max(Countifs(Items, Item, Locations, Location, Dates, ">"&Date1),Countifs(Items, Item, Locations, Location, Dates, ">"&Date2))
But that will just give me the largest number of the counts between those two criteria, which is not what I want.
I thought of something like maybe:
=Count(If((Items=Item)*(Locations=Location),If(Max(Dates1,Dates2)>Date)))
Or something similar, but wasn't exactly sure how the syntax should go, due to multiple criteria.
Kind of clueless here and looking for some direction .....
Any thoughts?
-Spydey
Last edited: