+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting based on other cell value

  1. #1
    Registered User
    Join Date
    10-10-2016
    Location
    Willow Street, PA
    MS-Off Ver
    2010
    Posts
    1

    Question Conditional formatting based on other cell value

    I have a computed cell (actually a column of them). The computation must always be done, but based on an adjacent cell's value, shown or not shown. Possibly by making the cell text color same as background?

    Is conditional formatting the way to go? Can someone show me an example.?

    tucker

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Conditional formatting based on other cell value

    what would the rule be to change the font colour

    you make the font white - which is the same as the default fill colour and so becomes invisible

    But conditional formatting will need a rule to apply to the cell , why should the font tune white ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Conditional formatting based on other cell value

    Conditional formatting is one way to go, the other is to use the same condition to display a null string.

    So if you want the cell to go away when G6 > 100 and display G1 + G2 otherwise, then If (G6 > 100,"",G1+G2).
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional formatting based on other cell value

    Since you want the computation always to be done, you certainly need to use conditional formatting, not make the cell blank.

    An example:
    Column C contains a sum of columns A and B, but when the number in column A is >100, you don't want to see the result in C.
    Select the range in column C (C1:C100 for example) then click Conditional Formatting, 'New Rule' then 'Use a formula to determine which cells to format'.
    Put this in the formula box:
    =A1>100
    Then click 'Format' and select the 'Number' tab. Click 'Custom' and enter this custom format:
    ;;;
    That's three semi-colons. A custom number format works like this: positive format ; negative format ; zero format ; text format. So ;;; makes the cell display absolutely nothing - but this will only happen if column A is >100. The number is still there - you can still do calculations with it - you just won't see it.

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. Replies: 1
    Last Post: 10-04-2016, 05:17 AM
  2. i want to use conditional formatting based on another cell
    By Elainefish in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 09:41 AM
  3. Conditional Formatting based on cell value
    By dcgrove in forum Excel General
    Replies: 6
    Last Post: 11-04-2015, 10:17 AM
  4. [SOLVED] Conditional formatting: One cell based on the value of another
    By Shearwater in forum Excel General
    Replies: 4
    Last Post: 01-10-2014, 01:58 PM
  5. [SOLVED] Conditional Formatting based on another cell
    By Blade Fisher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-28-2013, 08:33 AM
  6. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  7. Replies: 4
    Last Post: 01-06-2012, 05:07 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