+ Reply to Thread
Results 1 to 4 of 4

Count unique values in Column A, only if value in Column F falls between two dates

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    9

    Count unique values in Column A, only if value in Column F falls between two dates

    Hi all,

    I am hoping someone can help me with developing a formula.

    Column A of my spreadsheet contains enquiry numbers that are normally unique, but are occassionally duplicated due to sub-jobs, etc. The enquiry numbers are a numerical sequence, but prefixed with the letters "JE" (eg. JE2905). Column F contains the date the enquiry was received. I am trying to set up a formula that will count the number of unique enquiries for a given period (say 01/08/2014 to 31/08/2014).

    I have been able to count the total number of enquiries using the following formula, but I haven't been able to work out how to count unique enquiries only.

    Please Login or Register  to view this content.
    I don't have the option of using a helper column.

    I have attached a simplified version of the spreadsheet. The enquiries are recorded in the "Job Register" worksheet. The formula for the above date range would go in cell AA17 of the "Dashboard" worksheet.

    I think the formula developed by sktneer in the following thread (http://www.excelforum.com/excel-form...-in-month.html) is along the lines of what I require, but I don't understand it well enough to make the necessary edits.

    I would greatly appreciate any assistance I can get.

    Sritcho
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count unique values in Column A, only if value in Column F falls between two dates

    If I understand what you want to do...

    This array formula** entered in AA17:

    =SUM(IF(FREQUENCY(IF(TEXT('Job Register'!$F$20:$F$382,"mmmm yyyy")=AA$12&" "&$S17,MATCH('Job Register'!$A$20:$A$382,'Job Register'!$A$20:$A$382,0)),ROW('Job Register'!$F$20:$F$382)-ROW('Job Register'!$F$20)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Seems kind of strange that you only want the formula in that single cell!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    08-26-2014
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Count unique values in Column A, only if value in Column F falls between two dates

    Thanks Tony. Perfect.

    I will use the formula in more than one cell. I figured that once someone had helped me with working out the formula I would be able to edit it as required to use it in other cells. I notice that the way you have written it I can copy and formula paste it straight into the remaining cells in the table.

    Thanks again for your help. Greatly appreciated.

    Sritcho

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count unique values in Column A, only if value in Column F falls between two dates

    You're welcome. Thanks for the feedback!

+ 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. Replies: 8
    Last Post: 05-15-2013, 04:50 PM
  2. [SOLVED] Macro to count unique values in a column, enter it in next column, then delete duplicates
    By pmorisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 03:27 PM
  3. Replies: 11
    Last Post: 01-18-2013, 04:05 PM
  4. Replies: 11
    Last Post: 11-05-2011, 12:34 PM
  5. count no. of dates in a column that falls on certain month & year
    By RawSugar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-20-2005, 06: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