+ Reply to Thread
Results 1 to 7 of 7

Formula assistant to count records in two columns based on certain criteria

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Formula assistant to count records in two columns based on certain criteria

    Hi,

    Can any please advise me of the formula I require e.g. VLOOKUP or COUNTIF to do the following:-

    Filter on column ‘R’ and select ‘No’

    Filter on column ‘F’ and de-select ‘ROM’ and Baseline’

    and return the number of records found



    Any assistance would be greatly appreciated

    Many thanks in advance

    Regards

    Rob
    Rob

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula assistant to count records in two columns based on certain criteria

    I think you forgot to attach example excel file

    To attach an Excel file to your post,
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Formula assistant to count records in two columns based on certain criteria

    May be try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by shukla.ankur281190; 10-27-2017 at 06:03 AM. Reason: missed to read OP
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    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,434

    Re: Formula assistant to count records in two columns based on certain criteria

    Maybe like this:

    =COUNTIF(R:R,"No")-COUNTIFS(R:R,"No",F:F,"ROM")-COUNTIFS(R:R,"No",F:F,"Baseline")
    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.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Formula assistant to count records in two columns based on certain criteria

    EDIT
    i see you had replies, while i was composing this

    so ignore

    so you want to count
    the rows where

    R = "NO"
    F does not equal "ROM" or "Baseline"

    theres probably a better way using sumproduct
    but
    =COUNTIFS(R2:R8,"NO")-COUNTIFS(R2:R8,"NO",F2:F8,"ROM")-COUNTIFS(R2:R8,"NO",F2:F8,"baseline")

    that counts the total number of NOs
    then how many NOs have ROM
    and
    how many rows have baseline and takes the away

    countifs is using an AND - so to use one formula all must match
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula assistant to count records in two columns based on certain criteria

    Or (maybe):

    =COUNTIF(R:R,"No")-SUM(COUNTIFS(R:R,"No",F:F,{"ROM","Baseline"}))

    Untested.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Formula assistant to count records in two columns based on certain criteria

    Hmmm, no sample, so trying to find out what shall work, I'd opt for simple:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    it couunts only rows where in R there is "No" and there is neither ROM nor Baseline in column F
    Last edited by Kaper; 10-27-2017 at 06:01 AM.
    Best Regards,

    Kaper

+ 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] count unique records in one column based on criteria in a different column
    By rxg2669 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-10-2015, 12:38 AM
  2. Count records in table based on criteria, select and paste to a new spreadsheet
    By thisguy4000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2014, 09:43 AM
  3. Identify records based on criteria from two different columns. Need help!
    By littlepaulie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2014, 05:40 PM
  4. [SOLVED] count and sum based on criteria in multiple columns
    By BBCline in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-14-2012, 04:08 PM
  5. Count two columns based on different criteria for each
    By king12yan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-29-2010, 03:16 PM
  6. Merging records / creating new columns based on duplicate records
    By duklaprague in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-19-2007, 10:32 AM
  7. Replies: 0
    Last Post: 07-19-2007, 02:58 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