+ Reply to Thread
Results 1 to 8 of 8

IF Target cell No, then 0 , IF Yes then I can type in any number

  1. #1
    Registered User
    Join Date
    07-08-2015
    Location
    Norway
    MS-Off Ver
    365
    Posts
    11

    IF Target cell No, then 0 , IF Yes then I can type in any number

    Hi there

    Hopefully someone can help me out here.

    I have a cell that if it is set to No Then another cell should be set to 0.
    But if the same cell is set to Yes then the cell should be 1 OR! any number the user writes in.

    Thanks

    excel.JPG

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: IF Target cell No, then 0 , IF Yes then I can type in any number

    If the user entered a number in that cell then it would overwrite the formula that makes that cell say 0 or 1.

    BSB

  3. #3
    Registered User
    Join Date
    07-08-2015
    Location
    Norway
    MS-Off Ver
    365
    Posts
    11

    Re: IF Target cell No, then 0 , IF Yes then I can type in any number

    Yes that is my problem.
    I need something like Conditional Formatting but for text. Not just color or Font formatting. Is there such a thing ?

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: IF Target cell No, then 0 , IF Yes then I can type in any number

    Not exactly.

    You could get around this with VBA. Using a worksheet change event that fires when cell A1 is changed you could enter 0 in E1 if A1 = No or 1 if A1 = Yes and the user could overwrite the 1 if another number is needed.

    Would that work for you at all?

    BSB

  5. #5
    Registered User
    Join Date
    07-08-2015
    Location
    Norway
    MS-Off Ver
    365
    Posts
    11

    Re: IF Target cell No, then 0 , IF Yes then I can type in any number

    In theory it sounds like its something that would work. But not sure how it would work in practical. "VBA. Using a worksheet change event that fires when cell A1 is changed "

    If there isn't a way to make special cell with text "Write Value" with Condicional Formatting and then tell it to choose that when A1 is Yes or No.

    :/

  6. #6
    Registered User
    Join Date
    02-25-2010
    Location
    Abu dhabi
    MS-Off Ver
    Excel 2007, Excel 2010, Excel 2013
    Posts
    24

    Re: IF Target cell No, then 0 , IF Yes then I can type in any number

    Please check the attach file. the user will not be allowed to save the file if your condition is not matched. it will allow you to have any type of condition that you will like to have, you just need incorporate the condition in the formula in A1.

    Kindly let me know if this will suffix your requirement.

    it is a VBA based solution.
    Attached Files Attached Files
    Last edited by preond; 04-21-2016 at 05:42 AM.

  7. #7
    Registered User
    Join Date
    07-08-2015
    Location
    Norway
    MS-Off Ver
    365
    Posts
    11

    Re: IF Target cell No, then 0 , IF Yes then I can type in any number

    Ahh yes

    Thank you very much

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: IF Target cell No, then 0 , IF Yes then I can type in any number

    Preventing saving is more of a crude bodge than a solution.

    Please Login or Register  to view this content.

+ 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. Self Ajusting cell , moving to provide target to meet end of year target
    By andycuk7 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-15-2016, 11:22 AM
  2. Replies: 5
    Last Post: 01-22-2013, 11:38 AM
  3. Worksheet_CHange (ByVal Target as Range) when target is formula cell
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 07:00 PM
  4. modify target command code to prevent type 13 mismatch
    By HP RodNuclear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2011, 03:59 PM
  5. Replies: 4
    Last Post: 06-13-2007, 12:24 AM
  6. Replies: 1
    Last Post: 09-26-2005, 11:05 AM
  7. [SOLVED] the target cannot handle this type of document
    By Shooter in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2005, 03:06 PM

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