Pergunta

I am creating a billable hours sheet in google sheets and would like to exclude line items that i set as not billable

In column B is the amount of hours worked
In column E is the rate per hour
In column D is Billable "Yes/No"
In Column F is Cost for that line item

Ideally I would like column F's total to be conditional based on column D's answer, so:

4 hours worked, at $20/hr, is billable would be $80
4 hours worked, at $20/hr, is NOT billable would be $0

Can someone please help me with the proper conditional SUMIF formula to get this started?

Foi útil?

Solução

As follow up from comments, next formulas works in F2 and copied down:

=IF(D2="YES",B2*E2,0)

or

=B2*E2*(D2="YES")
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top