+ Reply to Thread
Results 1 to 8 of 8

sum contents in rows without setting an explicit last cell index

  1. #1
    Registered User
    Join Date
    11-16-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    51

    sum contents in rows without setting an explicit last cell index

    hi every one.

    how can sum contents in rows from starting cell on left (Sheet Right-to-Left) without setting an explicit last cell index?

    in attachment file, games are adding everyday, i want sum total score for all user in column "total score"
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: sum contents in rows without setting an explicit last cell index

    In E7, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-16-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    51

    Re: sum contents in rows without setting an explicit last cell index

    Quote Originally Posted by Olly View Post
    In E7, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down.
    thanks you, but this answer is right when table contain header in row 6. i mean if i clear "game1", "game2", ... your formula return #REF!

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: sum contents in rows without setting an explicit last cell index

    Yes - it works for the worksheet structure you showed.

    If you have a different worksheet structure you want it to work with, then show us that instead?

  5. #5
    Registered User
    Join Date
    11-16-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    51

    Re: sum contents in rows without setting an explicit last cell index

    Quote Originally Posted by Olly View Post
    Yes - it works for the worksheet structure you showed.

    If you have a different worksheet structure you want it to work with, then show us that instead?
    i want a formula don't depends on any cell value just first cell like F7 in this example.

    thanks.

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: sum contents in rows without setting an explicit last cell index

    With no dependencies to calculate the size of the sum range, then you can simply use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-16-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    51

    Re: sum contents in rows without setting an explicit last cell index

    Quote Originally Posted by Olly View Post
    With no dependencies to calculate the size of the sum range, then you can simply use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    i mean a formula that find number of last column in specified row (like row 7) that contain a number and write that formula instead ........ in formula SUM(OFFSET($F7,0,0,1,.........)).

    Is necessary such a formula i explain or i use your formula (=SUM(F7:XFD7))?
    i mean why you don't present SUM(F7:XFD7) at first?
    Last edited by niksirat2030; 08-11-2016 at 07:28 AM.

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: sum contents in rows without setting an explicit last cell index

    If there are no cell dependencies or constraints, then why would you need to find the last number in the row? Just sum the whole (remainder of the ) row, as in post #6.

+ 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. Delete Rows that contain matching cell contents in column to the contents in cell B1
    By sspatriots in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2015, 05:39 PM
  2. Replies: 1
    Last Post: 10-25-2011, 07:43 AM
  3. Split cell contents over multiple rows based on cell contents
    By naigy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2011, 05:38 PM
  4. Replies: 0
    Last Post: 09-23-2010, 07:01 PM
  5. Replies: 0
    Last Post: 09-23-2010, 06:39 PM
  6. Setting integer variable to cell contents
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2008, 03:53 PM
  7. [SOLVED] How to feed the contents of a cell as row index?
    By sudhakar in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-09-2006, 10:25 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