+ Reply to Thread
Results 1 to 11 of 11

Formula for counting values in different columns/rows

  1. #1
    Registered User
    Join Date
    12-23-2015
    Location
    outerspace
    MS-Off Ver
    not sure
    Posts
    17

    Formula for counting values in different columns/rows

    Hi all,

    I need assistance in sorting out the following:
    I have column A that contains several fields, like apples, bananas etc.. on each row of this column i have another value containing the status, for example purchased, not purchased.

    I need a formula that can tell me how many apples were purchased and how many were not.
    In the attachment its much clearer.

    Thanks for your help...
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Formula for counting values in different columns/rows

    B10: =COUNTIFS($B$2:$B$6,$A10,$C$2:$C$6,B$9)

    copy down and across

  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: Formula for counting values in different columns/rows

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

    fiil down and to the right

  4. #4
    Registered User
    Join Date
    12-23-2015
    Location
    outerspace
    MS-Off Ver
    not sure
    Posts
    17

    Re: Formula for counting values in different columns/rows

    Thanks guys for your replies, but I'm still not getting there,
    Attached is the real file i'm working on and basically at the bottom table I need to insert the formula in D23 that tells me how many times the word "charting" in column C has been closed in column H.

    Hope this is clearer...
    Thanks again for your help.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    427

    Re: Formula for counting values in different columns/rows

    Quote Originally Posted by Emirates View Post
    Thanks guys for your replies, but I'm still not getting there,
    Attached is the real file i'm working on and basically at the bottom table I need to insert the formula in D23 that tells me how many times the word "charting" in column C has been closed in column H.

    Hope this is clearer...
    Thanks again for your help.


    Hi Emirates,

    The issue was that the string used in the counting range and criteria was not same ( additional spaces maybe)..
    Check the attachment.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-23-2015
    Location
    outerspace
    MS-Off Ver
    not sure
    Posts
    17

    Re: Formula for counting values in different columns/rows

    Hi Chullan88 thanks for the file, it works fine when the field selected is "Charting" but when i copy the formula on the lower fields it does not work.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,260

    Re: Formula for counting values in different columns/rows

    See amended formulae.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Registered User
    Join Date
    12-23-2015
    Location
    outerspace
    MS-Off Ver
    not sure
    Posts
    17

    Re: Formula for counting values in different columns/rows

    Hi Glenn,
    Thanks a lot for that, it works perfectly well but the only frustrating part is that it works only for charting and Flight Dispatch... does not work for Flight plan, FMS, ATM although the same formula is applied,
    Any thoughts?

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,260

    Re: Formula for counting values in different columns/rows

    Try removing the trailing space after ATM and FMS in your horrible AB 26 & 27 merged cells. it works fine.

  10. #10
    Registered User
    Join Date
    12-23-2015
    Location
    outerspace
    MS-Off Ver
    not sure
    Posts
    17

    Re: Formula for counting values in different columns/rows

    OMG that was so ... Thanks Glenn work perfectly fine now! :-)

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,260

    Re: Formula for counting values in different columns/rows

    Glad to have helped.

+ 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. Counting occurrences not values.. Counting blocks of words in columns
    By Flydd in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-01-2016, 06:42 PM
  2. Need to Paste Values from Formula into Columns with Different Numbers of Rows
    By VBAnewbie9314 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2014, 08:46 AM
  3. [SOLVED] formula to determine how many rows have different values in two columns (mismatches)
    By shardin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2014, 07:41 AM
  4. Replies: 1
    Last Post: 02-18-2013, 01:46 AM
  5. Avoid counting rows/columns with formula but no values
    By magnuc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2006, 06:30 AM
  6. [SOLVED] Counting rows, then counting values.
    By Michael via OfficeKB.com in forum Excel General
    Replies: 7
    Last Post: 08-04-2005, 06:05 PM
  7. [SOLVED] Counting Rows Then Counting Values in Columns
    By Michael via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2005, 12:05 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