+ Reply to Thread
Results 1 to 10 of 10

Usage calculation

  1. #1
    Registered User
    Join Date
    08-24-2015
    Location
    birmingham, england
    MS-Off Ver
    excel 2013
    Posts
    5

    Usage calculation

    Hi,

    I am not a pro at excel and I was looking for some help/advice. I have a table in my sql server which gets updated with the usage (of tables) figures every week. The data gets copied to the excel file.

    \1

    I was wondering if there is a way to return the increase in usage percentage of all the columns for every week compared to the last week.

    Thank you in advance

    table usage.xlsx

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,214

    Re: Usage calculation

    What is the calculation for usage %?

  3. #3
    Registered User
    Join Date
    08-24-2015
    Location
    birmingham, england
    MS-Off Ver
    excel 2013
    Posts
    5

    Re: Usage calculation

    Asumingly it will just be dividing prior by current to calculate by how much percentage it has increased by

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,052

    Re: Usage calculation

    how would you do this manually?
    which cells would you use?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    08-24-2015
    Location
    birmingham, england
    MS-Off Ver
    excel 2013
    Posts
    5

    Re: Usage calculation

    I would use C2, C7 and C12 to calculate the increase in usage by date for table tblEvents and same for rest of the tables.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,214

    Re: Usage calculation

    General formula used (and it assumes a constant 7 days between readings: hence the "-7" in the formula)

    =IFERROR((INDEX($C$2:$G$17,MATCH($B7&$H7,$B$2:$B$17&$H$2:$H$17,0),1)-INDEX($C$2:$G$17,MATCH($B7&$H7-7,$B$2:$B$17&$H$2:$H$17,0),1))/INDEX($C$2:$G$17,MATCH($B7&$H7-7,$B$2:$B$17&$H$2:$H$17,0),1),"")

    Enter with Ctrl+Shift+Enter


    NOTE: I had to change dates to dates only (rather than date / time).
    Attached Files Attached Files
    Last edited by JohnTopley; 08-25-2015 at 06:23 AM.

  7. #7
    Registered User
    Join Date
    08-24-2015
    Location
    birmingham, england
    MS-Off Ver
    excel 2013
    Posts
    5

    Re: Usage calculation

    Thank you for the formula, if I copy and paste more data below the existing data. Will i be able to drag down the function to calculate weekly figures?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,214

    Re: Usage calculation

    Yes ... you should be able to do that but change date/time to date only.

    If your data is date/time you can convert to date only using =INT(H2). I put this formula into column I and copied down, then COPY/PASTE SPECIAL VALUES back to H. You can copy the same dates into J.

  9. #9
    Registered User
    Join Date
    08-24-2015
    Location
    birmingham, england
    MS-Off Ver
    excel 2013
    Posts
    5

    Re: Usage calculation

    Thank you so much for your help, really appreciate it.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,214

    Re: Usage calculation

    IF you are happy with the solution could you please mark thread as SOLVED ("Thread Tools" at top of first post).

+ 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] Min / Max Usage Calculation
    By jasonjholt in forum Excel General
    Replies: 2
    Last Post: 08-11-2015, 07:32 AM
  2. Usage of SUM
    By vignesh230 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 08-11-2014, 12:17 AM
  3. [SOLVED] Pivot table / usage calculation
    By cory0789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2014, 02:22 AM
  4. Workbook usage or Database usage assistance
    By Sunshine601 in forum Excel General
    Replies: 4
    Last Post: 12-12-2013, 08:36 AM
  5. Need help on If usage
    By pradeeplean in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-06-2009, 12:58 PM
  6. Usage Log
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-05-2007, 08:24 PM
  7. 100% cpu usage
    By bill in forum Excel General
    Replies: 1
    Last Post: 03-02-2006, 06:30 AM

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