Forum Discussion

AaronC92's avatar
AaronC92
Copper Contributor
Dec 04, 2020
Solved

Help with function COUNTIF

I am trying to count the cells in a column that contain a number value but only if another cell in the same row contains the specified text. (possibly using wrong function?) see below for example

 

I need to count all the cells contain a number value by lets say month of Dec

 

 

 

  • AaronC92

     

    =+COUNTIFS(E2:E7,E11,F2:F7,"<>")

     

    please find attached screen shot

     

    Month 
    nov1
    dec1
    nov 
    dec 
    nov2
    dec2
      
      
      
    dec=+COUNTIFS(E2:E7,E11,F2:F7,"<>")

     

16 Replies

  • AaronC92's avatar
    AaronC92
    Copper Contributor

    I am working on the last section of this excel sheet and I need a formula to figure the commissions earned.

     

    It needs to add all the number values in a column then multiply that by the commission lets say $200 per entry.

     

    I have found a way to do it but its a long and absurd method (needs to be cleaned up bad)

    Don't Laugh but this is my poor attempt to try and solve this issue 😉

    Each of the purple cells contains a value similar to this (=C8*200)

     

    • SergeiBaklan's avatar
      SergeiBaklan
      Diamond Contributor

      AaronC92 

      Sorry, but that's not clear, at least for me. Where is C8, is 200 fixed for all entries or variable, are column numbers variable or fixed, do you have total column in any case or that's just helper. In general = TotalInRow*200.

      • AaronC92's avatar
        AaronC92
        Copper Contributor

        SergeiBaklan 

        I apologies, I rushed that question started getting busy at the office.

         

        Yes, the 200 is fixed for all entry's in that column but it needs to only count the values by the specified month like before

  • AaronC92's avatar
    AaronC92
    Copper Contributor

    Thank you all for the help! this works perfectly! 

     

    Go's to show I need to brush up on my excel skills 😉

  • devyadav2008's avatar
    devyadav2008
    Brass Contributor

    AaronC92

     

    =+COUNTIFS(E2:E7,E11,F2:F7,"<>")

     

    please find attached screen shot

     

    Month 
    nov1
    dec1
    nov 
    dec 
    nov2
    dec2
      
      
      
    dec=+COUNTIFS(E2:E7,E11,F2:F7,"<>")

     

  • adversi's avatar
    adversi
    Iron Contributor

    AaronC92 

    You will need to apply a COUNTIFS function since you are reviewing more than one criteria. See the example below:

Resources