Results 1 to 7 of 7

count based based on 2 columns

Threaded View

  1. #1
    Registered User
    Join Date
    01-31-2017
    Location
    IRELAND
    MS-Off Ver
    excel 2010
    Posts
    27

    count based based on 2 columns

    I have 3 columns
    column a is a horse race id
    column 2 is a horse name from that race
    column 3 is a P or N
    I have used 2 horses from the first race and 2 from the second and stripped out all the other columns.

    what I need is shown ..I need a formula to count the number of N and P
    each horse in each race shown in col d and col e

    it must be able to drag down for thousands of rows

    thanks very much

    race_no horse PN
    20150219CHELM_6:40 Ada Lovelace P
    20150219CHELM_6:40 Ada Lovelace N
    20150219CHELM_6:40 Ada Lovelace P
    20150219CHELM_6:40 Ada Lovelace N
    20150219CHELM_6:40 Ada Lovelace N
    20150219CHELM_6:40 Olney Lass N
    20150219CHELM_6:40 Olney Lass N
    20150219CHELM_6:40 Olney Lass P
    20150219CHELM_6:40 Olney Lass P
    20150219CHELM_7:10 Caledonia Laird P
    20150219CHELM_7:10 Caledonia Laird N
    20150219CHELM_7:10 Welsh Gem N
    20150219CHELM_7:10 Welsh Gem N

    race_no horse PN PCOUNT NCOUNT
    20150219CHELM_6:40 Ada Lovelace P 2 3
    20150219CHELM_6:40 Ada Lovelace N 2 3
    20150219CHELM_6:40 Ada Lovelace P 2 3
    20150219CHELM_6:40 Ada Lovelace N 2 3
    20150219CHELM_6:40 Ada Lovelace N 2 3
    20150219CHELM_6:40 Olney Lass N 2 2
    20150219CHELM_6:40 Olney Lass N 2 2
    20150219CHELM_6:40 Olney Lass P 2 2
    20150219CHELM_6:40 Olney Lass P 2 2
    20150219CHELM_7:10 Caledonia Laird P 1 1
    20150219CHELM_7:10 Caledonia Laird N 1 1
    20150219CHELM_7:10 Welsh Gem N 0 2
    20150219CHELM_7:10 Welsh Gem N 0 2
    Attached Files Attached Files
    Last edited by chester12; 08-23-2017 at 02:21 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sum across columns based on column headers or count of columns
    By RandiLee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2016, 09:59 AM
  2. Count Unique Values based on two columns
    By mpower1750 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2016, 09:54 PM
  3. [SOLVED] Count based on difference of two columns
    By loafofbrett in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2014, 03:49 PM
  4. [SOLVED] Count unique entries based on two columns
    By gradient in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2013, 01:51 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. Count based on rows and columns
    By statenja in forum Excel General
    Replies: 4
    Last Post: 06-23-2009, 04:57 PM
  7. formula to get the count based on criterial in two or more columns
    By sunilbm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-03-2007, 01:13 PM

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