PaulusPigus
New Member
- Joined
- May 28, 2019
- Messages
- 9
I am using COUNTIFS with multiple criteria which must all be satisfied as follows:
=COUNTIFS(Dates,">="&Date, Sectors,"*"&Sector&"*",Countries,"*"&Country&"*",Regions,"*"&Region&"*",Categories, "*"&Category&"*", Risk_Score, ">="&Risk_Level, Sources, "*"&A14&"*")
Problem is that this does not count a record if any condition cells are blank, for example, if Country or Region is blank
So I am looking to count all records where each of the specified conditions is met or where the condition is not specified:
Specified conditions:
Database fields (subset):
. It seems that Sumproduct may be the answer but I can not work it through.
Linked to this, I want to sum the values in one column (Risk_Score), based on the same criteria. So I currently have:
=SUMIFS(Risk_Score,Dates,">="&Date,Sectors,"*"&Sector&"*",Countries,"*"&Country&"*",Regions, "*"&Region&"*",Categories, "*"&Category&"*", Risk_Score, ">="&Risk_Level, Sources, "*"&A14&"*")
Any help appreciated.
=COUNTIFS(Dates,">="&Date, Sectors,"*"&Sector&"*",Countries,"*"&Country&"*",Regions,"*"&Region&"*",Categories, "*"&Category&"*", Risk_Score, ">="&Risk_Level, Sources, "*"&A14&"*")
Problem is that this does not count a record if any condition cells are blank, for example, if Country or Region is blank
So I am looking to count all records where each of the specified conditions is met or where the condition is not specified:
Specified conditions:
Database fields (subset):
Linked to this, I want to sum the values in one column (Risk_Score), based on the same criteria. So I currently have:
=SUMIFS(Risk_Score,Dates,">="&Date,Sectors,"*"&Sector&"*",Countries,"*"&Country&"*",Regions, "*"&Region&"*",Categories, "*"&Category&"*", Risk_Score, ">="&Risk_Level, Sources, "*"&A14&"*")
Any help appreciated.
|