A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi @Shams Mahmud,
Thank you for posting your question in the Microsoft Q&A forum.
Mr. Ashish Mathur did provide you a dynamic formula for cell Q12 so you can try that to see if it helps. About the calculation of the individual processes in Row 4 columns P:V, since you can try this formula:
- For refining costs of Au and Ag per ounce: =XLOOKUP(P3,$A$4:$A$10,CHOOSECOLS($B$4:$E$10,MATCH($J$4,$B$3:$E$3,-1)))*I8/$H$4
- For the other costs: =XLOOKUP(R3,$A$4:$A$10,CHOOSECOLS($B$4:$E$10,MATCH($I$4,$B$3:$E$3,-1)))*$H$4/$H$4
Note: I did change the order of Refining costs of Au and Ag for better compatibility between the data ranges so it may look a bit different compared to your worksheet.
I hope this information is helpful. Please try the formulas and let me know if it works for you. If not, we can work together to find a solution.
Thank you for your patience and your understanding. If you have any questions or need further assistance, please feel free to share them in the comments on this post so I can continue to support you.
Best wishes to you and your family for a wonderful and prosperous New Year.
Looking forward to your response.
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.