• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

variable rate|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / variable rate|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…variable rate
sp_PrintTopic sp_TopicIcon
variable rate
Avatar
John Mildfelt
Member
Members
Level 0
Forum Posts: 6
Member Since:
February 23, 2023
sp_UserOfflineSmall Offline
1
February 23, 2023 - 3:54 am
sp_Permalink sp_Print

How to sum a value when there is a variable rate with a variable value. Example: 0 to 400 the rate is 0.02314, then their is 400 to 500 the rate is 0.03333, and lastly there is 500 to 600 and the rate is 0.04569. I am a newbie at Excel so please be kind and explain the answer is simple terms. Thanks

sp_AnswersTopicSeeAnswer See Answer
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1511
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
February 24, 2023 - 9:13 pm
sp_Permalink sp_Print

Hi John,

Can you please supply an example file with some data, showing what it is you want as a result.

I'm having trouble understanding exactly what it is you are trying to do.

Regards

Phil

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 202
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
3
February 25, 2023 - 2:13 am
sp_Permalink sp_Print

There are a couple of ways to go about this, a nested IF or IFS, but I would recommend a VLOOKUP. You would simply put the formula =VLOOKUP(value,tblLookup,2,TRUE), where "value" is the value you want to find the rate for, and "tblLookup" is a separate table you created with the low end of your rates (0,400,500), the most important this is the "TRUE" which finds an approximate match. What that means is it will go down the list and find where the value is higher than your value and jump back down and use that rate. For example, if you have a value of 304, VLOOKUP will go down your lookup table find 400 and jump back down to 0 and use a rate of 0.02314. 

I hope I'm making sense, find an example attached. 🙂

Avatar
John Mildfelt
Member
Members
Level 0
Forum Posts: 6
Member Since:
February 23, 2023
sp_UserOfflineSmall Offline
4
February 28, 2023 - 6:29 am
sp_Permalink sp_Print

Phil, thank you for replying. I will now attach a super simple workbook. If you look at the TEMPLATE sheet you will see that there is a 3 tier calculation of how they will charge me for my electric bill. Tier 1 is at the lowest rate and it goes up from there. Tier one level is 0 to 400 and T2 is 400 to 500 and T3 is 500 up. I am trying to calculate in the spreadsheet what the dollar amount will come to. See attachment. Remember I am not very well versed in using Excel. Worse than a novice. I make spreadsheets out of necessity.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1511
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
5
February 28, 2023 - 9:43 am
sp_Permalink sp_Print

Hi John,

Is this resolved?

Jessica's answer is marked as the solution, but you've then added another reply and attached a file?

Phil

Avatar
John Mildfelt
Member
Members
Level 0
Forum Posts: 6
Member Since:
February 23, 2023
sp_UserOfflineSmall Offline
6
February 28, 2023 - 10:35 am
sp_Permalink sp_Print

Thanks Phil was just replying to your request.

Avatar
John Mildfelt
Member
Members
Level 0
Forum Posts: 6
Member Since:
February 23, 2023
sp_UserOfflineSmall Offline
7
February 28, 2023 - 11:09 am
sp_Permalink sp_Print

Phil, had a chance to work with the sheet that J. Stewart supplied and it does not work. Please look at my attached file and look to see what I need, please. Thank you

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1511
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
8
February 28, 2023 - 12:16 pm
sp_Permalink sp_Print sp_EditHistory

Hi John,

Jessica's approach is the way to go.  Because you have a rate that changes based on (presumably) the Kwh you use, you can use VLOOKUP to get the rate that is chargeable for each amount of Used Kwh.

In the attached workbook I've added a sheet called Example and added in the VLOOKUP formula into the Daily Cost column.  The VLOOKUP uses cells on your Template sheet to lookup the data it needs - I've colored these yellow.

You'll see for the last 2 dates, where it's used 420 and 521 Kwh, the rate being charged is correct for that usage.  For all other amounts of Used Kwh, it's working out the cost for Tier 1 because all amounts are below 100.

If you are not familiar with VLOOKUP this article explains how VLOOKUP works.

Regards

Phil

sp_AnswersTopicAnswer
Answers Post
Avatar
John Mildfelt
Member
Members
Level 0
Forum Posts: 6
Member Since:
February 23, 2023
sp_UserOfflineSmall Offline
9
March 1, 2023 - 2:37 am
sp_Permalink sp_Print

Phil, thank you for the file. I will work with it and see if that works out. Much appreciated for the time you spent on helping me. Will let you know how it goes.

Avatar
John Mildfelt
Member
Members
Level 0
Forum Posts: 6
Member Since:
February 23, 2023
sp_UserOfflineSmall Offline
10
March 2, 2023 - 10:42 am
sp_Permalink sp_Print

Phil just want to let you know that I have tried to adapt you file you supplied me and made some adjustment. I have attached my new file in which I used the suggested formulas. Seems to work great. Can't thank you and Jessica enough. I will continue to modify the file as need. And I just want to tell Jessica Stewart that it just took me a little bit longer with a few more trial and error steps to figure out just what you were telling me and how the formulas work. Still having a struggle to modify the Vllookup to work to my advantage. I will keep at it. Takes me just a little longer to learn. I am not the sharpest tool in the shed when it comes to using Excel.

 

A big shout out to Jessica Stewart, THANK YOU.

I have attached my new workbook for all to see. I am not a pro and it may seem lame, but it works for me.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1511
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
11
March 2, 2023 - 3:03 pm
sp_Permalink sp_Print

Hi John,

Well done getting it working.  It's all about keeping at it and learning, whatever your pace.

If you get stuck then you can search through all of our blog posts to se if there's an article that explains what you need.

Or you can post a new question here.

regards

Phil

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 202
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
12
March 3, 2023 - 1:55 am
sp_Permalink sp_Print

Glad to help! I'm glad Phil was able to fill in the gaps that I wasn't able to explain clearly. Good luck on your project and happy Excel-ling! 🙂

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Ivica Cvetkovski
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Len Matthews
Kristine Arthy
Michelle Neven
Andrew Kuhn
Angela Paul
Forum Stats:
Groups: 3
Forums: 24
Topics: 6206
Posts: 27202

 

Member Stats:
Guest Posters: 49
Members: 31875
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.