A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear @KARL HEINE,
Thank you for posting your question in the Microsoft Q&A forum!
According to your description, you do not need to use SUMPRODUCT in this scenario. A straightforward formula will be clearer, easier to understand, and simpler to maintain
From what’s visible in your screenshots:
J = OUT
K = IN
L = Billing result
The rate is on the BILLING sheet:
- Column A = Billing code (e.g. 4209701001)
- Column B = Rate (e.g. 0.050785130)
Column L header on EMPLOYEE sheet contains the billing code (4209701001)
=(J3+K3)*VLOOKUP(L$2,BILLING!$A:$B,2,FALSE)
- J3 + K3: Adds OUT and IN calls 4 + 2 = 6
VLOOKUP(L$2, BILLING!$A:$B, 2, FALSE)
- Looks up billing code 4209701001 on the BILLING sheet > returns 0.050785130
Final result: 6 × 0.050785130 = 0.304710780
If you prefer XLOOKUP:
=(J3+K3)*XLOOKUP(L$2,BILLING!$A:$A,BILLING!$B:$B)
I hope this helps! Please feel free to reply below if you have any update or further concern.
Your understanding and co-operation are highly appreciated. Thanks for your precious time. Have a nice day!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.