+ Reply to Thread
Results 1 to 5 of 5

How do I -> conditional required field?

  1. #1
    Registered User
    Join Date
    09-24-2006
    Posts
    5

    How do I -> conditional required field?

    Hi:

    I'm simply trying to make a cell required (any text) if another cell in the same row is not empty.

    Logic:

    if A1 <> "" then G1 cannot be empty

    I've hunted for hours so far and cannot find an answer.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: How do I -> conditional required field?

    Try in Conditional Formatting use =COUNTBLANK(A1:G1)>0 and you will see when you have blank cell in a row
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    09-24-2006
    Posts
    5

    Re: How do I -> conditional required field?

    Quote Originally Posted by zbor View Post
    Try in Conditional Formatting use =COUNTBLANK(A1:G1)>0 and you will see when you have blank cell in a row
    Is there no way to just write a custom Validation code in Excel to do this?
    I've gotta do this for a LOT of different cells.
    I'd hate to have to write VBA code for it.

  4. #4
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    884

    Re: How do I -> conditional required field?

    Hello,

    What version of Excel are you running?
    If 2007 or above can you not highlight the selection and click on Conditional formatting/Highlight Cells/more rules/ 'Change drop down to read BLANKS' and simply set the format?
    Or have i misread?

    galvinpaddy

  5. #5
    Registered User
    Join Date
    09-24-2006
    Posts
    5

    Re: How do I -> conditional required field?

    Quote Originally Posted by galvinpaddy View Post
    Hello,

    What version of Excel are you running?
    If 2007 or above can you not highlight the selection and click on Conditional formatting/Highlight Cells/more rules/ 'Change drop down to read BLANKS' and simply set the format?
    Or have i misread?

    galvinpaddy
    Well, I'm doing this for clients so it needs to work in multiple versions.

    I originally thought I could just set a conditional validation in a cell basically:
    =if(LEN(A1) > 0), LEN(G1) cannot = 0)

    I really didn't want to turn this into a full blown VBA software application.
    I just want to make a cell 'required' if another cell is not empty.

    Apparently this is much more difficult than I expected.

+ 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