Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Feb 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding spefic numbers in columns (1)

    Can someone please help a "basic excel" user. I have a spread sheet that in the cells contain one of the following numbers 1,2,or 3. These are in columns. I need to be able to add only the number 1s, NOT add the 2s or 3s. Is there a simple formular out there
    Thanks: Peter

  2. #2
    5 Star Lounger
    Join Date
    Aug 2004
    Location
    Connecticut, USA
    Posts
    816
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Adding spefic numbers in columns (1)

    Since you are adding the 1s, you can use the COUNTIF() function
    =COUNTIF(A1:H1,"=1") will add all 1's in row 1 in columns A through H.

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Adding spefic numbers in columns (1)

    Welcome to Woody's Lounge!

    And if you had wanted to add the 3s together in cells A1:H1, you could have used

    =3*COUNTIF(A1:H1,3)

    or

    =SUMIF(A1:H1,3)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •