+ Reply to Thread
Results 1 to 3 of 3

Error with sum when variable changes

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2013
    Posts
    21

    Error with sum when variable changes

    Hi all. I'm having a bit of a problem with the sum function when a locked cell is being summed. The only way I can explain it is to show you with an example. In Cells b3 & b4, you're supposed to be able to change the numbers and have the cells d7-d107 be the cumulative sum of the cells from c7 to c107. It is perfect when cell b3=2, but whenever I change that number it gives me a number error in cells d7-107. Can anyone help please?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,967

    Re: Error with sum when variable changes

    change the formulas in C to this,...
    =IFERROR(COMBIN((B9-1),($B$3-1))*($B$4^$B$3)*((1-$B$4)^(B9-$B$3)),"")
    (I changed it in D8, so start there and copy up and down)

    The reason D:E are giving errors is because D8 is giving an error, and messing up the =sum()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-28-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: Error with sum when variable changes

    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Error 91 - Object Variable Not Set error with Global Variable
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2013, 06:19 AM
  2. Replies: 1
    Last Post: 07-24-2013, 02:45 PM
  3. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  4. Object Variable or With Block Variable Not Set- Error on Another User Machine
    By dailem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2010, 09:28 AM
  5. Find Method error: -Object variable with block set variable not set
    By bambino_32 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-02-2010, 01:18 AM

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