+ Reply to Thread
Results 1 to 3 of 3

Logic within Countif/Countifs

  1. #1
    Registered User
    Join Date
    11-25-2022
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    3

    Logic within Countif/Countifs

    Good morning all

    Is it possible to write logic into a countif formula? for example, i have two columns, pay last year and pay this year. What i want to know is how many persons have a higher than 10% pay increase when comparing the two columns.

    I would like to do this in a single cell/formula and not use a macro (which i am currently doing) so that were the data updated the count would change.

    Thanks in advance

    Darren

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Logic within Countif/Countifs

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  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,199

    Re: Logic within Countif/Countifs

    try

    =SUMPRODUCT(--(B1:B10>A1:A10*1.1))

    column A is last year, column B is current year
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. COUNTIFS for several criteria with the AND logic.
    By Folshot in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2020, 01:17 PM
  2. COUNTIFs: Multiple ranges, single criterion with OR logic
    By A.Khan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-20-2017, 06:05 AM
  3. [SOLVED] CountIFS using criteria in one cell OR another - OR logic?
    By trubertiam in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-01-2014, 08:48 PM
  4. COUNTIF with OR Logic
    By AlvaroSiza in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-20-2014, 04:34 PM
  5. Help with COUNTIFS logic with monthly date criteria.
    By cbreeze in forum Excel General
    Replies: 2
    Last Post: 02-16-2012, 12:16 PM
  6. if(countif(if...logic help
    By step_one in forum Excel General
    Replies: 5
    Last Post: 09-23-2011, 11:46 AM
  7. [SOLVED] COUNTIF with Logic?
    By Leonhardtk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-10-2006, 07:15 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