+ Reply to Thread
Results 1 to 4 of 4

COUNTIFS function...

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    2

    COUNTIFS function...

    Hi everyone,

    This is my first post so please let me know if I'm doing anything wrong

    Please see my file attached.

    I need your help to setup a formula the counts cells based on the date and the content of the cell above it.

    I want to setup formulas in B90 to B97 that count the number of times the letter in A90 to A97 appears in E8:R78 if the date in the cell underneath is over a week from TODAY (<TODAY()-7).

    Sorry if I haven't explained this well. Any guidance you could give would be much appreciated! COUNTIFS help please.xlsx

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: COUNTIFS function...

    Hi ericarodgers, welcome to the forum!

    Becuase of the layout for your sheet the only thing I can suggest is to implement a formula for the R's (and other letters), so for example in E10:

    Please Login or Register  to view this content.
    Note the space after R if the date is over a week.

    Then in the count cells you can count how many times "R " appears. So in B90 the count formula would then be:

    Please Login or Register  to view this content.
    Note that this would mess up you total count and this needs changing too so that it totals correctly. For example B83 would now need to be:

    Please Login or Register  to view this content.
    Also conditional formatting rules need to be added to include "R " as well as "R". The same applies to all letters used throughout the sheet. Not ideal I know because this will take time to modify the whole of your worksheet but hopefully this will save time overall when you start to use it.
    Last edited by Harribone; 03-09-2013 at 10:04 AM. Reason: Grammar
    Say thanks, click *

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: COUNTIFS function...

    Try this formula for B89

    =COUNTIFS($E$8:$S$78,A89,$E$9:$S$79,"<"&TODAY()-7)

    Notice how the 2nd range is "offset" by 1 row from the first

    Drag down to B92
    Audere est facere

  4. #4
    Registered User
    Join Date
    01-28-2013
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: COUNTIFS function...

    Thank you daddylonglegs and harribone!

    I used the =COUNTIFS($E$8:$S$78,A89,$E$9:$S$79,"<"&TODAY()-7)and it worked a treat.

    Thanks again for your assistance

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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