Cell link from another sheet based on conditions
Hi all, I hope someone can help as I've been racking my brain trying to work this out!
I have multiple sheets that work together of which the data changes each month (it's based on electricity bills with varying monthly kWh (in pence) rates). I essentially want to link a particular cell from one sheet to another sheet, based on 2 conditions and then do a simple multiplication based off that figure. I can get this formula to work:
=SUM([kWh Total]@row * {Energy Report (Static) Average daily p/kWh rate)
but because the rate changes each month I need it to look up the new rate each month.
For example: If Column A (in sheet 2) is ticked, and Column B (in sheet 2) = specific text , then pull through the kWh rate from Column C (in sheet 2) to Sheet 1.
I figured the easiest way to do this was to just get the kWh rate from sheet 2 to pull through to sheet 1 first, then I can a simple sum but if there's a way to pull the figure from sheet 2 into sheet 1 and do the calculation in one formula, then I'd prefer that.
Please help! :D
Many thanks
Best Answer

Try something like this...
=[kWh Total]@row * INDEX(COLLECT({Sheet 2 Column C}, {Sheet 2 Column A}, @cell = 1, {Sheet 2 Column B}, @cell = "Specific Text"), 1)
Answers

Try something like this...
=[kWh Total]@row * INDEX(COLLECT({Sheet 2 Column C}, {Sheet 2 Column A}, @cell = 1, {Sheet 2 Column B}, @cell = "Specific Text"), 1)

Paul, you are an absolute life safer! It works perfectly  I've spent hours trying to work it out!!!
Thank you so much!!! :)

Happy to help. 👍️
Help Article Resources
Categories
Check out the Formula Handbook template!