You can use the function:
=DIATRABALHO.INTL(data inicial; dias;[fimdesemana], [feriados])
At the weekend, you can tell what you consider this weekend. Whether it's Saturday or Sunday (1) or other options.
Excel, in newer versions, will display the options that you can report on [weekend]. Use the same formula, but using the weekend parameter.
=DIATRABALHO.INTL(C24;E24;1;Tabela1[DATA])
Notice the number 1 in the above function.
However, in your case, you can ignore the options you have there and use it like this:
=DIATRABALHO.INTL(C24;E24;"0000000";Tabela1[DATA])
If the answer is giving an extra day, do this: subtract -1.
=DIATRABALHO.INTL(C24;E24;"0000000";Tabela1[DATA])-1