Forum Discussion
Combining 2 formulas
you see it all depends on how your training file is set up.
- ALI_SVDec 22, 2021Copper Contributor
Hi there mtarler , thanks for your reply,
bellow is the sample you're asking for, hope it's clear enough
sheet 1
sheet2
- mtarlerDec 22, 2021Silver Contributor
ALI_SV So as mentioned if those "-" are indicative of BLANK cells then a simple COUNTA can be used but if they are in fact a "-" and you want to exclude "-", blanks, zeros, etc.. and you are using at least Excel 2019, then you can get a little more tricky and use a SWITCH command. The EASIEST thing would be to create a column in the same table and do the sum right there and then the 'remote' table could use a LookUp to find that value. If you can NOT add the column directly to that table then if you are using 365 you can use a FILTER but if not you will probably need an OFFSET(... MATCH()) combo. I have attached some examples.
- SpyclownDec 22, 2021Copper Contributor
Perhaps If you leave the cells blank for the uncompleted trainings you can run a very simple formula "=COUNTA(CellRange)". I.e. =COUNTA(D3:F3) and will return a value of 3.
Or you can run the count command to only count cells with a numeric value. The data will need to be a bit more consistent, such as having a date listed versus "yes".