+ Reply to Thread
Results 1 to 3 of 3

Fill in blank rows with 0's in a dynamic table, to always have same number of rows

  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Fill in blank rows with 0's in a dynamic table, to always have same number of rows

    Really appreciate any help on this one.

    1. My spreadsheet has a table of projects that comes in from Access. Sometimes there will be 10 rows, sometimes 42 etc, depending on how many records come from Access.

    2. We have a stochastic optimization plug in that needs to have a fixed number of rows with no blanks in (otherwise gives lots of #NAME errors) - this is something that cannot be solved, so I have to make sure we always feed 50 rows to the optimizer, with some of them 'real' project data and some are 'zero' rows.

    3. Since the number of rows coming from Access is dynamic, I'm trying to figure out how to add the requisite amount of 'zero' rows to make up the 50 needed rows.

    Thank you for your guidance...

  2. #2
    Forum Contributor
    Join Date
    12-02-2008
    Location
    India
    Posts
    118

    Re: Fill in blank rows with 0's in a dynamic table, to always have same number of row

    Hey,
    May be you could add a new worksheet to your exported excel file and on A1 enter this
    =IF(Sheet2!A1="",0,Sheet2!A1)

    And drag it across the rows and columns...

    Then use data from sheet 2

    This is not fully automated, but this shudnt take much of your time, until the experts cud give u some macro for it.

    Hope this helps,

    Regards
    Mohit

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Fill in blank rows with 0's in a dynamic table, to always have same number of row

    If we assume the Project rows are in Column A from Row 2 to Row n and you want 2:51 to be populated (blanks replaced by 0)

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 05-29-2010 at 03:31 AM. Reason: added alternative

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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