+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Autofill Excluding Multiple Blank Cells

  1. #1
    Registered User
    Join Date
    03-06-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    47

    Autofill Excluding Multiple Blank Cells

    Hi Friends,

    I've been trying for hours but can't get my template right. I'm trying to do an Autofill which will be based on multiple blank cells.

    The intention is - If any of the rows in column B & D is blank, the cell should display nothing. But if any of the rows in column B & D has data, i want the autofill to appear as normal.

    As attached, the cell in red shows the no. 6 repeated the data above if there's data in column D, but seems OK if there's data in column B. I feel i'm missing something in my formula, but unable to find out what.

    Thanks for the help.
    Attached Files Attached Files

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

    Re: Autofill Excluding Multiple Blank Cells

    Perhaps you might try:

    A3: =IF(B3&D3="","",1+MAX($A$2:$A2))
    copied down

  3. #3
    Registered User
    Join Date
    03-06-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    47

    Re: Autofill Excluding Multiple Blank Cells

    Thank you friend. It's working as i how i want it to be. May I know what does the MAX is used for and why we choose to lock cell A2? A2 is a text cell.

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

    Re: Autofill Excluding Multiple Blank Cells

    Quote Originally Posted by Ichigo
    May I know what does the MAX is used for...
    The MAX is used to determine the last number used in the sequence up to and including the prior cell.

    Quote Originally Posted by Ichigo
    ...why we choose to lock cell A2?
    Given the above point (ie up to and incl. prior cell) A3 must reference $A$2:$A2 (A4 will reference $A$2:$A3 etc...)

    Quote Originally Posted by Ichigo
    A2 is a text cell
    The fact that A2 holds Text is to our advantage as it ensures the MAX returns 0 for $A$2:$A2 which is what you want.

  5. #5
    Registered User
    Join Date
    03-06-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    47

    Re: Autofill Excluding Multiple Blank Cells

    Thank you for the explanation. You have been a great help.

+ 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