+ Reply to Thread
Results 1 to 5 of 5

VBA Code to calculate the cost per/sqm and total lt

Hybrid View

  1. #1
    Registered User
    Join Date
    01-27-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    51

    VBA Code to calculate the cost per/sqm and total lt

    Hi all

    In my attached files I would like to calculate the surface area when a user click on the 1st button
    The second button should calculate the amount of paint needed after pressing the Total lt button

    Below is a summary of my calculations

    In sheet 2 in the workbook the calculations can be found there as it is only a sample :

    Total surface area (in square meters) Divided by ÷ Spreading rate of paint (in square meters per liter)
    Multiplied by x Number of coats
    Equals = Total litres required

    Untitled.jpg
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-27-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    51

    Re: VBA Code to calculate the cost per/sqm and total lt

    Sorry ladies/gents I have uploaded the wrong pic, my bad

    See below for correct one

    Untitled.jpg

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,336

    Re: VBA Code to calculate the cost per/sqm and total lt

    Perhaps...
    Private Sub cmb1_Click()
    [D7] = [D3] * [D5]
    End Sub
    
    Private Sub cmb2_Click()
    [D13] = Format([D7] / [D9] * [D11], "0.00")
    End Sub
    Last edited by sintek; 10-11-2017 at 08:33 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Registered User
    Join Date
    01-27-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    51

    Re: VBA Code to calculate the cost per/sqm and total lt

    Quote Originally Posted by sintek View Post
    Perhaps...
    Thanks a million sintek, working perfect

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,336

    Re: VBA Code to calculate the cost per/sqm and total lt

    Coolio...Thanks for rep...mark solved...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sumifs or Array to calculate Total Cost Per Week
    By dannajones in forum Excel General
    Replies: 3
    Last Post: 07-11-2017, 03:44 PM
  2. [SOLVED] Calculate Total Cost of value associated with a word
    By Chasermelb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2016, 05:28 AM
  3. [SOLVED] Rate changes after 40 hours and need to calculate total cost?
    By y_not in forum Excel General
    Replies: 12
    Last Post: 10-06-2015, 12:16 PM
  4. Auto-calculate the total cost to a certain date
    By victoriajane in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-07-2015, 12:46 PM
  5. [SOLVED] Formula to calculate a cost per day until total
    By Reno Nex in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2014, 11:16 AM
  6. Replies: 1
    Last Post: 05-15-2013, 08:40 PM
  7. Replies: 3
    Last Post: 03-16-2010, 01:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1