?
Solved

Vertical DataBar function in Excel 2003

Posted on 2012-03-09
2
Medium Priority
?
808 Views
Last Modified: 2012-03-09
I use Excel 2003.

I have the following function

Public Function DataBar(lngValue As Long)

DataBar = String(lngValue, ChrW(9608))

End Function

Which I use with the following formula

=IF(S5<0,S5&" "&IF(S5/100<0,DataBar(ABS(S5/100)*0.5),""),"")

to create horizontal Data Bars

Is there anyway to create vertical data bars?
0
Comment
Question by:fitaliano
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 42

Expert Comment

by:dlmille
ID: 37703828
Sure, you just rotate the text alignment of your data bar text by 90 degrees and shift your data to go across a row instead of down a column (if you want it to look like a column chart.

See attached, using my databar function from http://www.mschaef.com/blog/tech/excel/databar.txt

There's nothing wrong with yours, just using mine.  The operation is the same, change orientation of font, then shift your data cells from top down, to left to right.

See attached.

Dave
data-bars-41.xls
0
 
LVL 42

Accepted Solution

by:
dlmille earned 2000 total points
ID: 37703836
And here it is using your databar function as well (I used a different formula as the goal here is how to make it all appear vertical and I didn't relate to what data you were using against your databar as you only provided a formula with no sample data - no sample spreadsheet!!)

That's ok - but it helps us help you when you Do do that ;)

Again, its just rotating the text and shifting the data from top down to left to right.

Cheers,

Dave
data-bars-r2.xls
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question