+ Reply to Thread
Results 1 to 3 of 3

How to perform calculation for multiple columns and rounding off using macro

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    How to perform calculation for multiple columns and rounding off using macro

    Hi,

    I trying to develop a macro to calculate the premium of policies. For a single premium i am able to do it but for multiple premiums i don't know how to do it. I have attached the screenshot. In the screenshot there will be four columns (Benefit Premium, Contribution Percentage, Payment frequency and Bill generation frequency). I will explain how it will be calculating. After i click calculate button, Premium to be paid is calculated as follows

    Premium to be Paid = (Benefit Premium * Contribution percentage*Payment frequency)/Bill generation frequency

    Likewise it have calculate for each row and add all the premium to be paid of each row. Premium to be paid should be displayed upto 4 decimals and then it should be round off to 2 decimals. Please help
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    04-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    80

    Re: How to perform calculation for multiple columns and rounding off using macro

    Hi,

    Try this code. Attached is a spreadsheet that you can try as well. Let me know how it goes.

    **************See next post****************************************************

    Draconi
    Last edited by Draconi; 10-16-2014 at 04:09 AM. Reason: Missed some data
    Draconi

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    80

    Re: How to perform calculation for multiple columns and rounding off using macro

    Hi,

    Try this code. Attached is a spreadsheet for you to try as well.

    Please Login or Register  to view this content.
    Draconi
    Attached Files Attached Files

+ 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. Macro to search multiple (static) columns and perform calculation on adjacent cells
    By DubaiExcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2013, 04:37 AM
  2. Replies: 2
    Last Post: 09-04-2012, 07:04 AM
  3. [SOLVED] Select multiple independent cells and perform a calculation
    By mtsykes28 in forum Excel General
    Replies: 18
    Last Post: 07-06-2012, 06:38 AM
  4. [SOLVED] comparing two columns & then perform a calculation
    By dazp1970 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2005, 09:05 AM
  5. Editing Macro-perform a subtotal calculation
    By scarlett1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2005, 08:05 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