Cell link from another sheet based on conditions

Options
edited 09/28/21

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.

Many thanks

• ✭✭✭✭✭✭
Options

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)

• ✭✭✭✭✭✭
Options

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)

• Options

Paul, you are an absolute life safer! It works perfectly - I've spent hours trying to work it out!!!

Thank you so much!!! :)

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!