+ Reply to Thread
Results 1 to 5 of 5

If, And, Countif??

  1. #1
    Registered User
    Join Date
    07-10-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    34

    If, And, Countif??

    Hi there,

    Having an issue combining if, and, & countif formula. Not sure if this is the most efficient way to execute what I'm trying to do.

    Basically, I'm trying to do the following, which is based on a couple conditions:

    1)If there is any value in E19 and there is a 'W' in E8, then output in C19 will be 1, which would be added up and divided by a number in B4.
    2)If there is any value in E19 and there is a 'L' in E8, then output in D19 will be 1, which would be added up and divided by a number in B4.

    My other issue that data that I am using skips columns, ei. E19, G19, I19, K19, etc. and I only know how to deal with data that is in a continuous stream.

    I was having trouble attached the spread sheet, so I've attached a snapshot.

    Thanks for your help in advance... I really appreciate it!

    -Wikster7

    tracker.PNG

  2. #2
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: If, And, Countif??

    You can paste in C19:

    =SUMPRODUCT(($E$8:$N$8="W")*(E$18:N$18="I")*($E19:$N19)^0)/$B$4

    and in D19:

    =SUMPRODUCT(($E$8:$N$8="L")*(E$18:N$18="I")*($E19:$N19)^0)/$B$4

    drag to fill
    Last edited by eibi; 03-29-2016 at 05:51 PM.

  3. #3
    Registered User
    Join Date
    07-10-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    34

    Re: If, And, Countif??

    Hi eibi,

    Thanks for the formulas! They work clients 1 to 5, but once I apply the formulas to clients that only showed up for some deals, I get this #NUM!

  4. #4
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: If, And, Countif??

    Yes -- I see the problem. I didn't allow for blanks.

    Try this instead:

    =SUMPRODUCT(($E$8:$N$8="W")*(E$18:N$18="I")*($E19:$N19<>0))/$B$4

    and

    =SUMPRODUCT(($E$8:$N$8="L")*(E$18:N$18="I")*($E19:$N19<>0))/$B$4

    --------------------------

    *edit:

    Or - if you potentially want to include the value of 0 in your sum:

    =SUMPRODUCT(($E$8:$N$8="W")*(E$18:N$18="I")*($E19:$N19<>""))/$B$4

    and

    =SUMPRODUCT(($E$8:$N$8="L")*(E$18:N$18="I")*($E19:$N19<>""))/$B$4
    Last edited by eibi; 03-29-2016 at 06:00 PM.

  5. #5
    Registered User
    Join Date
    07-10-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    34

    Re: If, And, Countif??

    I used the second set of formulas and they worked great! Thanks for your help eibi - really appreciate it!

+ 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. 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
  2. [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
  3. 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
  4. 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
  5. [SOLVED] How do I use a countif function according to two other countif fu.
    By Kirsty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2006, 07:50 AM
  6. 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. 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