+ Reply to Thread
Results 1 to 11 of 11

Conditional Formatting Formula Help Part 2

  1. #1
    Registered User
    Join Date
    12-27-2005
    Posts
    72

    Conditional Formatting Formula Help Part 2

    Hi,

    I am working on a conditional formatting formula that will refer to a different worksheet that the one it is in, I hope this can be done, so here's how the formula needs to be:

    in cell X2 of worksheet "10 DAY AVERAGES" I need a formula that tests cell W2 in worksheet "PASTE DATA" to see if it's greater than the 20 day average of cells W2 through D2 in worksheet "PASTE DATA", and if so I will program a certain highlighting color via conditional formatting, I would appreciate very much some help with this formula

    THANKS!

  2. #2
    JE McGimpsey
    Guest

    Re: Conditional Formatting Formula Help Part 2

    One way:

    Name 'PASTE DATA'!W2, say, TheTest
    Name 'PASTE DATA'!D2:W2, say, TheRange

    In '10 DAY AVERAGES'!X2, choose Data/Conditional Formatting, and set up
    the dropdowns and textboxes to read

    CF1: Formula is = TheTest > AVERAGE(TheRange)
    Format1: <patterns>/<color>

    In article <[email protected]>,
    RalphSE <[email protected]> wrote:

    > Hi,
    >
    > I am working on a conditional formatting formula that will refer to a
    > different worksheet that the one it is in, I hope this can be done, so
    > here's how the formula needs to be:
    >
    > in cell X2 of worksheet "10 DAY AVERAGES" I need a formula that tests
    > cell W2 in worksheet "PASTE DATA" to see if it's greater than the 20
    > day average of cells W2 through D2 in worksheet "PASTE DATA", and if so
    > I will program a certain highlighting color via conditional formatting,
    > I would appreciate very much some help with this formula
    >
    > THANKS!


  3. #3
    Registered User
    Join Date
    12-27-2005
    Posts
    72


    bummer, i tried that but it gave me an error message saying you cannot reference other worksheets in conditional formatting

  4. #4
    JE McGimpsey
    Guest

    Re: Conditional Formatting Formula Help Part 2

    Then you didn't name the ranges and use the names instead of the range
    references...

    In article <[email protected]>,
    RalphSE <[email protected]> wrote:

    > bummer, i tried that but it gave me an error message saying you cannot
    > reference other worksheets in conditional formatting


  5. #5
    Registered User
    Join Date
    12-27-2005
    Posts
    72
    not sure what you mean JE, can you try to explain it a little more clearly please?

  6. #6
    Registered User
    Join Date
    12-27-2005
    Posts
    72
    will this method work if i copy the conditional formatting to other cells, i.e., will the test cell and range cells change accordingly?

  7. #7
    JE McGimpsey
    Guest

    Re: Conditional Formatting Formula Help Part 2

    You can only reference other sheets in Conditional Formatting by using
    named ranges.

    Select your range, then type a name in the name box at the left of the
    formula bar. Hit enter. You may now use that name as a substitute for
    the range reference in a formula.

    In article <[email protected]>,
    RalphSE <[email protected]> wrote:

    > not sure what you mean JE, can you try to explain it a little more
    > clearly please?


  8. #8
    JE McGimpsey
    Guest

    Re: Conditional Formatting Formula Help Part 2

    When you directly name a range, the reference won't change.

    However, you could use dynamic ranges instead:

    http://cpearson.com/excel/named.htm#Dynamic


    In article <[email protected]>,
    RalphSE <[email protected]> wrote:

    > will this method work if i copy the conditional formatting to other
    > cells, i.e., will the test cell and range cells change accordingly?


  9. #9
    Registered User
    Join Date
    12-27-2005
    Posts
    72
    thanks for the link JE, this stuff is a little over my head, i still dont get how to name my ranges so they will be dynamic, i'd really appreciate it if you could explain that in terms of the example I've given here PLEASE

  10. #10
    Registered User
    Join Date
    12-27-2005
    Posts
    72
    ok then, does ANYONE know how to make the ranges dynamic so that I can finish this project? I would really appreciate the help, thanks!

  11. #11
    Debra Dalgleish
    Guest

    Re: Conditional Formatting Formula Help Part 2

    There's another description here:

    http://www.contextures.com/xlNames01.html

    If you're still having trouble, and explain where you're getting stuck,
    someone may be able to help.

    RalphSE wrote:
    > ok then, does ANYONE know how to make the ranges dynamic so that I can
    > finish this project? I would really appreciate the help, thanks!
    >
    >



    --
    Debra Dalgleish
    Contextures
    http://www.contextures.com/tiptech.html


+ 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