Hi Everyone. Just a bit of background. I work for an energy management company and I'm trying to make it a less manual process to compare bills to their tariffs, unfortunately there's a lot of different factors, like different years, different municipalities, different tariff types etc. We have the different years because we can go back about 3 years into history to find any errors and claim the money back.
I have taught myself, so please don't judge if I am not doing stuff the most efficient way, but I am fairly good with excel (i.e I can google well to solve most of my problems haha!) But I am struggling to figure out how to do this without doing super complicated Nested If Statements. I am completely open to ideas so even if you want me to completely change my template, I can do that. Just need to know how to make it work.
I am attaching a link to the file in my google drive so that you can look, because it's quite complicated to try to explain with just screenshots. Loading Google Sheets
So basically we receive a bill from a customer, that we then need to confirm is being charged correctly by comparing it to their corresponding electricity tariff. To do that, I have first created a simple thing where the user puts in the rates into 4 blocks on the find my tariff page which then in turn highlight the blocks on the tariffs below it. Then once we know which tariff it is, on the 2023 Store consumption tab, we input the Municipality and the Tariff using drop downs (this isn't necessary, but I was thinking it might help to locate the correct tariff, just don't know how).
Then what I actually need help with, is in block O7, we type in the total on the bill and then in P7, I want to have the correct amount autopopulate. So I want it to check my drop downs in B, C & D and then go look for the tariff on the Find my tariff page, and then create a formula where it multiplies the data from column L with the corresponding kWh charge.
I don't know if I have explained sufficiently, but hoping there's a way to do this? Do I need to change how I have laid out my data? Is there a formula that could work better than a very complicated nested if that I don't know about? Maybe something in VBA?
Thanks in advance!
I have taught myself, so please don't judge if I am not doing stuff the most efficient way, but I am fairly good with excel (i.e I can google well to solve most of my problems haha!) But I am struggling to figure out how to do this without doing super complicated Nested If Statements. I am completely open to ideas so even if you want me to completely change my template, I can do that. Just need to know how to make it work.
I am attaching a link to the file in my google drive so that you can look, because it's quite complicated to try to explain with just screenshots. Loading Google Sheets
So basically we receive a bill from a customer, that we then need to confirm is being charged correctly by comparing it to their corresponding electricity tariff. To do that, I have first created a simple thing where the user puts in the rates into 4 blocks on the find my tariff page which then in turn highlight the blocks on the tariffs below it. Then once we know which tariff it is, on the 2023 Store consumption tab, we input the Municipality and the Tariff using drop downs (this isn't necessary, but I was thinking it might help to locate the correct tariff, just don't know how).
Then what I actually need help with, is in block O7, we type in the total on the bill and then in P7, I want to have the correct amount autopopulate. So I want it to check my drop downs in B, C & D and then go look for the tariff on the Find my tariff page, and then create a formula where it multiplies the data from column L with the corresponding kWh charge.
I don't know if I have explained sufficiently, but hoping there's a way to do this? Do I need to change how I have laid out my data? Is there a formula that could work better than a very complicated nested if that I don't know about? Maybe something in VBA?
Thanks in advance!