+ Reply to Thread
Results 1 to 8 of 8

COUNTIF Adding New Reference cells

  1. #1
    Registered User
    Join Date
    08-03-2018
    Location
    Chicago, USA
    MS-Off Ver
    2016
    Posts
    16

    COUNTIF Adding New Reference cells

    So what I'm trying to do is have an attendance sheet where attendee id numbers are put in one column and it removes their name from an absent list. This way, when all attendees have "shown up", I can quickly see who is missing.

    The problem I am having is updating the master attendee list. If I need to add someone in the middle of the list (for alphabetical order sake) the COUNTIF function I am using does not add.

    I am using the insert cell command to add more attendees to the list (in columns H and I), but column E will not update my "Absent" list.

    I have attached pictures and a sample workbook. Is there any way to make these lists dynamic so I can easily update my Attendee and ID list on the fly?

    Any advice would be really appreciated!!

    Working Page.PNG

    Not Working Page.PNG
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-03-2018
    Location
    Chicago, USA
    MS-Off Ver
    2016
    Posts
    16

    Re: COUNTIF Adding New Reference cells

    My thinking is that this may need to be a VBA thing...

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: COUNTIF Adding New Reference cells

    Instead of removing names from a list, consider using Conditional Formatting?
    You could either highlight names not yet "arrived" or set font to white on white for those that have arrived - thereby "leaving" absentees showing.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: COUNTIF Adding New Reference cells

    Whilst I dislike the indirect function the below may work in E3 and copy down

    =IF(COUNTIF($B$3:$B$100,INDIRECT("I"&(ROW()+1)))>0,"",INDIRECT("H"&(ROW()+1)))

  5. #5
    Registered User
    Join Date
    08-03-2018
    Location
    Chicago, USA
    MS-Off Ver
    2016
    Posts
    16

    Re: COUNTIF Adding New Reference cells

    This is a pretty solid workaround, I am gonna mess around with this!

  6. #6
    Registered User
    Join Date
    08-03-2018
    Location
    Chicago, USA
    MS-Off Ver
    2016
    Posts
    16

    Re: COUNTIF Adding New Reference cells

    I've never seen the INDIRECT function, I'll look into it! Seriously, thanks so much for the help!

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

    Re: COUNTIF Adding New Reference cells

    It works in this situation but I don't like it for some of the reasons below. Although for your problem it works!

    https://fastexcel.wordpress.com/2016...evil-function/

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: COUNTIF Adding New Reference cells

    [QUOTE=davsth;5076458]It works in this situation but I don't like it for some of the reasons below. QUOTE]

    The points mentions in the attachment are valid. However, like many things excel, you need to choose the right cell for the job. There are some situations where, other than VBA, there is nothing that will do what you need (try referencing a changing sheet name in a single cell, without using it?)

    Im not a huge fan of structured tables, many others swear by them - again, right tool for the job

+ 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. Copy formula across cells not changing cell reference COUNTIF
    By rj16184 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-08-2018, 05:55 AM
  2. [SOLVED] Countif code that counts cells based on text string specified in a reference cell
    By john quinn in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-08-2015, 06:30 PM
  3. How to COUNTIF adding conditions on cells relative to each other?
    By Fallschirmjaeger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2014, 04:54 AM
  4. [SOLVED] Adding Conditions to change the range of cells used in a countif formula
    By tcusack in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-22-2013, 02:12 PM
  5. Adding numbers from cells that match a criterion from COUNTIF ?
    By annekrijn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-20-2013, 11:25 AM
  6. Does COUNTIF work if adding non-sequential cells i.e. not a range
    By BelindaJS in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-27-2012, 11:07 AM
  7. [SOLVED] Reference Cells with Sumif or Countif
    By GK in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-03-2005, 02:06 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