+ Reply to Thread
Results 1 to 8 of 8

Counting Unique Values in an array, excluding counts past today's date

  1. #1
    Registered User
    Join Date
    02-08-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    5

    Counting Unique Values in an array, excluding counts past today's date

    Hi, i am trying to track open proposal activity for our suppliers..
    Currently i'm able to count active RFP's per supplier but not with a date criteria..

    "pending awad" tab, Columns T - X are bidders for a particular project. column Z is the bid due date.
    i want to be able to "count" subcontractor activity, tab "subk RFP activity" in relation to date.. how many are active past today's date, how many between 2 dates?

    any ideas? thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Counting Unique Values in an array, excluding counts past today's date

    T3:X10004 and Z3:Z10004 aren't the same size, but they are conforming (they share the same number of rows), which means NOT a job for COUNTIFS but a job for SUMPRODUCT.

    In worksheet Subk RFP Activity, if I3 were a single date after which you want a count,

    I4: =SUMPRODUCT(('pending award'!$T$3:$X$10004=$E4)*('pending award'!$Z$3:$Z$10004>I$3))

    If K2 were a beginning date, K3 and ending date, and you wanted an inclusive count between those dates

    K4: =SUMPRODUCT(('pending award'!$T$3:$X$10004=$E4)*('pending award'!$Z$3:$Z$10004>=K$2)*('pending award'!$Z$3:$Z$10004<=K$3))

    In both cases, fill the row 4 cell down into rows 5 to 16.

  3. #3
    Registered User
    Join Date
    02-08-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    5

    Re: Counting Unique Values in an array, excluding counts past today's date

    oh my gosh thank you!!! i should've posted earlier, would've saved me hours. thank you!

  4. #4
    Registered User
    Join Date
    02-08-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    5

    Re: Counting Unique Values in an array, excluding counts past today's date

    can you help with one more thing?
    how do i combine multiple values into a single cell?

    i tried the textjoin formula but it's erroring out..

    in subk RFP activity tab, cell H4, i wanted to list all the "req numbers" in one cell after searching the winning bid column.
    so cell H4 should say REQ10007.
    Cell H5 would say REQ10004, REQ10012.

    let me know.. thank you again! last question
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Counting Unique Values in an array, excluding counts past today's date

    Quote Originally Posted by SCMguy View Post
    . . . how do i combine multiple values into a single cell? i tried the textjoin formula but it's erroring out. . . .
    Your profile shows Office 2010 as your Excel version. If so, your version of Excel lacks TEXTJOIN. I believe it was added in Office 2016.

    In Excel 2010, your choices are brute force and VBA user-defined functions. Brute force with any sort of efficiency needs multiple cells per result.

    H4: =SUBSTITUTE(TRIM(IF(COUNT(L4),INDEX('Subk Awarded'!$E$3:$E$200,L4)&" ","")&IF(COUNT(M4),INDEX('Subk Awarded'!$E$3:$E$200,M4)&" ","")&IF(COUNT(N4),INDEX('Subk Awarded'!$E$3:$E$200,N4)&" ","")&IF(COUNT(O4),INDEX('Subk Awarded'!$E$3:$E$200,O4)&" ","")&IF(COUNT(P4),INDEX('Subk Awarded'!$E$3:$E$200,P4)&" ","")&IF(COUNT(Q4),INDEX('Subk Awarded'!$E$3:$E$200,Q4)&" ",""))," ",", ")

    ADDED: OK, this could be shortened to

    H4: =REPLACE(IF(COUNT(L4),", "&INDEX('Subk Awarded'!$E$3:$E$200,L4),"")&IF(COUNT(M4),", "&INDEX('Subk Awarded'!$E$3:$E$200,M4),"")&IF(COUNT(N4),", "&INDEX('Subk Awarded'!$E$3:$E$200,N4),"")&IF(COUNT(O4),", "&INDEX('Subk Awarded'!$E$3:$E$200,O4),"")&IF(COUNT(P4),", "&INDEX('Subk Awarded'!$E$3:$E$200,P4),"")&IF(COUNT(Q4),", "&INDEX('Subk Awarded'!$E$3:$E$200,Q4),""),1,2,"")

    K4: =COUNTIF('Subk Awarded'!$AE$3:$AE$200,E4)
    L4: =MATCH($E4,'Subk Awarded'!$AE$3:$AE$200,0)
    M4: =IF(COLUMNS($L4:M4)<=$K4,MATCH($E4,INDEX('Subk Awarded'!$AE$3:$AE$200,L4+1):'Subk Awarded'!$AE$200,0)+L4)

    Fill M4 right into N4:Q4. Select H4:Q4 and fill down as far as needed. This collects up to 6 req numbers per col H cell. If you need more, fill the col Q formulas right as far as needed and make the col H formulas a lot longer. I called this brute force for a reason.

    As for VBA, I'm certain there are Excel 2010 rough equivalents for TEXTJOIN as VBA user-defined functions if not elsewhere on this site, then certainly on Stack Overflow or on some Excel consultant's web site.
    Last edited by hrlngrv; 02-08-2020 at 11:49 PM. Reason: addendum

  6. #6
    Registered User
    Join Date
    02-08-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    5

    Re: Counting Unique Values in an array, excluding counts past today's date

    thank you again! really appreciate it

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Counting Unique Values in an array, excluding counts past today's date

    As for VBA, I'm certain there are Excel 2010 rough equivalents for TEXTJOIN as VBA user-defined functions if not elsewhere on this site, then certainly on Stack Overflow or on some Excel consultant's web site.
    Here's a link to a UDF by tigeravatar that I've used before TEXTJOIN. It has the added option to ignore duplicates.http://www.excelforum.com/tips-and-t...ml#post3096647
    Dave

  8. #8
    Registered User
    Join Date
    02-08-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    5

    Re: Counting Unique Values in an array, excluding counts past today's date

    ugh thanks again..
    i tried researching these 2 questions below but it kept giving me an error so here i am again..

    You know before you provided a sumproduct formula to count the number of "active bids" in an array after a specific date?
    and you also helped pull text data into a single cell for the "winning bid" suppliers?

    1. Are we able to pull the same data out of the pending award tab, columns T:X, to show bid number and bid description into single cells on the subk RFP activity tab? columns E and F?
    2. what is the formula code to separate information by new row vs. comma?
    in the formula you provided, it separates the consolidated cells by comma. i tried various formulas, mostly with ampersands but couldnt get to work..

    also, i have TEXTJOIN in excel so i guess i have 2016 at least.
    Attached Files Attached Files

+ 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] Counting Unique values with date criteria as an array formula resulting in #N/A
    By Clooney003 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2019, 12:51 PM
  2. Array formula for unique counts with OR conditions
    By bubba930 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2018, 03:27 PM
  3. Array function for counting unique text values
    By saukrippl in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2016, 11:59 AM
  4. [SOLVED] Counting unique cells - totally excluding duplicate values
    By ChanceLipscomb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-26-2016, 12:44 PM
  5. [SOLVED] SUBTOTAL in an Array forumla - Counting unique & repeat values disregarding blanks
    By -AJ- in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-26-2014, 08:44 AM
  6. Replies: 1
    Last Post: 09-30-2012, 03:01 PM
  7. frequency counts excluding repeated values
    By climate in forum Excel General
    Replies: 1
    Last Post: 03-09-2011, 12:59 PM

Tags for this Thread

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