+ Reply to Thread
Results 1 to 11 of 11

help on a countif

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    Portugal
    MS-Off Ver
    Excel
    Posts
    6

    help on a countif

    i have a row with M,M1.M2,M3,T,T2,T3,N

    i want to be able count them and make the M,T,M1,T1,N worth 8,5 and the M2,M3,T2,T3 worth 4 and sum all up in the end, i tried like this but didnt count right, can anyone help me pls, ty in advance


    =SUM(COUNTIF(C7:AG7,"M")+COUNTIF(C7:AG7,"M1")+COUNTIF(C7:AG7,"T")+COUNTIF(C7:AG7,"T1")+COUNTIF(C7:AG7,"N")*8,5+SUM(COUNTIF(C7:AG7,"T2")+COUNTIF(C7:AG7,"T3")+COUNTIF(C7:AG7,"M2")+COUNTIF(C7:AG7,"M3")))*4

  2. #2
    Registered User
    Join Date
    07-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: help on a countif

    OK, no commas for decimal places! (OK, maybe that works LOL)

    You need to wrap your sums with parenthesis before you multiply them by the 8.5 or 4
    Last edited by mike65535; 08-01-2013 at 08:42 AM.

  3. #3
    Registered User
    Join Date
    07-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: help on a countif

    =8.5*(sum(countif(c7:ag7,"m")+countif(c7:ag7,"m1")+countif(c7:ag7,"t")+countif(c7:ag7,"t1")+countif(c7:ag7,"n")))+
    4*(sum(countif(c7:ag7,"t2")+countif(c7:ag7,"t3")+countif(c7:ag7,"m2")+countif(c7:ag7,"m3")))

  4. #4
    Registered User
    Join Date
    08-01-2013
    Location
    Portugal
    MS-Off Ver
    Excel
    Posts
    6

    Re: help on a countif

    Quote Originally Posted by mike65535 View Post
    =8.5*(sum(countif(c7:ag7,"m")+countif(c7:ag7,"m1")+countif(c7:ag7,"t")+countif(c7:ag7,"t1")+countif(c7:ag7,"n")))+
    4*(sum(countif(c7:ag7,"t2")+countif(c7:ag7,"t3")+countif(c7:ag7,"m2")+countif(c7:ag7,"m3")))
    i tryed that but only get "###" as result on the cell

  5. #5
    Registered User
    Join Date
    07-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: help on a countif

    Generally, all # symbols means the column is too narrow for the result. Widen it.

  6. #6
    Registered User
    Join Date
    08-01-2013
    Location
    Portugal
    MS-Off Ver
    Excel
    Posts
    6

    Re: help on a countif

    gives me error 508, wasnt only #'s i google it and it says it has too many arguments, how can i reduce or do it on another way so it does give the error?

  7. #7
    Registered User
    Join Date
    07-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: help on a countif

    Try changing the 8.5 to 8,5 or whatever scheme works in your configuration

  8. #8
    Registered User
    Join Date
    08-01-2013
    Location
    Portugal
    MS-Off Ver
    Excel
    Posts
    6

    Re: help on a countif

    tried that didnt seem to work, can i google doc share it with u so u can give a look?

  9. #9
    Registered User
    Join Date
    08-01-2013
    Location
    Portugal
    MS-Off Ver
    Excel
    Posts
    6

    Re: help on a countif

    hmm wait i think it was my bad i was using openoffice when i putted that on google docs worked somehow i think, gonna check if its right, TYTY

  10. #10
    Registered User
    Join Date
    08-01-2013
    Location
    Portugal
    MS-Off Ver
    Excel
    Posts
    6

    Re: help on a countif

    ok all working good now TY U SO MUCH MIKE
    Last edited by sakkin; 08-07-2013 at 08:32 AM.

  11. #11
    Registered User
    Join Date
    07-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: help on a countif

    No, 41 is correct.

    M3 counts 4 and there's 6 of them = 24
    M1 counts 17/2 and there's 2 of them = 17

    24+17 = 41

+ 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] =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
  2. 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
  3. 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
  4. 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
  5. 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

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