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
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!