LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default In-Cell Graph Using REPT But Proportional to Cell Width?

This is in XL2003. I'm trying to make a simple in-cell graphic that
visualizes a percentage created by two other cells. Here's the formula in
cell K45:

=REPT("|",(I45/H45)*100)

(Columns I and H contain the values from which I'm deriving a percentage.)

Is there any way to alter this, though, so that it takes into account the
width of the column in which the cell resides? As is, either I have to lock
the column down so that, in a given font, a 100% graph exactly fills the
width, or I need to format the cell to "shrink to fit," which the font won't
render if the column approaches a minimum threshold.

The problem is that my boss REALLY likes the simplicity of the in-cell
graph, but wants to be able to widen the column for some presentations in
which the graphic will be especially useful. As it is, he (or me, actually)
has to futz with the formula and font each time, which is annoying.

It seems to me that it should be possible to invoke the CELL function in the
second argument of the REPT function to make the number of strokes that are
repeated proportional to the the width of the column the graph is in, like
this:

=REPT("|",((I45/H45)*CELL("width",K45)))

But of course, this doesn't actually work, because, all sense of the
original percentage being represented is lost. Is it possible to use some
variation on this idea, however, to use the width of the graphing column
(whatever it is, super-wide or fairly narrow, depending on what my boss wants
for a presentation) as the equivalent of 100% and have it "fill" based on the
percentage being generated by the original formula?

Sorry about the long question, but if anyone could help, I'd really
appreciate it.


 
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
Change Cell Width WITHOUT changing Column width dww701 Excel Discussion (Misc queries) 1 January 12th 09 10:52 PM
Cell Underline problem underlines across width of cell tshoop7 Excel Worksheet Functions 1 July 24th 08 12:18 AM
Proportional bar width in charts? Peter M[_2_] Charts and Charting in Excel 1 September 28th 07 10:34 PM
How to make cell width different than the column width it lies in John Excel Discussion (Misc queries) 2 September 11th 06 10:41 PM
CAN YOU SET GRAPH TO READ, FORMULA IN A CELL AS A BLANK CELL AJ-foster Excel Discussion (Misc queries) 2 July 15th 06 08:34 AM


All times are GMT +1. The time now is 03:10 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"