+ Reply to Thread
Results 1 to 2 of 2

Sum(Offset(Cell(address - not working

  1. #1
    Registered User
    Join Date
    09-04-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    45

    Question Sum(Offset(Cell(address - not working

    Excel 2007 - I need to - find first non blank cell in row and then sum that and next 11 cells. Some of these 12 cells may be blank. I have been using this formula which is not working:
    Please Login or Register  to view this content.
    in this particular row the first populated cell is AM7 which is returned correctly in the CELL part of the formula above but obviously I have not put it together correctly. Also it may be necessary to consider rows where the first value is within the last 12 columns and therefore there may be less than 12 columns to sum. The table contains 1270 rows starting at row 7 and columns B to BI inclusive. Please could you tell me where I have gone wrong. Thanks in advance

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum(Offset(Cell(address - not working

    Hi.

    So do you mean that there are entries in columns beyond column BI which would potentially interfere with any solution which continued to sum beyond that column?

    If not, you could use either of the following array formulas**:

    =SUM(OFFSET(INDEX(B7:BI7,MATCH(TRUE,B7:BI7<>"",0)),,,,12))

    =SUM(INDEX(B7:XFD7,N(IF(1,MATCH(TRUE,B7:BI7<>"",0)+{0,1,2,3,4,5,6,7,8,9,10,11}))))

    I tend to prefer the latter since it is non-volatile.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Replies: 9
    Last Post: 04-12-2015, 07:20 PM
  2. [SOLVED] Find Column Letter from Cell Address Not Working
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 09:54 AM
  3. [SOLVED] OFFSET a cell address from a match result
    By Solidstan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2013, 04:04 PM
  4. [SOLVED] SUM, OFFSET and CELL("address")
    By Quizarate in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. SUM, OFFSET and CELL("address")
    By DaveB in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] SUM, OFFSET and CELL("address")
    By Quizarate in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] SUM, OFFSET and CELL("address")
    By Quizarate in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

Tags for this Thread

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