+ Reply to Thread
Results 1 to 12 of 12

Counting

  1. #1
    Registered User
    Join Date
    01-31-2008
    Posts
    20

    Counting

    I have a list of birds entered on an Excel spreadsheet. As I see each one, I want to 'tick' it ( enter a number 1 or whatever) and have a running total. All the people I have asked or Help pages I have looked at talk about the 'formula palette' and 'arguments' , 'value 1' and ' circular formulae' , none of which mean anything to me. Am I asking something that is beyond Excel or is there a comprehensible list of instructions somewhere for using the spreadsheet? Or maybe someone here can explain. Thank you.
    John Hopkins

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you put a 1 beside each bird in the adjacent cell, then you can just sum those cells.

    So if A1:A100 contain the bird names and B1:B100 contain the 1's when bird is seen...

    then in B101 or anywhere else enter formula =Sum(B1:B100)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Take a look at countif

    http://www.j-walk.com/ss/excel/tips/tip52.htm

    http://www.contextures.com/xlFunctions04.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    01-31-2008
    Posts
    20
    Thanks NBVC,

    I tried what you said, but as soon as I highlighted a cell to enter a '1' , the =SUMB1-B10002 ( there are over 10000 birds in the list ) changed to #NAME? . What did I do wrong?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    the range should be enclosed in parantheses and separated with a colon

    e.g. =SUM(B1:B10002)

  6. #6
    Registered User
    Join Date
    01-31-2008
    Posts
    20
    Sorry, yes, not paying attention. I entered =SUM(B8:B10002) but when I clicked 'enter' it turned into a zero....and adding a '1' to the cells above didn't alter that total. This isn't easy , is it !!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Perhaps your column B is somehow preformatted as text?

    I hope you are entering just a number 1 with no apostrophes and/or quotes?

    If yes, select column B and go to Data|Text to Columns and just click Finish....

    does that fix it?

  8. #8
    Registered User
    Join Date
    01-31-2008
    Posts
    20
    That doesn't help.....if I have enetered anything at all in column B, then when I go to Data, the 'text to columns' line isn't highlighted so I can't click on it. If I click 'data' then 'text to columns' when there is nothing entered in column B , I get a box with 'no data was selected to parse'.

  9. #9
    Registered User
    Join Date
    01-31-2008
    Posts
    20
    Maybe we should start from scratch. I have a list of bird names, with no check marks ( 1's or anything else ) entered in column B. What should I do ?

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by jhopkins
    That doesn't help.....if I have enetered anything at all in column B, then when I go to Data, the 'text to columns' line isn't highlighted so I can't click on it. If I click 'data' then 'text to columns' when there is nothing entered in column B , I get a box with 'no data was selected to parse'.
    Just enter a 1 anywhere in column B and then select the entire column by clicking on the column header (B)....then do the text-to-columns thing.

  11. #11
    Registered User
    Join Date
    01-31-2008
    Posts
    20
    OK..progress....."text to columns "is now highlighted , so I can click on it....but when I do, I'm asked if my data is delimited or fixed width.....I don't understand what either of those mean.

  12. #12
    Registered User
    Join Date
    01-31-2008
    Posts
    20
    Success !!! I used the COUNTIF method as suggested by VBA Noob with a "1" as the criterion and that worked fine. It would be nice if I could do it with any number or letter counting as one 'tick' to be added...but think I'll quit while I'm ahead. Thanks a lot guys.
    John.

+ 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