sledgehama
New Member
- Joined
- Jul 25, 2023
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hi team!
Excel not-quite-newbie-but-clearly-not-skilled-enough here so any help would be great!
I’m trying create a formula that’s going to count the total number of text-filled cells that *do not* contain either of one of two certain texts, also does not count entirely blank cells, and filtered for discrete values on a different column and also dependent on there being one of several values in *another* column. It’s possibly overlong and complicated a situation as it is, but I’m hoping to be able to just dump raw data into the worksheet and have the reporting formula get what I need from it without having to do anything else to it. I’ve managed to get so far, but the trick really seems to be combining them all and I keep running into problems there!
The relevant columns are:
A: Record ID
D: Record Status
I: Surname
My logic is that if we count column D for the Record Statuses we want (A, C & F), then count the cells in the Surname that don’t have either of the two terms we want to exclude (“- left” or “- decea”) and also don’t count those that are blank then the only thing left is to be able to filter them by discrete values of the Record ID. To get to this point I’ve got the formula:
=SUM(COUNTIFS($D$2:$D$200000,{"A","C","F"},$I$2:$I$200000,{"<>*- decea*"},$I$2:$I$200000,{"<>*- left*"},$I$2:$I$200000,"<>"&""))
Which *should* be all the rows that are on the specified statuses, don’t have ‘-deceas’ or ‘- left’ or just a blank in the Surname column. Am I right on that last aspect for *not* counting the blank cells? The resulting sum looks right but I’m a little bit unsure as to if this is telling it to count ones that *aren’t* blank or count them if they *are* blank and that I'm getting the and/or right to the logic there.
From there I need to be able to filter them by discrete values of column A, but I just can’t figure out how to implement that in there without breaking the whole formula. Help?
Excel not-quite-newbie-but-clearly-not-skilled-enough here so any help would be great!
I’m trying create a formula that’s going to count the total number of text-filled cells that *do not* contain either of one of two certain texts, also does not count entirely blank cells, and filtered for discrete values on a different column and also dependent on there being one of several values in *another* column. It’s possibly overlong and complicated a situation as it is, but I’m hoping to be able to just dump raw data into the worksheet and have the reporting formula get what I need from it without having to do anything else to it. I’ve managed to get so far, but the trick really seems to be combining them all and I keep running into problems there!
The relevant columns are:
A: Record ID
D: Record Status
I: Surname
My logic is that if we count column D for the Record Statuses we want (A, C & F), then count the cells in the Surname that don’t have either of the two terms we want to exclude (“- left” or “- decea”) and also don’t count those that are blank then the only thing left is to be able to filter them by discrete values of the Record ID. To get to this point I’ve got the formula:
=SUM(COUNTIFS($D$2:$D$200000,{"A","C","F"},$I$2:$I$200000,{"<>*- decea*"},$I$2:$I$200000,{"<>*- left*"},$I$2:$I$200000,"<>"&""))
Which *should* be all the rows that are on the specified statuses, don’t have ‘-deceas’ or ‘- left’ or just a blank in the Surname column. Am I right on that last aspect for *not* counting the blank cells? The resulting sum looks right but I’m a little bit unsure as to if this is telling it to count ones that *aren’t* blank or count them if they *are* blank and that I'm getting the and/or right to the logic there.
From there I need to be able to filter them by discrete values of column A, but I just can’t figure out how to implement that in there without breaking the whole formula. Help?