Results 1 to 4 of 4

Cost Optimisation Calculation

Threaded View

yokong Cost Optimisation Calculation 05-02-2012, 04:51 AM
StevenM Re: Cost Optimisation... 05-02-2012, 07:06 AM
MickG Re: Cost Optimisation... 05-02-2012, 07:58 AM
StevenM Re: Cost Optimisation... 05-02-2012, 08:12 AM
  1. #4
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Cost Optimisation Calculation

    Function CostOptimisationCalculation(rg As Range)
        Dim n66csm As Long, nRemainder As Long
        n66csm = rg.Value \ 66
        nRemainder = rg.Value Mod 66
        If nRemainder > 30 Then
            CostOptimisationCalculation = n66csm + 1 & "x66"
        ElseIf nRemainder = 0 Then
            CostOptimisationCalculation = n66csm & "x66"
        Else
            CostOptimisationCalculation = n66csm & "x66 & 1x30"
        End If
    End Function
    Last edited by StevenM; 05-02-2012 at 10:03 AM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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