+ Reply to Thread
Results 1 to 10 of 10

IF/Countif help meeded

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57

    IF/Countif help meeded

    trying to get this formula to work. any suggestions?

    =IF(L4:L33>2,countif(M4:M33,>6),"")

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: IF/Countif help meeded

    Why the Greater than two Criteria? Doesn't seem necessary if you are counting the number of >6 values.

    =COUNTIF(M4:M33,">6")


    Edit:
    Whoops nevermind, I thought both 'greater than's were referencing the same column
    Last edited by Speshul; 07-10-2014 at 10:17 AM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF/Countif help meeded

    Maybe like this

    =COUNT(IF(L4:L33>2,COUNTIF(M4:M33,">6")))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    L
    M
    N
    O
    4
    1
    5
    3
    5
    3
    10
    6
    2
    1
    7
    4
    15
    8
    3
    12
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57

    Re: IF/Countif help meeded

    Because I want to know how many products have a certain attribute greater than six only if there other attribute is greater than 2...

  5. #5
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57

    Re: IF/Countif help meeded

    Sweet Alkey that worked. thanks for the help

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: IF/Countif help meeded

    Sorry, misread the formula, thought both greater thans were looking in the same column which would have made no sense ^^

    Control-Shift-Enter:



    {=IF(L4:L33>2,COUNTIF(M4:M33,">6"))}

  7. #7
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57

    Re: IF/Countif help meeded

    Can you only have one array per sheet? I tried doing this again in a different cell for different criteria and it deleted arrray from first cell

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF/Countif help meeded

    Actually this should do it better. No Ctrl+ Shift+Enter

    =COUNTIFS(L4:L33,">2",M4:M33,">6")

  9. #9
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: IF/Countif help meeded

    If you edit an array formula (such as copying the formula from the formula bar), it removes the {}'s, you have to control-shift-enter every time you click into an array formula

  10. #10
    Registered User
    Join Date
    06-27-2014
    Location
    Arkansas
    MS-Off Ver
    365
    Posts
    57

    Re: IF/Countif help meeded

    nevermind its working now thanks for the 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. [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