+ Reply to Thread
Results 1 to 7 of 7

=SUM(C18:C20) Calculating wrong missing out cell

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    8

    =SUM(C18:C20) Calculating wrong missing out cell

    =SUM(C18:C20)

    C18=30
    C19=40
    C20=20

    Obviously should add up to 90 but is saying 60

    If i putt it as =SUM(C19:C20)+C18 it does calculate 90.

    Its happening for D18,E18 and so on

    The cell C18 is formula

    =IF(NOT(ISBLANK('16th'!F18)), '16th'!F18, "")

    but C19 is

    =IF(NOT(ISBLANK('17th'!F18)), '17th'!F18, "")

    same really

    Have tried formatting all different cells every way and it just refuses to work.
    Any suggestions?

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: =SUM(C18:C20) Calculating wrong missing out cell

    What do you get from

    =isnumber('16th'!F18)

    My guess would be that it's going to return false, meaning the source data contains numbers formatted as text.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: =SUM(C18:C20) Calculating wrong missing out cell

    You get better help if you post an Excel-example of your workbook, without confidential information.

  4. #4
    Registered User
    Join Date
    06-21-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: =SUM(C18:C20) Calculating wrong missing out cell

    =isnumber('16th'!F18) does return false

    i suspected that i just cant find the fix

    I have formatted the cells again to general and that doent work

    I have tried uploading workbook but it is too big

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: =SUM(C18:C20) Calculating wrong missing out cell

    Have cell 18 force its input into a number.
    Please Login or Register  to view this content.
    That should fix it.

  6. #6
    Registered User
    Join Date
    06-21-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: =SUM(C18:C20) Calculating wrong missing out cell

    Yes ben

    Top man

    Much appreciated the end of this workbook is now in sight

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: =SUM(C18:C20) Calculating wrong missing out cell

    If numbers are entered in text format then just changing the cell format doesn't fix it, the values have to be re-entered, or you at least have to make excel think that they have.

    One way is with a simple code loop, make sure that you have the offending '16th' sheet selected before you continue.

    Press Alt + F11 to open the code editor, then select Insert > Module from the editor menu.

    Copy the code below and paste it into the editor, then press f5 to run the code.

    Please Login or Register  to view this content.

+ 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