+ Reply to Thread
Results 1 to 2 of 2

Excel 2003 Sum question?

  1. #1
    Registered User
    Join Date
    01-02-2007
    Posts
    1

    Excel 2003 Sum question?

    have a group of columns that use a formula to pull data from another sheet. An example of my formula is below.

    =IF(AND('SS7 Numbers'!A8=1,'SS7 Numbers'!B8=1,'SS7 Numbers'!N8="CHUCK"),"1","0")

    When information is entered on the mane sheet the formula above will place a “1” or a “0” in my cell on another Excel page. I then go to the bottom of the new sheet and try to sum the column and no mater how many “1” are in the column the sum will only give the answer of “0”. I am using =SUM(B2:B9). If I take the same cells and go B2+B3+B4+B5+B6+B7+B8+B9 and enter it will give me the correct answer. Is there a way to tell Excel to Sum the value (B2:B9) to get the correct answer?

    The spreadsheet I am going to make will have more that 9 rows and would be very hard to get the sum to work using (B3+B4+B5+B6+B7+B8+B9)

    Thanks

    Chuck

  2. #2
    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
    Hi,

    Just remove the "" from around the 1 and 0. The "" makes excel think it is text.

    =IF(AND('SS7 Numbers'!A8=1,'SS7 Numbers'!B8=1,'SS7 Numbers'!N8="CHUCK"),"1","0")

    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 !!!

+ 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