+ Reply to Thread
Results 1 to 4 of 4

Function for complex count

  1. #1
    Registered User
    Join Date
    10-05-2005
    Posts
    7

    Function for complex count

    Hi all,

    I would like to count some values in Excel. But it's not to simple because I have to columns like this

    A B
    a 1
    b 1
    a 2
    c 1
    a 1

    I need that the function count the 'a' characters and add to the result the numbers of column 'B', so finally, the result would be this, for value 'a':

    4

    Is there any function for it?

    Thanks

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try,

    =COUNTIF(A1:B5,"a")
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    199
    Perhaps this if you are trying to sum all of the numbers together in column B when the corresponding row in column A has the letter "A" in it. Based on your post and the total being 4, I am guessing that is what you want.

    =SUMIF(A1:A10,"A",B1:B10)

    Hope that helps.

    Adjust the range as necessary.

  4. #4
    Registered User
    Join Date
    10-05-2005
    Posts
    7
    Thank you,

    I tried SUMIF, and it's working correcty!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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