+ Reply to Thread
Results 1 to 10 of 10

If preceding cell in a column is blank, block input in current cell.

Hybrid View

Bachi If preceding cell in a column... 12-06-2011, 11:51 AM
Fotis1991 Re: If preceding cell in a... 12-06-2011, 12:12 PM
Bachi Re: If preceding cell in a... 12-06-2011, 12:32 PM
Fotis1991 Re: If preceding cell in a... 12-06-2011, 01:06 PM
Bachi Re: If preceding cell in a... 12-06-2011, 04:44 PM
Bachi Re: If preceding cell in a... 12-06-2011, 04:48 PM
  1. #1
    Registered User
    Join Date
    03-27-2011
    Location
    Ottawa Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    If preceding cell in a column is blank, block input in current cell.

    Hello,
    I am trying to make a daily interest calculating loan sheet.
    All the calculations(interest, payment and final balance) are triggered when the date is input in col. B
    The IF function first checks for the date and then checks for any payment made. Only then it calculates the interest upto that day.
    Problem:
    If I miss a date in one row but continue to enter the date and payments in subsequent rows, the interest calculations are not resumed after "blank date cell"
    What I want:
    If a date cell is left blank then any data input in subsequent rows should be blocked.

    I am not very good a VBA so any such solution will have to be explained thoroughly.
    Thanks in advance.
    I am attaching the excel sheet
    Attached Files Attached Files
    Last edited by Bachi; 12-09-2011 at 05:18 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If preceding cell in a column is blank, block input in current cell.

    Hi Bachi.

    Starting in B9, select >>Data>>Validation>>Custom and put the formula:

    =COUNTA(B8)

    Drag down as mutch as you like. Now if there is empty cell, don;t let you to put date in next row.

    Hope to helps you.

    Regards
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    03-27-2011
    Location
    Ottawa Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: If preceding cell in a column is blank, block input in current cell.

    Quote Originally Posted by Fotis1991 View Post
    Hi Bachi.

    Starting in B9, select >>Data>>Validation>>Custom and put the formula:

    =COUNTA(B8)

    Drag down as mutch as you like. Now if there is empty cell, don;t let you to put date in next row.

    Hope to helps you.

    Regards
    Hi
    thanks.
    Two more things.

    How do you copy the validation condition from cell B9 upto cell B48
    And
    After an empty cell, I want to block data input in all subsequent rows, not only subsequent cells in the column.

    Thanks again
    bachi

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If preceding cell in a column is blank, block input in current cell.

    Hi

    How do you copy the validation condition from cell B9 upto cell B48
    And
    After an empty cell, I want to block data input in all subsequent rows, not only subsequent cells in the column.
    1) Drag down is the way(right-down of the cell, the sign +)

    2) Same way for all the others.

    Take a look to the attachement.


    Regards
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-27-2011
    Location
    Ottawa Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: If preceding cell in a column is blank, block input in current cell.

    Quote Originally Posted by Fotis1991 View Post
    Hi



    1) Drag down is the way(right-down of the cell, the sign +)

    2) Same way for all the others.

    Take a look to the attachement.


    Regards
    HI Fotis.
    All looks good except that I dont want the cells in column "C" to accept input when the corresponding cell in column "B" is empty.

    thanks

  6. #6
    Registered User
    Join Date
    03-27-2011
    Location
    Ottawa Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: If preceding cell in a column is blank, block input in current cell.

    Quote Originally Posted by Fotis1991 View Post
    Hi



    1) Drag down is the way(right-down of the cell, the sign +)

    2) Same way for all the others.

    Take a look to the attachement.


    Regards
    HI Fotis.
    All looks good except that I dont want the cells in column "C" to accept input when the corresponding cell in column "B" is empty.

    thanks

  7. #7
    Registered User
    Join Date
    03-27-2011
    Location
    Ottawa Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: If preceding cell in a column is blank, block input in current cell.

    HI Fotis,
    I am still having two problems.
    1- I dont want the cells in column "C" to accept input when the corresponding cell in column "B" is empty.
    2- Data entry is restricted in the cell (column B) which has an empty cell above. However, input is only restricted in the cell just below the empty cell but I can input freely in subsequent cells after that. I wanted the input to be totally restricted even if one cell in col. B is left blank.
    thanks again in advance

    Quote Originally Posted by Bachi View Post
    HI Fotis.
    All looks good except that I dont want the cells in column "C" to accept input when the corresponding cell in column "B" is empty.

    thanks

+ 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