+ Reply to Thread
Results 1 to 5 of 5

Value of one cell impacting another

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    26

    Exclamation Value of one cell impacting another

    Hi there,

    I am new to conditional formatting and have been helped greatly earlier in the week; am hoping someone out there can help me again!

    I have two columns: AO (titled: Days alcohol consumed) and AP (titled: Units per day)
    I need to cross reference these columns and hightlight errors.

    E.g., if a client has listed that they drink for 14 days (column AO) they should also have a value (greater than 0) in column AP. Note: Column AO can have a value of 0-28, column AP can have 0-200.

    I also then need this in reverse, e.g., if a client listed that they drink 20 units per day (column AP) then there must be a value in column AO.

    Errors would need to be highlighted

    Any guidance would be greatly appreciated!
    Thanks,
    K

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,861

    Re: Value of one cell impacting another

    Try selecting all your data range (say AO2:AP100) and in your conditional formatting rule (Conditional formattin-> new rule-> using formula...) use something like:
    Please Login or Register  to view this content.
    and use the formatting you like.

    if for no_dose or no_drinking there are zeroes not blank cells - use this instead:
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Value of one cell impacting another

    Try this...

    Let's assume the range of interest is AO2:AP10

    Select the *entire* range AO2:AP10 starting from cell AO2.
    Cell AO2 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the menu Format>Conditional Formatting

    Select the Formula Is option

    Enter this formula in the box on the right:

    =COUNTIF($AO2:$AP2,">0")=1

    Click the Format button
    Select the Patterns tab
    Select the desired fill color
    Select the desired style(s)
    OK out
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    01-20-2014
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Value of one cell impacting another

    Works brilliantly! Thanks!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Value of one cell impacting another

    You're welcome. We appreciate the feedback!

+ 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. [SOLVED] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  3. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  4. Replies: 1
    Last Post: 11-03-2012, 09:05 PM
  5. pagebreaks inserted via vba, not impacting printing
    By DaveF in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-25-2010, 05:14 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