+ Reply to Thread
Results 1 to 5 of 5

Scan For Blank Cell and Average

  1. #1
    Registered User
    Join Date
    12-03-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    15

    Scan For Blank Cell and Average

    Hello -

    I am wondering if there is a Macro that can scan for blank cells and then fill in the AVERAGE of the cells that are located immediately below it. The amount of cells below it can vary. I provided a snapshot of what I'm looking for. The cells labeled AVERAGE would be the blank cells and the colors indicate which cells they would be averaging.

    Example.PNG

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,652

    Re: Scan For Blank Cell and Average

    Try this...

    Please Login or Register  to view this content.
    If the values in column B are derived from formulas, change xlCellTypeConstants to xlCellTypeFormulas.

  3. #3
    Registered User
    Join Date
    12-03-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Scan For Blank Cell and Average

    Thanks for the suggestion. The values aren't derived from formulas, so that's not an issue. However, Excel disagree's with the following piece of the Macro:

    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,652

    Re: Scan For Blank Cell and Average

    Try this one...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-03-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Scan For Blank Cell and Average

    That worked like a charm. Thanks AlphaFrog!

+ 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