Consulting

Results 1 to 4 of 4

Thread: Traffic lights - Increasing/Decreasing Trends

  1. #1

    Traffic lights - Increasing/Decreasing Trends

    Hello,


    I need a piece of code to:
    -return red/yellow/green when the value is below/above or within range of targets but dependent on an increasing or decreasing trend.
    If the trend is decreasing and the value is above the target is should return red.
    If the trend is increasing and the value is above the target is should return green.
    For all there is a Threshold.


    For example:
    Value Target Trend TrafficLight
    (A) 79% 90% Increasing RED
    (B) 69% 70%-90% Withing Range Yellow
    (C) 85% 90% Decreasing Green


    Thresholds:
    for example (A) - Red: <80%, Yellow: 80%-90%, Green: >90%
    for example (B) - Red: 60-90%, Yellow: 50-60%;90-95%, Green: <50%;>90%
    for example (C) - Red: >80%, Yellow: 80-90%, Green: <90%


    Thank you very much!!!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Same reply that you got at ExcelGuru.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,057
    Location
    Just for interest sake, what reply did you receive from Excelguru???.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •