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)
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
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)
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
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. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!