+ Reply to Thread
Results 1 to 7 of 7

Updated: Require input to non-adjacent cells in a tab if cells in another tab are filled?

  1. #1
    Registered User
    Join Date
    08-12-2016
    Location
    DC, USA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    22

    Updated: Require input to non-adjacent cells in a tab if cells in another tab are filled?

    As you can see in the attached spreadsheet, there are two tabs with data: By Major and By Concentration. Now if someone enters a number to any of the three cells H18, I18, or M18 in the By Major tab, I want to prevent the person from closing the spreadsheet without entering numbers to all of the columns C, E, F, G in the By Concentration tab for at least one row. For example, if someone has entered "6" to M18 to the By Major tab, I want the person to also enter numbers to C, E, F, G in the By Concentration tab for at least one row (e.g., row 5). If the person tries to close the spreadsheet without entering the required numbers, I want a message saying he needs to enter the required numbers.

    It is my final goal above, and now I even can't have the basic of the basic working. I have the code below, and apparently something is wrong. If someone could please help me, I'd greatly appreciate it.

    Thank you very much in advance!


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by yl41012; 11-10-2016 at 08:26 PM. Reason: Attachment did not work; Sheet name was wrong.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to equire input to non-adjacent cells in a tab if cells in another tab are filled

    Hi yl41012

    Your attached File has unreadable content...please upload again.
    Also, please wrap your Code in Code Tags...it's a Forum requirement.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    08-12-2016
    Location
    DC, USA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    22

    Re: How to equire input to non-adjacent cells in a tab if cells in another tab are filled

    Thank you for your reply jaslake! I've attached a new spreadsheet and wrapped the code.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to equire input to non-adjacent cells in a tab if cells in another tab are filled

    Hi yl41012

    I'm unable to sort out your requirements when I look at the attachment...did you attach the proper File?

  5. #5
    Registered User
    Join Date
    08-12-2016
    Location
    DC, USA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    22

    Re: How to equire input to non-adjacent cells in a tab if cells in another tab are filled

    Thank you very much for your reply! I think that I attached the correct spreadsheet. I did just fixed two typos in my description of problem though. What did you specifically mean by "unable to sort out your requirements"? Thank you!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to equire input to non-adjacent cells in a tab if cells in another tab are filled

    Hi yl41012

    Based on my understanding of your stated requirements, I can't see how to get from here to there.

    I'm
    unable to sort out your requirements
    Sorry

  7. #7
    Registered User
    Join Date
    08-12-2016
    Location
    DC, USA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    22

    Re: How to equire input to non-adjacent cells in a tab if cells in another tab are filled

    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sum adjacent cells based onion filled
    By jser63 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2016, 08:16 AM
  2. Replies: 1
    Last Post: 11-09-2013, 06:11 AM
  3. How to keep an averaging cell empty until all the input cells are filled
    By troyer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2013, 11:02 AM
  4. Require input data in certain cells if other cells are filled before saving
    By Jenkins86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 08:07 PM
  5. Replies: 4
    Last Post: 04-04-2012, 04:44 PM
  6. Formula Added Only When Adjacent Cells Filled
    By formula in forum Excel General
    Replies: 6
    Last Post: 03-18-2010, 12:29 AM
  7. Replies: 2
    Last Post: 03-22-2006, 01:25 PM

Tags for this Thread

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