+ Reply to Thread
Results 1 to 19 of 19

countif?

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    countif?

    countifhelp.PNG

    I am trying to keep track of remaining space on each of my Datastores on each of my VMware Hosts. Ive create a spreadsheet with each datastore capacity.(on the left side of the image) I have also documented each virtual machines hard drive, location and size.(on the left side of the image).

    So I am trying to count the total diskspace used for each virtual machine based on the location (datastore) minus the capacity.

  2. #2
    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,048

    Re: countif?

    1st....
    So I am trying to count the total diskspace used for each virtual machine
    dont you mean SUM?

    2nd Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    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

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: countif?

    I am having issues. When i click on the attach button it doesnt do anything. Can I email you the spreadsheet?

  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,048

    Re: countif?

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: countif?

    Ive uploaded files before on this site.
    Capture2.PNG
    Then when I try to upload it wont let me do anything.
    Attached Files Attached Files

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: countif?

    What is your expected results, for example, HD1.5TB_13?
    Quang PT

  7. #7
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: countif?

    It should be 1165.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,725

    Re: countif?

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  9. #9
    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,048

    Re: countif?

    How do you arrive at that?

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,725

    Re: countif?

    I read Quang's question, the instructions in the upload and then did the math backwards. It seemed to work. So I guessed after that.

  11. #11
    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,048

    Re: countif?

    FT, my question was to the OP lol, you and I posted at about the same time

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,725

    Re: countif?

    Oh.____________________________

  13. #13
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: countif?

    So whats the conclusion?

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: countif?

    Quote Originally Posted by matty0511 View Post
    So whats the conclusion?
    Does solution from FT in #8 meet requirement?

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,725

    Re: countif?

    Did you try my formula in post #8?

    I believe it does what you want. Enter it in C52. The table auto fills.


    B
    C
    D
    50
    DATASTORE FREE SPACE
    51
    DATASTORES
    FREESPACE
    52
    HD1.5TB_13
    1165
    Capacity minus the sum of all space used on HD1.5_13
    53
    HD1.5TB-13_2
    1360
    Capacity minus the sum of all space used on HD1.5_13-2
    54
    HD3TB_13
    2730
    Capacity minus the sum of all space used on HD3TB_13
    55
    SSD240_13
    178.75
    Capacity minus the sum of all space used on SSD240_13

  16. #16
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: countif?

    no luck. I put the formula in c52 and i get nothing.
    Attached Files Attached Files

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,725

    Re: countif?

    I just now copied from the post #8 function code window and pasted into your latest upload. It works fine at my end.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: countif?

    Okay thanks, I got it. Can you explain to me the verbiage? how does the equation know what table2 is?

  19. #19
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,943

    Re: countif?

    If you select any of the cells in the table beneath the title 'Datastore Capacity' you'll see a new tab above the ribbon that says 'Table Tools'. Select that tab and look at the left end of the ribbon and you'll see the table name (table 2) displayed.
    A good way to see what the formula in C52 is doing is to select that cell then select and run through the 'Evaluate Formula' on the 'Formulas' tab.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] match # against row, countif -1 otherwise countif
    By jackf-nc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-25-2016, 12:15 AM
  2. Faster if/countif formula for flagging uniques - countif too slow
    By Speshul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2015, 01:44 PM
  3. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  4. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  5. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 AM
  6. [SOLVED] COUNTIF or not to COUNTIF on a range in another sheet
    By Ellie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2005, 05:06 PM
  7. [SOLVED] Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05:05 PM

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