+ Reply to Thread
Results 1 to 21 of 21

SUMS of (start:end) arguments not working

  1. #1
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    SUMS of (start:end) arguments not working

    Hi guys,

    I have a ('start:end') function that's not working. A simplified example is shown below in the screen shots.

    I want a given cell in sheet1 to produce the sum of factors within a given column/row arrangements and equations from sheet3 and sheet4.

    I've tried all the arguments I can think of in their proper places including the ' arguments before and after start:end but nothing seems to work. My resulting answer is usually #REF!

    Can suggestions and help?

    sheet1.png
    sheet3.png
    sheet4.png
    worksheets.png

    Thanks

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: SUMS of (start:end) arguments not working

    First off post a sample workbook and not photos.
    Second, are you trying to multiply B5 from sheet 1 or the other sheets?
    also the +(start:end!D3*b5) is invalid

    I think you might mean
    Please Login or Register  to view this content.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: SUMS of (start:end) arguments not working

    This is a partial solution. there's a few factors and arguments I need altered to make it work.

    I'd like to post a sample worksheet but how do you do that? I don't seem to have the file attachment icon.

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: SUMS of (start:end) arguments not working

    Hi cheeko, try click on the "Go Advanced" button and you shall see an icon to upload attachment.



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Post Re: SUMS of (start:end) arguments not working

    Thanks. Ok here's the sample worksheet.
    1. The formula in sheet1 is this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    However what I need is essentially this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which should yield 8. (5*1)+(4*0)+(2*0)+(3*1)=8, but incorporating the (start:end) function into it

    I've tried several different combinations but I must be inputting the arguments wrong somehow.

    2. But i also need this formula to satisfy any additions to worksheets.

    e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    so I can simply copy and paste within the (start:end) worksheets when I need to add more.

    Any help would be appreciated. Thanks
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: SUMS of (start:end) arguments not working

    Could you share how does your sheets name looks like? Is't Sheet1, Sheet2, Sheet3, Sheet4...?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  7. #7
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: SUMS of (start:end) arguments not working

    The attachment should show this.

    Sheet1, start, Sheet2, Sheet3, end

  8. #8
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: SUMS of (start:end) arguments not working

    Here's a quick solution, perhaps it could be shorter/simpler

    Formula: copy to clipboard
    Please Login or Register  to view this content.




    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  9. #9
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: SUMS of (start:end) arguments not working

    Hi,

    Although this formula works directly to the sample I provided, it doesn't on my actual file. There is no logical difference between the two files except for how the results are obtained. The sample are entered numbers where as my file are equations. However both follow the exact same sequence.

    However in your example you've listed combination of rows ROW(2:3). In mine it's just products of singular cells, not combinations of rows. B2*B4, G2*G4, etc

    When I change the ROW(2:3) for the single cell I get an #REF! error.

    Perhaps I'm not understanding the formula/arguments but I don't see any multiplication of cells B2 and B4, G2 and G4.
    Likewise I don't know what the "<9.99999999999999E+307" is supposed to represent. Selected rows until infinity...??

    I need the pattern of this formula, in logical terms, translated into an excel formula (proper arguments and characters, etc)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Any other suggestions?

    Quote Originally Posted by alvin-chung View Post
    Here's a quick solution, perhaps it could be shorter/simpler

    Formula: copy to clipboard
    Please Login or Register  to view this content.




    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  10. #10
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: SUMS of (start:end) arguments not working

    Hi cheeko, it will be helpful if you can explain how it doesn't work in your actual file in more details, e.g. returning wrong value? returning error? etc..

    ROW(2:3) is just a way to make an array of {2;3} so that it can works with INDIRECT to get all the sheet name, i.e. Sheet2 and Sheet3 in your case.
    SUMPRODUCT is doing the multiplication job.
    9.99999999999999E+307 is the max number that shall never be reached

    You can simply extend the formula to match your logic to include F2*F4 and H2*H4 on both sheets, try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.





    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,874

    Re: SUMS of (start:end) arguments not working

    Is there some reason that the multiplication and summation have to occur in the same formula? The obvious solution to me (one who is very fond of using helper cells) is to perform the multiplication step in each individual sheet. So, sheet1:B5 might be =B2*B4. Then, the sheet performing the summation can perform the =sum(start:end!b5).

    I guess there's my suggestion -- decide if this all has to be done in one step. If it does, someone else will probably have to provide a solution. If you can bring yourself to separate the multiplication and summation steps, then it seems like it should be as easy as I've suggested here.

    On edit: Another additional thought. If you make sure your helper cells are in a contiguous range on each sheet (or not interfered with by other cells), then your 3D reference can be =sum(start:end!B11:G11) or similar.
    Last edited by MrShorty; 01-15-2014 at 10:29 AM.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMS of (start:end) arguments not working

    If there are only a couple of sheets you can just use the array constant instead of the ROW function:

    =SUMPRODUCT(SUMIF(INDIRECT("'Sheet"&{2,3}...
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  13. #13
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMS of (start:end) arguments not working

    Here's how I would do it.

    EFCheeko.xlsx

  14. #14
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: SUMS of (start:end) arguments not working

    Hi alvin-chung,
    Thanks I thought the 9.99999999999999E+307 must have been something to do along the lines of infinity of some sorts.
    I see the array now only because I don't use arrays that often.

    My error is #REF! It says 'Invalid cell reference error' formula error.png
    I would have to guess this is directly related to the array in the equation. I cannot have an array as such for multiple rows.
    The product needs to come from, for instance, sheet2 of B2*B4 only + sheet3 of B2*B4 only + sheet2 of D2*D4 only + sheet3 of D2*D4 only, etc etc. Using, for instance, B1 or B3 in any sheet or D2 D4 in any sheet will cause a reference error because these cells can be anything from text, to other forms of numbers (%, $), equations, or even blank cells themselves.

    I don't mean to beat a dead horse but that's why I need the formula to follow this pattern
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I just can't get the characters and arguments correct.

  15. #15
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: SUMS of (start:end) arguments not working

    I suppose I could use helper cells like MrShorty suggested by adding another sheet or something. I'm just limited to cell and sheet inputs, additions and removals because most are locked and hidden, except for these ones I need to find equations for.

    The main idea is that as long as I can continually copy and paste these columns with the working sheets (for x-amount of times) without having to add these into the formula manually.

    I need the formula to update automatically when I copy and paste with a sheet and/or copy and paste a sheet within start:end, otherwise I will pull my hear out if I have to do it manually

  16. #16
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: SUMS of (start:end) arguments not working

    To Jonmo1,

    I looked at your example. Simple and clever just one thing regarding cell F6 (B6+D6) in either sheet 2 or 3.....

    Suppose you copy and paste columns A:B or C:D in either sheet 2 or 3. Now, in these sheets you have the same format in columns E:F, G:H, I:J, etc....

    How do you get the formula in cell F6 to adjust automatically so it reads (B6+D6+F6+H6+J6, etc) as I copy and paste?

    Essentially this is the problem. An answer and formula that works for this should solve my issue.

    Thanks
    Quote Originally Posted by Jonmo1 View Post
    Here's how I would do it.

    Attachment 290096

  17. #17
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMS of (start:end) arguments not working

    What will be in the 'between' cells? (C6 E6 G6 etc.)
    I would assume nothing, because there was nothing there to begin with.

    Basically, put the first calculations (=B2*B4 and =D2*D4) in a new previously unused row.
    Say we put them in Row6 for example.
    This way, we are sure that there is nothing in the between cells.
    Then in Say B8 (another previously unused cell)
    =SUM(6:6)
    This will then sum all the values in Row6 no matter how many you add later.

    Then on your summary page as before
    =SUM(start:end!B8)
    Last edited by Jonmo1; 01-15-2014 at 11:08 AM.

  18. #18
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: SUMS of (start:end) arguments not working

    In between these cells you ask are a variety of inputs: more numbers, equations, text, sometimes blank cells, anything.

    The issue is utilizing blank cells somewhere (like you're suggesting) that should work.

    My only hiccup is that many of these cells are already locked, hidden and otherwise unaccessible, including adding more sheets, except for those in between the (start:end) portion.

    But I will give it a try. Thanks

    Quote Originally Posted by Jonmo1 View Post
    What will be in the 'between' cells? (C6 E6 G6 etc.)
    I would assume nothing, because there was nothing there to begin with.

    Basically, put the first calculations (=B2*B4 and =D2*D4) in a new previously unused row.
    Say we put them in Row6 for example.
    This way, we are sure that there is nothing in the between cells.
    Then in Say B8 (another previously unused cell)
    =SUM(6:6)
    This will then sum all the values in Row6 no matter how many you add later.

    Then on your summary page as before
    =SUM(start:end!B8)

  19. #19
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMS of (start:end) arguments not working

    You're welcome

  20. #20
    Registered User
    Join Date
    01-05-2014
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: SUMS of (start:end) arguments not working

    Thanks everyone for your help and input!

    Although many of my cells were locked I was able to use all these suggestions and find a work around even with the spreadsheet limitations.

    Quote Originally Posted by Jonmo1 View Post
    You're welcome

  21. #21
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: SUMS of (start:end) arguments not working

    Great to hear that, and thanks for the repu



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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] Working out betting sums to return a specific profit
    By jessecain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-14-2013, 07:24 AM
  2. Working with Sums & Dates
    By jonnywakey in forum Excel General
    Replies: 1
    Last Post: 07-10-2012, 06:36 AM
  3. Working out sums with dropdown lists
    By NicciB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2008, 04:34 PM
  4. Working with Sums
    By Burt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-21-2005, 05:06 PM
  5. [SOLVED] How can I start Excel 2000 with arguments from the command line?
    By sidibou in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-04-2005, 08:06 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