+ Reply to Thread
Results 1 to 5 of 5

Make a COUNTIF calculation take the data in another column into consideration

  1. #1
    Registered User
    Join Date
    03-24-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Office Pro Plus 2010
    Posts
    8

    Make a COUNTIF calculation take the data in another column into consideration

    Hi,

    I'm back again with another question. But this time I've made an example workbook.

    Basically, I have a document like the attached one, where I'm keeping track of the license usage for our customers. In the E column (purple table) you have a dropdown list where you can choose the license. It will automatically show the unit price in the F cell next to it.

    At the bottom, in the green table, there's a list of all the available licenses. In the column called "Amount" I have a COUNTIF formula, which checks how many times a license name occurrs in the purple table. There's one problem though; the COUNTIF formula doesn't take into consideration the amount of licenses specified in the D column.

    E.g. on row 2 you can see the license code for Windows Server Web Edition (cell E2). In cell D2 you see that we need 2 of those licenses. If I do a COUNTIF on only row 2 it'll tell me that the Web Edition license occurs once - but I need it to tell me that that row uses 2 licenses (D2 x E2). Does anyone know how to do that?

    This is a very small table, on most of my tables there are 50-200 rows. It's just too time-consuming to count them manually.

    The document doesn't contain anything confidential. All product names are official product names released by MS. If anyone wants to use the formulas - enjoy ^^

    I'm thankful for any help or if someone can point me in the right direction.

    Best regards,
    Corm
    Attached Files Attached Files
    Last edited by Cormentia; 03-30-2011 at 06:01 AM. Reason: Marking as solved

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,252

    Re: Make a COUNTIF calculation take the data in another column into consideration

    Hi,

    Instead of using COUNTIF(), you can use SUMIF(). In B26:

    =SUMIF($E$2:$E$22,$A26,$D$2:$D$22)
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    03-24-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Office Pro Plus 2010
    Posts
    8

    Re: Make a COUNTIF calculation take the data in another column into consideration

    It works, it works!

    Thank you very much Colin! You just made my life a lot easier

    Take care, and have a nice day!

    BR
    Corm

  4. #4
    Registered User
    Join Date
    11-02-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Make a COUNTIF calculation take the data in another column into consideration

    Hi

    How did you make that Column name to the name you had given when selecting the range.
    Please share.

    Shaj

  5. #5
    Registered User
    Join Date
    03-24-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Office Pro Plus 2010
    Posts
    8

    Re: Make a COUNTIF calculation take the data in another column into consideration

    Hi Shaj,

    I'm not entirely sure about what you mean, but the drop-down list was created using the Data Validation tool. Please see this link for more info and instructions: http://www.databison.com/index.php/d...tion-in-excel/

    And the correct price is automatically selected using the VLOOKUP parameter, which checks what the data in the column to the right of the looked up column says. There's more information here: http://www.excelforum.com/excel-prog...down-list.html

    I apologize for sending you forward, but I'm a real rookie when it comes to Excel and don't have the knowledge to properly explain everything about Data Validation and VLOOKUP

    Take care,
    Corm

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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