+ Reply to Thread
Results 1 to 4 of 4

Calculated column to only calculate populated rows?

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    canton, ohio
    MS-Off Ver
    Excel 2010
    Posts
    30

    Calculated column to only calculate populated rows?

    I have a few calculated columns that fill down to the very very last row (which is going to cause the application to freeze).
    When I refresh data, the last populated row will change, but will never go all the way down to the bottom of excel.

    Can I make it so my calculated columns only calculate populated rows? ie, if there is data in any row, calculate the cell in the calculated column, but when there is no data, do not calculate. I dont need 0's all the way down to row 6666666666666

    *the last populated row will always vary
    Last edited by brianlg; 09-26-2013 at 12:49 PM.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Calculated column to only calculate populated rows?

    So you have a bunch of rows of data (let's say rows 1 to 100 are populated with data), but you have formulas which reach all the way down to the bottom of Excel, just in case the data should go that far down?

    I think you want to create a table of your data. Then, when rows are added, the default is for formulae to be copied over to the new row.

    Delete all of the 'empty' rows with their unused formulae.
    Select your data.
    Hit Ctrl-T (and answer if headers are included or not)
    You may then need to go to the first row of the table and enter in each formula for it to track, but I don't think so.
    To add a row, go to the end of your table and then hit Tab.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    07-15-2013
    Location
    canton, ohio
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Calculated column to only calculate populated rows?

    Let me elaborate.

    I have a template xlsx file that I refresh text data into every day. So columns A-V are always changing.
    Columns W X Y Z have formulas in them that will always use the same formulas to calculate from updated data in the refreshed columns.

    However, the data being refreshed can vary from 50 rows to 32000 rows. I want the w x y z columns to only calculate for rows with data. When it calculates all the way down to the bottom of the spreadsheet, excel does not respond and freezes.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Calculated column to only calculate populated rows?

    32000 rows is really not taht much (especially when compared to 1.04 million rows)

    I would suggest that you copy your formulas down that far ONLY, and begin them with something like this...

    =if(A2="","",your-formula)
    you could even have another formula somewhere to test how many rows you have, and to flash a warning is it exceeds 32000
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 0
    Last Post: 04-26-2013, 08:51 AM
  2. [SOLVED] Calculate maximum number of consecutive populated cells in a column
    By Jimbobby in forum Excel General
    Replies: 9
    Last Post: 11-11-2012, 04:24 PM
  3. Replies: 9
    Last Post: 06-08-2012, 06:22 PM
  4. VBA: calculate yield every 2 rows of 1 column in excel
    By zeno1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2012, 12:13 PM
  5. Replies: 3
    Last Post: 08-12-2009, 05:23 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