Could someone explain the mechanism of this OFFSET formula? Thanks

Ezio De Pazzi 121 Reputation points
2021-11-04T06:18:27.44+00:00

Hello everyone.

I'm in a lot of confusing....
Although this probably never going to happen in the real scenario, I just curious about its mechanism.

formulas like these below...
560d634a-66c8-447a-9b6a-db101a991cc9

I'm fully understand about B column, OFFSET will return ranges (A4:A6)(A5:A7), SUM will sum both ranges, and returns an array {12;19}. But column C seriously confuse me.... I just add a SUM on top of it, ideally, I think it would returns a single value 31(sum of 12+19).

Looks like OFFSET actually returns {A4:A5}{A5:A6}{A6:A7}, how could possibly be like this? it's clearly having {2;3} two values, and 3 is the [height] argument.

Thanks for any response.
Original posted in here: https://answers.microsoft.com/en-us/msoffice/forum/all/could-someone-explain-the-mechanism-of-this-offset/0f4c844c-46ea-4636-a7e5-7759eda11940

Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,639 questions
{count} votes

Accepted answer
  1. Emily Hua-MSFT 27,526 Reputation points
    2021-11-05T08:25:09.29+00:00

    @Ezio De Pazzi

    I test on my environment with Microsoft 365 Apps installed, I get following summary, you could have a look.

    The formula "OFFSET(A2,{2,3},0,3)" will return 2 three-dimensional arrays from plane data , each area has 3 dimensions.
    146639-1.gif

    The first formula "{=SUM(OFFSET(A2,{2,3},0,3))}" can sum for each three-dimensional array, then return 2 results.
    146793-capture25.jpg

    The second formula "{=SUM(SUM(OFFSET(A2,{2,3},0,3)))}" does not seem like the first one, it calculates the data values for each dimension, then return a set of three-dimensional data.
    146785-capture26.jpg

    To achieve your needs of formula 2, I would suggest you use "=SUM(SUMIF(OFFSET(A2,{2,3},0,3),"<>"))" formula.
    146759-capture27.jpg


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



0 additional answers

Sort by: Most helpful