Hi to all!
Long time ago, (very long time) I showed horizontal Bar graphs in the cells of a column using Lotus 123 for DOS.
There is a way to do it in Excel? I need show positive and negative values.
Thanks in advance.
Sandor
Name Values Value Deviation
==================== ================ ===== -9===0===+9
<Name of someone> 1,2,3,4,... etc 111 XX|
<second name> 2,3,4,5,6... 222 |XXX
The "Deviation" is a small horizontal bar whose length depends of a calculation an could range from -9 to +9.
Maybe now is a little bit clearer...
Regards
Sandor
Didn't quite understand your example, but I've done something similar before, using the REPT function.
=REPT("X",[function that returns length req'd])
will put a number of X's in the cell. You could then concatenate this with your vertical bar, and a number of X's on the other side of the bar. So, if you want, say, XXX¦XXXX, your formula will be
I've just now developed a model that uses Conditional Formatting to achieve what I expect is what you're seeking. However, I need to know specifically whether the result will be EITHER a MINUS or a POSITIVE number, OR will it "span between".
Either you can post the answer here, or you could email me the answer, or both. If you email me, I can modify and return the example file.
For example if all your data is in Columns A to D,rows 2 to 10, and the data you want plot is in column D. Set Columns E & G to a width you desire (say, 30). Set column F width to the widest entry for your X axis.
Format cells E2:E10 and G2:G10 to a background color (say, Cyan). Set font color of E2:E10 to Red and G2:g10 to Dark Blue. Set the font for E2:E10 and G2:G10 to Wingdings. Set background color for F1:F10 to Black and set the Font color to White.
In cell E2 type the following formula and copy down to E10
Thanks for your contribution. This "rivalry" is certainly "bringing out the best in all of us".
I checked your file out and it seems reasonable.
HOWEVER, given Sandor's example: -9===0===+9 - your model does NOT meet this requirement. i.e. your negative numbers start at the far left. For example -1 is placed in the -9 position.
Am I reading this right or wrong ?
=====================================
Sandor,
Given the following:
a) The model I developed was specifically for you.
b) It does EXACTLY as your example specifies.
c) It looks nice.
d) It will give you a GOOD example of how Contitional Formatting can be utilized, for this and OTHER situations.
e) After all my hard work. P-)
Can you please at least take a look at the file ???
Just email me, and I'll send the file via return email.
I can send you my example file tomorrow, if you like.
I believe that perhaps you and I posted around the same time for this question. What happens with me is that sometimes I am between calls when I am writing my posts and takes time for me to finish and it may seem like I posted after someone else did. I do not want to foster any rivalry; as a matter of fact, most times if someone has answered a question well than I prefer staying away from it. Once in a while if I feel there may be a shorter or easier solution, then I add to the post.
My friend, you seem to have mistaken my honest and sincere point - that I "firmly" believe "no one" has a monopoly on having the best solution. I believe EVERYONE benefits from others "chipping in" with their own "different version".
I would suggest that Tek-Tips members NOT hold back from contributing. DIFFERENT perspectives and solutions should ALWAYS be welcome - and especially YOURS because we all have come to realize that your contributions are GREAT.
My ONLY concern here, was that I thought it unfortunate that Sandor had not opted to look at ALL the options presented - especially when my model was already created.
Yes, please email me your file, and I'll do the same.
While I did follow your instructions, perhaps your actual file will reveal something I might have missed.
Indu, Dale!
Thank you for your answer.
Dale, how can I find your file?
I solved the problem, using Indu´s solution in 2 columns (1 for negative values right aligned and other for positive values left aligned). I am using 13 characters in each column showing values from 0 to 6.5, values above are clipped. On the top, I put a figure showing the scale.
Some fonts showed well on the worksheet, but when printed were out of position but with Webdings ´g´ size=5, are OK.
I did not answered before because had to do the report.
The user liked the result.(if the user is happy, everybody is happy)
Thanks again!
Best regards
Sandor
Thanks for sending your workbook. It's amazing what you can do with some of Excel's built-in functionality. A very nice demonstration of conditional formatting, and simple to implement!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.