+ Reply to Thread
Results 1 to 6 of 6

Can I use 2 Countifs in one excel row?

  1. #1
    Registered User
    Join Date
    03-22-2024
    Location
    Virginia
    MS-Off Ver
    windows
    Posts
    2

    Can I use 2 Countifs in one excel row?

    Hi,

    Trying to figure out lost/new business. Looking for customers who have not purchased in 13 months Jan23-Jan24 but did purchase in Feb24.

    Formula:
    =COUNTIFS(B2:N2,"<1")&(COUNTIFS(O2:O2,">=0")))

    I can't seem to upload or paste.....

    Excel Question.JPG
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,915

    Re: Can I use 2 Countifs in one excel row?

    It's not really clear to me what result you want from that formula, but something like:

    =IF(AND(O4>0,SUM(B4:N4)=0),"Yes","No")

    will return Yes if someone bought in Feb 24 and not in the prior 13 months.
    Rory

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Can I use 2 Countifs in one excel row?

    Could use something like that.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,603

    Re: Can I use 2 Countifs in one excel row?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. No help to be offered until you provide a link or, for members with fewer than 10 posts, a comment telling us where else you have posted this query.)

    cross-posted: https://www.mrexcel.com/board/thread...omers.1256201/

  5. #5
    Registered User
    Join Date
    03-22-2024
    Location
    Virginia
    MS-Off Ver
    windows
    Posts
    2

    Re: Can I use 2 Countifs in one excel row?

    Quote Originally Posted by rorya View Post
    it's not really clear to me what result you want from that formula, but something like:

    =if(and(o4>0,sum(b4:n4)=0),"yes","no")

    will return yes if someone bought in feb 24 and not in the prior 13 months.
    omg!!! This worked.....thank you so very much.

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

    Re: Can I use 2 Countifs in one excel row?

    Administrative Note:

    Did you read and understand post #4? Please acknowledge it.

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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.

+ 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] Countifs, reference cell and countifs from multiple tabs
    By rayted in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2022, 04:30 AM
  2. [SOLVED] Countifs by month and Sum does not match Countifs for year, help with syntax needed
    By m_carter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-08-2021, 10:12 AM
  3. [SOLVED] converting a countifs referencing part of the formula to a indirect countifs
    By DEEARO in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2021, 03:17 PM
  4. Replies: 6
    Last Post: 03-19-2019, 09:14 PM
  5. [SOLVED] Sumproduct to replace countifs as countifs don't work on external source reference
    By KrishnaSagar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2017, 02:33 AM
  6. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  7. Replies: 0
    Last Post: 12-16-2011, 09:01 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