I have a table which has a column containing job status (e.g. live, dead, invoiced etc) and a separate column with a job fee and a third column with a Sub Fee.
I have used:-
=SUMPRODUCT(SUMIF(TabJobs[Current Job Status],CHOOSE({1,2,3,4,5},Settings!$A$1,Settings!$A$2,Settings!$A$3,Settings!$A$4,Settings!$A$5),TabJobs[Sub Fee]))
which gives me a total value of all the jobs that have a sub fee which have one of 5 statuses listed on a sheet called Settings.
I want to do the same that returns the number of jobs.
I can see that simply substituting SUMIF for COUNTIF doesn't work as the criteria structure is different for COUNTIF but I can't work out the correct syntax.
Thanks
I have used:-
=SUMPRODUCT(SUMIF(TabJobs[Current Job Status],CHOOSE({1,2,3,4,5},Settings!$A$1,Settings!$A$2,Settings!$A$3,Settings!$A$4,Settings!$A$5),TabJobs[Sub Fee]))
which gives me a total value of all the jobs that have a sub fee which have one of 5 statuses listed on a sheet called Settings.
I want to do the same that returns the number of jobs.
I can see that simply substituting SUMIF for COUNTIF doesn't work as the criteria structure is different for COUNTIF but I can't work out the correct syntax.
Thanks