+ Reply to Thread
Results 1 to 7 of 7

Counting Data w/Look-up - without using an Array

  1. #1
    Forum Contributor
    Join Date
    03-19-2016
    Location
    Chicago, IL
    MS-Off Ver
    Office 2016 Professional
    Posts
    388

    Counting Data w/Look-up - without using an Array

    Hello,

    See the attached spreadsheet. I need help applying the logic below to the spreadsheet. The formula's themselves, I suspect, won't be that difficult, but need to be applied to the lookup tab and I need to avoid using array's as my actual data will contain many rows/columns. The logic below is very similar for these so hopefully that will be easier.

    Thank you for your help!!!!!!

    If the Value in Column AK is equal to value in the Look-Up Tab (Column A), Count the names and output the value in Column D. The name of the associate (Column A) should match to the Lookup File (Column D) and output in the correct value for each associate.

    If the Value in Column AV is equal to value in the Look-Up Tab (Column B), Count the names and output the value in Column E. The name of the associate (Column A) should match to the Lookup File (Column D) and output in the correct value for each associate.

    If the Value in Column AW is equal to value in the Look-Up Tab (Column C), Count the names and output the value in Column F. The name of the associate (Column A) should match to the Lookup File (Column D) and output in the correct value for each associate.

    If Column AK AND Column AV have the same value, count the names and output the value in Column C. The name of the associate (Column A) should match to the Lookup File (Column D) and output in the correct value for each associate.

    IF Column CJ = "Complex" AND Column L = "New", count the number in Column I for each unique associate in the lookup. The name of the associate (Column A) should match to the Lookup File (Column D) and output in the correct value for each associate.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,412

    Re: Counting Data w/Look-up - without using an Array

    Please add some manual results so we can check the results of any formulae: cover all conditions specified in your post.

    This probably requires adding more data as there usually just one entry per associate on your file.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,412

    Re: Counting Data w/Look-up - without using an Array

    Questions:

    Can the entries in Column B of "Lookup" appear in column AK? And similarly for AV and AW?

    IF Column CJ = "Complex" AND Column L = "New", count the number in Column I
    I is a date so you simply want a count of non-blanks for a given associate?

  4. #4
    Forum Contributor
    Join Date
    03-19-2016
    Location
    Chicago, IL
    MS-Off Ver
    Office 2016 Professional
    Posts
    388

    Re: Counting Data w/Look-up - without using an Array

    I added the manual expected values.

    One update for the last formula.

    IF Column CJ = "Complex" AND Column L = "New", count the number in Column I for each unique associate in the lookup (Column AV matching Column B in the lookup). The name of the associate (Column A) should match to the Lookup File (Column D) and output in the correct value for each associate.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-19-2016
    Location
    Chicago, IL
    MS-Off Ver
    Office 2016 Professional
    Posts
    388

    Re: Counting Data w/Look-up - without using an Array

    Questions:

    Can the entries in Column B of "Lookup" appear in column AK? And similarly for AV and AW?

    Yes, the entries can appear in AK, AV or AW.

    IF Column CJ = "Complex" AND Column L = "New", count the number in Column I
    I is a date so you simply want a count of non-blanks for a given associate?

    Column I should not be a date (It should output a number, and I have made that update to the format of the column). I would like the aggregate count for an associcate in that column

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,412

    Re: Counting Data w/Look-up - without using an Array

    Column defined should be C,D,E and B not as your description!
    Last edited by JohnTopley; 11-04-2016 at 04:50 AM.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,412

    Re: Counting Data w/Look-up - without using an Array

    I created 4 named ranges based on "Lookup":

    CSC, PRIMARY, SECONDARY, UNIQUE

    All formulae are of this form:

    in B2

    =IFERROR(IF(MATCH($A2,UNIQUE,0),COUNTIFS('Raw Data'!$AK$2:$AK$100,$A2,'Raw Data'!$AV$2:$AV$100,$A2),0),0)

    Check if Associate is in the appropriate range (CSC etc): if YES, then do the COUNTIF.

    in C2

    =IFERROR(IF(MATCH($A2,CSC,0),COUNTIF('Raw Data'!$AK$2:$AK$100,$A2),0),0)

    in D2

    =IFERROR(IF(MATCH($A2,PRIMARY,0),COUNTIF('Raw Data'!$AV$2:$AV$100,$A2),0),0)

    in E2

    =IFERROR(IF(MATCH($A2,SECONDARY,0),COUNTIF('Raw Data'!$AW$2:$AW$100,$A2),0),0)

    in H2

    =IFERROR(IF(MATCH($A2,UNIQUE,0),COUNTIFS('Raw Data'!$CJ$2:$CJ$100,"Complex",'Raw Data'!$L$2:$L$100,"New",'Raw Data'!$I$2:$I$100,$A2),0),0)
    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] help in counting records using array
    By civram1982 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-08-2014, 04:55 AM
  2. Help Required with counting in Array
    By priamlau in forum Excel General
    Replies: 1
    Last Post: 05-30-2012, 03:42 PM
  3. Counting with Array Formula
    By andrewc in forum Excel General
    Replies: 4
    Last Post: 09-12-2011, 04:25 AM
  4. Counting Data in a 2-column Array (with Duplicates)
    By gwoaai2 in forum Excel General
    Replies: 1
    Last Post: 08-23-2008, 11:42 AM
  5. Counting elements in an array
    By AndySuk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2008, 12:17 PM
  6. [SOLVED] Counting with Array Formula
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-20-2005, 01:05 PM
  7. Counting elements in an Array
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2005, 02:09 AM
  8. [SOLVED] Counting Strings in an Array
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-16-2005, 06:06 AM

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