+ Reply to Thread
Results 1 to 3 of 3

Macro to calculate the percentage of a set of data

  1. #1
    Registered User
    Join Date
    02-10-2017
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    1

    Macro to calculate the percentage of a set of data

    I want to calculate the percentage of a data for a certain cell range.
    Hope the picture can aid my question.
    The range is in between C3 till C14 which makes total of 12 data value.
    I will copy the data from another source and paste to the template.
    Some times the data may only have 10 data value.
    So the percentage should be auto calculated from how many data copy pasted on the template.
    I cant figure it out.Please guide me.
    excel.jpg

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,694

    Re: Macro to calculate the percentage of a set of data

    That's easy. If the check-in time is 11 o'clock, they're all early (100%)

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Macro to calculate the percentage of a set of data

    Based on your posted image you could try a macro like this:

    Please Login or Register  to view this content.
    Alf

+ 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] Calculate percentage based on data
    By mathanraj76 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-04-2016, 04:25 PM
  2. Calculate average of every nth Cell in Excel when data is a percentage
    By lindystep in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2015, 05:54 PM
  3. Calculate Percentage Using Data from Multiple Tables
    By kmcbriarty in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-04-2015, 06:47 AM
  4. Calculate Percentage for matrix data
    By rajamdade in forum Excel General
    Replies: 4
    Last Post: 06-21-2014, 06:12 PM
  5. [SOLVED] Formula to calculate number and percentage in the attached raw data
    By sarat47 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2014, 12:31 AM
  6. [SOLVED] Macro to Calculate Relative Percentage for Each value in Selection
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2012, 11:29 PM
  7. Macro to calculate range by a percentage
    By judasdac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-26-2009, 06:11 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