Closed Thread
Results 1 to 8 of 8

Override cell value with conditional format

  1. #1
    Registered User
    Join Date
    11-10-2005
    Location
    Scotland
    Posts
    69

    Override cell value with conditional format

    Hi
    This one has me stumped.
    I have attached a sample of the spreadsheet to help clarify what I’m after.
    If cell B11 ='CASH' then cell C11 will turn green (conditional format), but I would like the value to change to a 'YES' (but I still want to have the option of the drop down list)
    The problem is, I still want the cell to operate as a drop down list, and so if you change the value of cell B11 later, you have the option to change the value of C11 via the drop down list.
    To explain the principle of what I am doing, the spreadsheet is a personal track of monthly receipts which are then checked against bank statements.
    When you enter a receipt amount, you also specify which card was used to make the purchase. (B11)
    Once the bank statement comes in, then C11 (which starts off as a red fill with an ‘X’ symbol) can be changed to ‘YES’ to show that the receipt has been checked off against the bank statement.
    If however when you enter the receipt and it is ‘CASH’ in B11, then C11 should automatically change to green (which it currently does), but also to ‘YES’ – as any cash transactions won’t need to be checked against a bank statement.
    Also, it would be neater if C11 remained blank until B10 had a value in it. Once B10 has a value in it, C11 would change to the ‘X’ with the red fill.
    I hope this makes some sense

    Thank you in advance

    Craig
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Override cell value with conditional format

    Conditional formatting can only change the format of the cell, not the contents. To change the contents would require VBA.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-27-2006
    MS-Off Ver
    MS Office 2007
    Posts
    79

    Re: Override cell value with conditional format

    Hi,
    I think this is what you want. But this only works once. (I hope you understand my explanation below)

    Here is what I mean. Cell B11 & C11 starts empty (there is a formula in cell C11). If you select anything in cell B11, a default result will appear in cell C11 based on the formula. But if you change value of C11 based on the drop-down list, then the formula will be lost - hence "it only works once".

    another change I made in introducing an additional "value" (a space, " ") under "FOUND", so that C11 can show a blank when B11 is empty (based on the formula in C11)

    *changes made:
    1) in Sheet "JANUARY", formula added in cell C11
    2) in Sheet "LISTS", a space, " " is inserted in cell D4

    Hope this helps.
    Attached Files Attached Files
    TL

    https://sites.google.com/site/teelim/
    My page of "not so useful" spreadsheets

  4. #4
    Registered User
    Join Date
    11-10-2005
    Location
    Scotland
    Posts
    69

    Re: Override cell value with conditional format

    Thanks for all the help

    That works Teelim, but as you say, only once.

    Can anyone suggest the VBA to get this working constantly.

    Cheers

    craig

  5. #5
    Registered User
    Join Date
    07-27-2006
    MS-Off Ver
    MS Office 2007
    Posts
    79

    Re: Override cell value with conditional format

    Hi craigproudfoot,
    I am not good with macros but if you want something simple, I think this should work (but it also depends on your exact requirement). I'm not exactly sure what/how you want it but I made a simple "Reset" button on the side (you need to allow macros for your excel) which deletes cell B11 and reinserts the formula in C11.

    This is as much as I can do with my very limited knowledge on macros. :P

    Hope this helps.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-10-2005
    Location
    Scotland
    Posts
    69

    Re: Override cell value with conditional format

    Thanks again Teelim
    Close, but not exactly what i am looking for

    Can anyone think of a VBA solution that might work?

    thanks in advance

    craig

  7. #7
    Registered User
    Join Date
    11-10-2005
    Location
    Scotland
    Posts
    69

    Re: Override cell value with conditional format

    Can anyone offer any solution to this difficult problem

    Thanks

    Craig

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Override cell value with conditional format

    A new thread was started in the Programming forum by the OP.

    http://www.excelforum.com/excel-prog...ong-forum.html
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

Closed 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