A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
None of the answers given here really helped, so I ended up going in a different direction. I decided that my basic approach was flawed. I had been trying to use a single formula that counted up all the rows in a range that met a compound criteria. After failing to acheive that I decided that I needed a way to mark each line that needed to be counted, and each line that needed to be ignored. Once marked, I could count up the rows in any way that I pleased.
Here's how I solved the problem.
- I added a column to the tab were the raw data gets pasted.
- I created a formula that does the following:
- Matches the user ID from the same row to the Employees table.
- If no match is found then the formula results in the word "Ignore."
- If a match is found the formula takes the user ID and joins a two-character code at the end denoting the alert stage (s1=Stage 1, s2=Stage2, etc.)
- On the tab that collects all the data for charting I created one formula that takes the user ID from the Employees table and matches it to the left-most 6 characters in the calculated column on the raw data tab, and that gives me the count by employee. A set of formulas looks for the right-most 2 characters and that gives me the count by stage. I don't need the count by employee for each stage, so the two separate counts are good enough for my purposes.
--Tom