+ Reply to Thread
Results 1 to 7 of 7

Countif(s) automatic recognition of a name

Hybrid View

  1. #1
    Registered User
    Join Date
    01-31-2017
    Location
    Chester
    MS-Off Ver
    2013
    Posts
    26

    Countif(s) automatic recognition of a name

    Hi,

    I know how to use countif and countifs, but how can I apply it to a new name or a new company without assigning it as a criteria?

    For example, I have a list of names and I need to calculate how much holiday time a certain person has had. Of course, I can use countif BUT supposing I add a new name? Is there anyway around this?

    Thanks,

    Jaime.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Countif(s) automatic recognition of a name

    Quote Originally Posted by JaimeP View Post
    BUT supposing I add a new name? Is there anyway around this?
    What does it mean ?? Please explain what you want to achieve and what are criteria.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Countif(s) automatic recognition of a name

    Are you wanting a dynamic list of names which is updated if a new name appears in your data?
    see attached workbook


    on sheet "HolidayCount" ("Names" is a named range)
    Array formula in A2 copied down - entered with {SHIFT} {CTRL} {ENTER}
    Formula: copy to clipboard
    =IFERROR(INDEX(Names, MATCH(0,COUNTIF($A$1:A1, Names), 0)),"")


    Formula in B2 copied down
    Formula: copy to clipboard

    =IF(A2>"A",COUNTIFS(Names,A2,Data,"H"),"")
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Registered User
    Join Date
    01-31-2017
    Location
    Chester
    MS-Off Ver
    2013
    Posts
    26

    Re: Countif(s) automatic recognition of a name

    Hi,

    many thanks for that. What I'll do is send you a copy of my sheet giving you a rough idea of what I'm aiming for.

    Thanks for your help,
    Jaime.

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Countif(s) automatic recognition of a name

    The easiestway to deal with this scenario is to use pivot tables as they can just be refreshed, if you use a dynamic range

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Countif(s) automatic recognition of a name

    The suggestion from @davsth is a good one too
    Attached is earlier workbook with the Pivot Table option included


    Edit
    I omitted making the range dynamic - that could be easily achieved by making the source range an Excel "Table" before creating the pivot table
    Attached Files Attached Files
    Last edited by kev_; 03-24-2017 at 10:29 AM.

  7. #7
    Registered User
    Join Date
    01-31-2017
    Location
    Chester
    MS-Off Ver
    2013
    Posts
    26

    Re: Countif(s) automatic recognition of a name

    Hi, Kev

    I'll look into this. Thank you.
    Jaime.

+ 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. Automatic Cell recognition
    By georgeanaprop in forum Excel General
    Replies: 7
    Last Post: 09-04-2009, 06:56 AM
  2. Countif - recognition problems with dates
    By simoncottle in forum Excel General
    Replies: 5
    Last Post: 04-04-2006, 03:55 PM
  3. [SOLVED] COUNTIF and automatic type conversion problem
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] COUNTIF and automatic type conversion problem
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  5. COUNTIF and automatic type conversion problem
    By joes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. COUNTIF and automatic type conversion problem
    By joes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. COUNTIF and automatic type conversion problem
    By joes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. COUNTIF and automatic type conversion problem
    By joes in forum Excel General
    Replies: 2
    Last Post: 07-25-2005, 11:05 AM

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