Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Formula for a thermometer-style status bar using 2 numbers

This one might be hard to explain. I'm trying to create a status bar
(mine is shaped like a thermometer and it fills in red) where the cells
fill in using Conditional Formatting.

The user enters 2 numbers, the larger number for the max value of the
thermometer (i.e. 90 degrees F, and a smaller number for the current
status (i.e. 30C). Whatever values the user enters, the values labeling
the thermometer should automatically fit that data, and the cells
beside fill in with a red color.

I currently have it working but I'm looking for a more accurate formula
not using macros that works for a greater variety of numbers. Here is
how it is setup now:
- The cell next to the top of the thermometer (B8) is set to what the
user enters for a max value (i.e. 30)
- The bottom cell (B38) is set to 0.
- The cells inbetween (minor ticks) use this formula:
=B8-($B$8-$B$13)/5 (this is for B9)
- B13 and every 5th cell below it are the major tick marks:
=ROUND(B13-$B$8/6,0)
- the cells to be colored, i.e. D8, a =IF(B8-1<$G$37,1,0) where G37
is the current value the user entered) so if the value is one
Conditional Formatting sets the color to red, or else it stays white

It works well for max values greater than 10, but below that the status
bar doesn't exactly fill up to where it should. I can send you the file
if you email me if this is unclear! Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Formula for a thermometer-style status bar using 2 numbers

Still waiting for a response? A mathematician might have the answer.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Formula for a thermometer-style status bar using 2 numbers



"VancitysFinest" wrote:

Still waiting for a response? A mathematician might have the answer.

Try http://www.datapigtechnologies.com/f...artcharts.html

  #4   Report Post  
Posted to microsoft.public.excel.misc
FxM FxM is offline
external usenet poster
 
Posts: 9
Default Formula for a thermometer-style status bar using 2 numbers

Hi,

Try : http://cjoint.com/?ipoAryihn7

Regards
FxM



VancitysFinest a écrit :
This one might be hard to explain. I'm trying to create a status bar
(mine is shaped like a thermometer and it fills in red) where the cells
fill in using Conditional Formatting.

The user enters 2 numbers, the larger number for the max value of the
thermometer (i.e. 90 degrees F, and a smaller number for the current
status (i.e. 30C). Whatever values the user enters, the values labeling
the thermometer should automatically fit that data, and the cells
beside fill in with a red color.

I currently have it working but I'm looking for a more accurate formula
not using macros that works for a greater variety of numbers. Here is
how it is setup now:
- The cell next to the top of the thermometer (B8) is set to what the
user enters for a max value (i.e. 30)
- The bottom cell (B38) is set to 0.
- The cells inbetween (minor ticks) use this formula:
=B8-($B$8-$B$13)/5 (this is for B9)
- B13 and every 5th cell below it are the major tick marks:
=ROUND(B13-$B$8/6,0)
- the cells to be colored, i.e. D8, a =IF(B8-1<$G$37,1,0) where G37
is the current value the user entered) so if the value is one
Conditional Formatting sets the color to red, or else it stays white

It works well for max values greater than 10, but below that the status
bar doesn't exactly fill up to where it should. I can send you the file
if you email me if this is unclear! Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Formula for a thermometer-style status bar using 2 numbers

Still awaiting an answer.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
I PUT A FORMULA IN A CELL BUT I DON'T GET NUMBERS BUT THE FORMULA lady one Excel Worksheet Functions 3 September 24th 05 01:46 PM
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM


All times are GMT +1. The time now is 12:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"