문제

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?

도움이 되었습니까?

해결책

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

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

or

=B2*E2*(D2="YES")
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top