• 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

Formula for Trucking Calculator|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Formula for Trucking Calculator|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…Formula for Trucking Calculator
sp_PrintTopic sp_TopicIcon
Formula for Trucking Calculator
Avatar
robert alvarez
Member
Members
Level 0
Forum Posts: 16
Member Since:
May 11, 2019
sp_UserOfflineSmall Offline
1
May 11, 2019 - 2:30 am
sp_Permalink sp_Print

HI!

I am creating a trucking calculator in which the user enters a weight, and the amount to pay the trucker is displayed. The user selects the town from a drop down list on a second sheet named "Data"picking the town, and it calculates the rate depending on the town.

I have a VLOOKUP table on sheet 2 (Data) which lists the towns and their rates. There are only 2 rates which I divided into groups (1 and 2), and a third option, “Special” rate which will only show the word special. The columns in the VLOOKUP is:
Column 1: town name,
Column 2: rate
Column 3: either the number 1,or 2 (which classifies the towns into 2 zones), or the word “Special”.

on the main sheet, cell D8 has the drop down where the user picks the town. 

I8 has the rate from the VLOOKUP which pulls from the town. 

And K8 has the group number also pulling from VLOOKUP.

Cell D13 has the total calculated which multiplies the rate (I8) x weight entered in D4

so far I have the calculator showing the rate once the weight, or the word “Special” if it is a special rate:

=IF(I8=”SPECIAL”, “SPECIAL”, D4*I8)

Now I want to use MAX because there are minimum fees associated. So if the value that is calculated in E13 is less than 26.25, it will display 26.25 instead of the total.
now, the minimum in zone 1 (26.25) is different that zone 2 (29.40).

I need to create a formula that can identify what zone is being used, which can be identified by the number 1, or 2 in cell K8, and apply that minimum charge depending on it.

 

I attached the spreadsheet

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
2
May 11, 2019 - 9:21 am
sp_Permalink sp_Print

Hi Robert

Please refer attached.

Hope this helps.

Sunny

Avatar
robert alvarez
Member
Members
Level 0
Forum Posts: 16
Member Since:
May 11, 2019
sp_UserOfflineSmall Offline
3
May 13, 2019 - 10:56 pm
sp_Permalink sp_Print sp_EditHistory

Hi Sunny,

 

Yes!  this works!

The only thing missing from the total calculation now is that if the rate is Special (not 1or 2), it displays the word Special in the total value field in D13.

right now its giving me the #VALUE! error

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
May 14, 2019 - 8:56 am
sp_Permalink sp_Print

Hi Robert

Just change your formula in D13 to :

=IF(I8="SPECIAL", "SPECIAL", MAX(D4*I8,M8))

Avatar
robert alvarez
Member
Members
Level 0
Forum Posts: 16
Member Since:
May 11, 2019
sp_UserOfflineSmall Offline
5
May 15, 2019 - 12:54 am
sp_Permalink sp_Print

SunnyKow said
Hi Robert

Just change your formula in D13 to :

=IF(I8="SPECIAL", "SPECIAL", MAX(D4*I8,M8))  

Thanks Sunny,

 

you've been a great help.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Ahmad Alkhuffash, Chandler Davis, Ramon Lagos
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:
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Sopi Yuniarti
LAFONSO HERNANDEZ
Hayden Hao
Angela chen
Sean Moore
John Chisholm
Forum Stats:
Groups: 3
Forums: 24
Topics: 6215
Posts: 27245

 

Member Stats:
Guest Posters: 49
Members: 31897
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.