+ Reply to Thread
Results 1 to 7 of 7

Calculate total space usage from spreadsheet

  1. #1
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Calculate total space usage from spreadsheet

    Good Morning All,

    I wrote the below code to try calculate the total amount of space used on an FTP site.
    I have a list of all the different folders and the space they take up is in column 'B'. However the amount of space is followed by a 'KB' or 'MB' or 'GB'. So What I'd like to do is calculate the total amount of space in Gigabytes. I'm not sure what data types to set everything as for this in order to get this to work.
    The Macro runs without any errors, but only returns a 0.

    Any help would be greatly appreciated.

    Cheers

    R

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: Calculate total space usage from spreadsheet

    Updated but still not working

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Calculate total space usage from spreadsheet

    Can you attach a sample file for us to 'play' with..

    I am thinking you could incorporate autofilter then change each value to a common denominator (GB).. you could change the actual value or use a helper column..

  4. #4
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: Calculate total space usage from spreadsheet

    Here ya go
    Attached Files Attached Files

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Calculate total space usage from spreadsheet

    maybe so
    Please Login or Register  to view this content.
    Last edited by nilem; 03-07-2014 at 07:02 AM.

  6. #6
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: Calculate total space usage from spreadsheet

    Cheers Dude!

    Is there anyway I can shorten the total to .00 decimal places, Then stick a Gb on the end?

  7. #7
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: Calculate total space usage from spreadsheet

    It's cool, I got it. Cheers for all your help!

+ 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. Replies: 3
    Last Post: 03-06-2014, 12:48 AM
  2. Replies: 8
    Last Post: 08-10-2009, 04:21 PM
  3. Total Usage. Date Problem
    By treva26 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2008, 03:02 AM
  4. excel-hrs spreadsheet-work 8:15 - 5:30 (how calculate total hrs?)
    By Harris in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2006, 04:35 PM
  5. Replies: 3
    Last Post: 08-16-2005, 10:05 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