+ Reply to Thread
Results 1 to 2 of 2

analyzing formula

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    analyzing formula

    Hello. I am using this formula to sum values in a row. However, when I insert a column to the left of A, the formula no longer calculates correctly. Could someone please breakdown this formula and explain why inserting a column to the left of A would ruin the formula. Thanks.

    =SUMPRODUCT(1-COLUMN($A3:A3)*8.3333%,N(OFFSET($A2,,COLUMNS($A3:A3)-COLUMN($A3:A3))))

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: analyzing formula

    It's the use of the COLUMNS() function. That's an "incrementing" trick people use to get a formula to increment up in value from 1 to 2 to 3, etc, as you copy a cell to the right. As you copy to the right the range of cells within the COLUMN() reference will expand causing the resulting numeric value to increase by one as it goes across columns.

    So, if you're changing the layout of your workbook and inserting a new column A, you will ahve to go back and manually "fix" all those formulas again to set their ranges back to $A$3:A3, or whatever they are to start with.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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: 5
    Last Post: 06-14-2012, 09:00 AM
  2. Data analyzing
    By NTB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2010, 12:06 AM
  3. Going to/Analyzing formula with many cell references
    By apiekar in forum Excel General
    Replies: 3
    Last Post: 03-02-2010, 04:27 PM
  4. Excel 2007 : analyzing xy coordinates
    By someguy85 in forum Excel General
    Replies: 0
    Last Post: 01-21-2010, 05:15 PM

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