+ Reply to Thread
Results 1 to 3 of 3

Countif help

  1. #1
    Registered User
    Join Date
    04-16-2014
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2013
    Posts
    13

    Countif help

    So I'm trying to get a formula that counts only unique values based on 2 columns. If you see the attached image as an example, I want the formula to tell me that Order 55370 counts as having Base# KH-1525HR only 1. Though that part has several line items on that order (Job#s) I only want it to tell me that this individual order ordered that base # once. Does this make sense?

    Capture.JPG

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,977

    Re: Countif help

    First, you need to have a column of non-unique values for the JobNo 55370-01 and 55370-02 are seen as unique by Excel. So split that column into two, or use a helper column with the first 5 digits only.

    Then, array-enter : enter using Ctrl-Shift-Enter a formula like

    =SUM(1/COUNTIFS(C2:C10,C2:C10,D2:D10,D2:D10))

    Where C and D have the Job No (without -01, -02) and Base#.

    This formula does not handle blanks well, so make sure that you only reference filled cells.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    04-16-2014
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Countif help

    Fantastic!

    The Array portion is what I wasn't getting on my own. Works great.

    Thanks

+ 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. [SOLVED] 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