+ Reply to Thread
Results 1 to 8 of 8

Countifs Simplification

  1. #1
    Registered User
    Join Date
    01-11-2020
    Location
    KSA
    MS-Off Ver
    2013
    Posts
    7

    Countifs Simplification

    Hello..


    I have an issue on the countifs formula where it requires repetitions. Is there any way I can simplify or any approach I will make to get the result. Attaching the sheet I had prepared and the question is at the bottom.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Countifs Simplification

    Hi,

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Too late now of course but had you designed the table in a normalised/regularised data table you'd have been able to use a Pivot Table to analyse and get all sorts of data results without the need for any formulae
    Last edited by Richard Buttrey; 06-10-2020 at 05:13 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Countifs Simplification

    The even rows contain 'work, so your formula will never give an above 0 result. However, this might be what you think you want:

    =COUNTIFS($K$4:$K$346,"Q",$K$5:$K$347,"J")

    Notice the two arrays are offset from each other by one row.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    01-11-2020
    Location
    KSA
    MS-Off Ver
    2013
    Posts
    7

    Re: Countifs Simplification

    Hi Ali,

    Thank you it worked very well. So what that means if the even row contains "work"?

  5. #5
    Registered User
    Join Date
    01-11-2020
    Location
    KSA
    MS-Off Ver
    2013
    Posts
    7

    Re: Countifs Simplification

    H Richard,

    Been thinking using the pivot but this was the format the top management want to see but thanks to your formula. Made my life easier. Great stuff.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Countifs Simplification

    Only you can tell us that. It's your data.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Registered User
    Join Date
    01-11-2020
    Location
    KSA
    MS-Off Ver
    2013
    Posts
    7

    Re: Countifs Simplification

    What I meant is this?

    (Notice the two arrays are offset from each other by one row.)?

    Why do we have to offset it? Thanks.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Countifs Simplification

    Because you want to count "J" in the odd rows where the even rows immediately above them contain "Q".

    $K$5:$K$347,"J" - odd rows (5, 7, 9, etc.)

    $K$4:$K$346,"Q" - even rows (4, 6, 8, etc.)

    Excel 2016 (Windows) 32 bit
    H
    I
    J
    5
    All
    Even
    Odd
    6
    Q
    Q
    7
    J
    J
    8
    Q
    Q
    9
    J
    J
    10
    Q
    Q
    11
    J
    J
    12
    Q
    Q
    13
    X
    X
    14
    Y
    Y
    15
    J
    J
    Sheet: Records (2)
    Last edited by AliGW; 06-11-2020 at 01:41 AM.

+ 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] Formula Simplification If/Or/And/Then/Else
    By snuffnchess in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2016, 08:27 PM
  2. [SOLVED] Formula Simplification
    By brharrii in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 10:46 AM
  3. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  4. Formula Simplification
    By nanocrazy in forum Excel General
    Replies: 2
    Last Post: 04-16-2010, 03:14 AM
  5. if statement Simplification
    By sk81681 in forum Excel General
    Replies: 16
    Last Post: 06-05-2009, 05:24 AM
  6. Simplification help
    By Mike Smith NC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2006, 01:35 PM
  7. [SOLVED] Simplification help
    By Mike Smith NC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-12-2006, 11:05 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