+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting plus an extra cell

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    50

    Conditional Formatting plus an extra cell

    Hi,

    I have a sheet with the following conditional formatting:

    1. =COUNTIF(used,A1)
    2. Format is orange font and black background
    3. used = 500
    4. Cell C1 has the # 500
    5. Cell D1 has text/numbers/etc.

    6. Have cell D1 use the same format as C1 no matter what the information in the cell?

    Thanks in Advanced

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional Formatting plus an extra cell

    Post a sample file - it's hard to understand the significance of the A1 reference in your conditional formatting formula based on your narrative.

  3. #3
    Registered User
    Join Date
    10-28-2009
    Location
    pakistan
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Conditional Formatting plus an extra cell

    yes excel is good place where you can do a lots of office work and cell formatting is so much easy on it.

  4. #4
    Registered User
    Join Date
    10-06-2009
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Conditional Formatting plus an extra cell

    OK. Here is the example:
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional Formatting plus an extra cell

    I'm still not sure I fully understand the requirements (ie why you're referencing A1 etc...) ...

    if it is your intention to format E4:H29 based on content of E4:E29 matching "used" then remove existing conditional formats, highlight E4:H29 (selecting E4 first) and apply new conditional rule of:

    =$E4=used
    apply format accordingly

    you should then find E7:H7, E16:H16 and E25:H25 are formatted as required (altering value of "used" will obviously update the formatted cells in your table)
    Last edited by DonkeyOte; 10-28-2009 at 06:56 AM. Reason: revised formula from one working version to another (no need for COUNTIF)

  6. #6
    Registered User
    Join Date
    10-06-2009
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    50

    Red face Re: Conditional Formatting plus an extra cell

    The example I posted is just a short part of the sheet I have. The orignal sheet is like the following:

    1) Sheet1 is filled with numbers, from A1:DE104 (grid of about 100x100)

    2) Sheet1 has the conditional formatting of =COUNTIF(used,A1).
    Format of orange font and black background.
    The conditional formatting above I believe means for the whole sheet.

    3) Sheet2, column A with the RANGE NAME of "used."


    4) Sheet2, column A - when ever a number is entered into that column, it searches in sheet1 and if found it does the format (orange font and black background)

    5) What I want to know if itīs possible to have a conditional formatting like the following. Following example is not a technical conditional formatting:

    =COUNTIF(used,A1)
    if the above is true use same format for the adjacent cell (cell on the right)


    Sorry for any misunderstanding on my question or bad explanations



    Thanks

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional Formatting plus an extra cell

    Quite a different question in reality.

    Well first you need to ensure your Used named range is dynamic to the extent it picks up new values as they are added, eg assuming numerics as implied:

    Please Login or Register  to view this content.
    With the above setup you can then apply your conditional rule, highlight range Sheet1!A1:DE104 (selecing A1 first) and apply a Formula based rule of:

    Please Login or Register  to view this content.
    as you add numeric values to Column A on Sheet2 so your matrix on Sheet1 should format accordingly.

    Now I'm still not sure if that's what you want, ie:

    Quote Originally Posted by Elegidos
    =COUNTIF(used,A1)
    if the above is true use same format for the adjacent cell (cell on the right)
    is still rather vague given you refer to range A1:DE104... by "cell on the right" do you mean the entire row ? (ie if A1 matches a number in used range then format A1:DE1)


    Regardless...
    Conditional Formatting is regarded as being super volatile, ie used excessively it will probably cause some slowdown in terms of performance. For more info. see Volatile section on Charles Williams' site - link in my sig. (Volatility)
    Last edited by DonkeyOte; 10-28-2009 at 04:09 PM.

+ 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