[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Vertical DataBar function in Excel 2003

Posted on 2012-03-09
2
Medium Priority
?
831 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

650 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