Create Three Stack Bars Chart With Different Data

Oct 17, 2008

Here is my scenario, I have the following data:

Data Series 1

a=3
b=3
c=4
Tot 10

Data Series 2

d=2
e=2
f=2
g=1
h=1
i=1
j=1
Total 10


Data series 3
k=4 (d+e)
l=3 (f+g)
m=2 (h+i)
n=1 (j)

I want the three stack bars together, for the series 2 & 3 I want them without any gap so I can see how data series 3 is created.

I can't find a way to create a three stack bars chart that don't have the same number of data series, I don't want percentages.

View 9 Replies


ADVERTISEMENT

Create Macro To Add Fill Effect On The Bars Of Chart

Jan 24, 2012

I'm trying to create a macro to add a fill effect on the bars of my chart.

However, I don't want it to change the bar's current color. Just to do the effect on the current color.

Code:
Sub fill()
ActiveChart.SeriesCollection(2).Select
With Selection.Border
.Weight = xlThin
.LineStyle = xlAutomatic
End With

[code].....

View 2 Replies View Related

Create Horizontal Bar Chart Where Allocations Within Bars Change?

Aug 21, 2012

I was wondering how do you create a horizontal bar chart where the allocations within the bars change as the percentages change.

For example, if I have school stats where the there are 30 students in each class from grades 1 to 5 broken down between girls and boys

how can I get the bars for EACH grade to reflect the allocation between boys/girls?

View 3 Replies View Related

How To Create Stock Column Chart With Error Bars (Both Gender Together)

Jan 3, 2013

I have a series of data and want to create a chart looking like this

Google Image Result for [URL] ...

Where it shows min/max on the error bars, quartile 1/3 on the box and median as a scatter plot. My data is a simple table

Group
Amount F
Amount M
Median F
Median M
Median F+M

[Code] ....

Here F = Female, M=Male and the chart should show all calculation for both gender together (I have another thread up where the gender are separated with the Title (How to create a stock column chart with error bars?? (Both gender separated))

View 1 Replies View Related

Display Chart Graph Bars In Order Different Than Data Is Sorted?

Feb 21, 2014

I am trying to compare the frequency of occurrence of multiple unique values within a data set and graph the results as a pareto. I have the formulas working to identify and count the occurrences, and the chart is designed and displaying the data, however I cannot get the graph to display in descending order.

I am unable to sort the data because it is generated from a series of formulas, the returned values of which cannot be sorted. (its hard to describe, see the attached workbook)

I would like to know how I can display the graph so that it shows the bars (primary axis) in descending order (highest value to left, lowest to right) since I cannot sort the data. i.e. For the attached workbook, I want the bars to display in descending number of occurrences: 81,15,5,5,3,3,2,2.

View 2 Replies View Related

Excel 2003 :: Filter Data In Graph / Chart (without Having To Create New Chart)

Dec 29, 2011

I have a spreadsheet created in Excel 2003 (which is what we use at work, unfortunately).

My employees periodically take a test to ensure they have certain items memorized (or are making progress to that end). The spreadsheet rows show all 46 of my employees, and their test scores. The columns are the dates that the tests are administered. I can create a line graph based on the chart data, and interpolate these data with no problems.

The problem is that there are 46 employees! 46 lines on the same graph make for a very cluttered, hard to understand visual. I want to simplify the view by "filtering out" some of the data.

I have an additional column in my spreadsheet for each employee's work area (Area 1, Area 2, etc), and another column with data based on first letter of last name (the values here could be "A-G", "H-M", "N-S" and "T-Z", for example). I figure i could filter my line graph based on these two columns. For example, somehow select just Area 1, and reduce the number of lines on the graph to 16. Or better yet, Choose "Area 2" AND "A-M" and end up with 7 employees (and therefore 7 lines on the graph).

Here's what i have tried:

1) Select the work area column, and use the Filter, which created a drop-down list at the column heading. When i use this drop-down list, i can easily filter the data in the worksheet by Work Area, but this is not reflected in the line graph, which still shows all 46 lines. The problem was that i forgot that i had set the Calculation Options to "Manual". Setting this to "Automatic" (or leaving it on Manual and pressing F9) solved the problem, as the chart now updates when i use the filters. Calculation options are under the "Formula" tab in 2007, or in Tools -> Options -> [either calculation or formula, i forget what it's called] in 2003.

2) Create several separate line graphs in several separate sheets. I wouldn't want to assign someone else the task of maintaining a spreadsheet of such inefficient design.

View 1 Replies View Related

How To Colour Different Bars In Bar Chart

Jan 20, 2014

I have a bar chart which compares two columns of data. the data in one column is fixed to 100. the data in the other column varies. a third column states whether each entry is "A" or "M". Is there a way to include the A or M on the bar chart? Perhaps by having a set colour whether the data is A or M?

View 1 Replies View Related

Chart - Compare To Bars

Sep 24, 2012

The graph function in Excel is driving me insane! Is it possible to do as image below shows? If so, how?

As you can see, I dont want to stack the result, but rather compare two bars with the bigger one in the background.

View 3 Replies View Related

Resize Bars Of Bar Chart Using VBA Code?

Nov 30, 2012

i need to prepare a bar chart from some data. what i want to do is that i want bar size to be fixed (larger than what automatically comes) and then excel changes the size of chart based on no of x-axis values keeping the bar size fix.

(currently chart size is fixed and bar size changes accordingly, i just want the reverse that bar size is fixed and chart size changes according to no of values in axis)

View 4 Replies View Related

Excel 2007 :: Change Width Of Chart Bars

Sep 7, 2010

I've just switched to 2007 and can't seem to find where they've moved the ability to change the width of bars in a chart. Where is it in 2007?

View 7 Replies View Related

Format Chart Bars Based On Cell Reference

Jan 23, 2010

I'm trying to get the bars of a chart to change colour depending on the selection from a drop down in a cell. The drop down is validated to be one of four options which changes the figures displayed in the graph using index matching.I would really like the colour to change to represent what the option being selected is.

I used some VBA code before for changing the cell colour depending on the selection made to get over the 3 condition limit. Could this be easily edited to change a bar graph colour? All of the references I can see on line refer to changing the colours of bars based on their value, I don't want to do this, more an independant cell value!

My previously used code is below:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim iColor As Integer

If Not Intersect(Target, Range("d9:d129")) Is Nothing Then
Select Case Target.Cells(1)

Case "Commercial Final State"
iColor = 49
Case "Commercial Interim"
iColor = 31

View 7 Replies View Related

Docking Command Bars? (tool Bars)

Jul 6, 2009

In the code below using msoBarTop places the menubar at the top but it seems to just place it in a new row at the right of all menus.

How or can I dock the menubar next to the last menubar?

View 7 Replies View Related

Create Chart From Table Of Data?

Jun 19, 2014

Trying to create a chart from a table of data, however my column of data has zeros throughout. How do I insert a chart with just the data that are not zeros?

View 1 Replies View Related

List Box To Create Chart Data

Nov 18, 2008

I am trying to have a list box that when clicked will change the chart data to whatever is selected. There are 2 options you can choose from. Order Cost (Net) and Order Total (Gross) The problem I'm running into is that the data is in 2 different rows. How can I create the drop down box to display the one that is selected? ...

View 9 Replies View Related

Create Bar Chart With Ordered Binary Data?

May 28, 2013

I want to create the chart below. I have data that is coded with a binary flag (0 = red, 1 = blue) that is also ordered. For example, the data I would use to hypothetically create the left hand column below looks like this

Binary Flag
Rank
0
1

0
2

1
3

0
4

1
5

1
6

View 1 Replies View Related

Loop Through Data And Create Chart With A Number Of Series

Apr 8, 2008

I am looking to create a number of series on a chart (xyscattersmooth) from a datatable. Below is my data Table....

View 9 Replies View Related

Horizontal Bars Scroll Bars!

Mar 6, 2009

I am trying to derive the EMI for a Loan Amount and also chart a PIE graph for the same..

Instead of Manually feeding the values such as :

Variable 1 : Loan Amount : Min : Rs 50,000/- Max :Rs 5000000/-
Each Spin (1 Unit) -Rs 25000/-

Variable 2 : Interest Rate : Min : 5% Max : 30%
Each Spin (1 Unit) -0.25%

Variable 3 : Tenure/Duration : Min : 6 months Max : 30 years
Each Spin (1 Unit) - 6 months

I want to have a Scroll-Bar where the values can change Automatically but am not aware of using the same...

Can someone please help me with a small attachment with the above variables attached to it..The values drawn should be displayed as well above the Scroll-Bar and maybe can make the Min and Max more dynamic by storing it somewhere in the Sheet..

I am looking for Non-VBA solution to do the same..

View 12 Replies View Related

Dropdown For Dynamic Sheets With Static Data To Create Chart

May 20, 2013

I need drop-down combo box to change a graph based on the option selected in the drop-down

Challenge: my Combo box resides on the First sheet only, but the items that populate in the drop-down list are dynamic and change depending on how many sheets exist for this document. The options in the list are Overall, Week 1, Week 2, ... Week N. Overall needs to sum up the data (or I can pull just from the summary page if I am lazy) and the Week N corresponds to a specific sheet added.

I currently am able to get my drop down to populate items correctly, and my macros to create the sheets dynamically with templates just fine (not bad for newbie).

So what I need to figure out is how to tie my drop down to make a scatter plot/bar graph based on the selected option and action. I can't find an attachment option here but here is some code:

Sheet 1 Code:

Code:
Private Sub Worksheet_Activate()
Me.ComboBox1.Clear
Me.ComboBox1.AddItem "Overall"

[Code].....

View 2 Replies View Related

Macro To Create Gaant Chart Style Table From Leave Data?

Jun 11, 2014

I have a leave history report with data for leave taken for the 2014 year. The sheet contains the following headings:

Name; Leave Start Date; Leave End Date; Date Paid; Days Taken; Roundup; Offset

The roundup column rounds the days taken up, for example if someone took 0.4 days off it would round it to 1.The offset column just subtracts the Roundup value by 1 (=Roundup-1) I think we will need this for what I am trying to do.

I have created a new spreadsheet labelled gaant chart, this shows the name of the employee with the working dates for the year and has the following data:

Name
1/01/2014
2/01/2014
3/01/2014
6/01/2014
7/01/2014
8/01/2014
9/01/2014
10/01/2014

[code].....

What I would like for the macro to do is lookup Employee 1 from my gaant chart table and search the leave history data if it finds a relevant start date for the employee it marks that date with a 1, it then looks in the offset column and marks the number of offsets to the right. For example if employee 2 took leave from 1/1/14 to 3/1/14 the macro would mark a 1 on the 1/1/14, and search the offset column which would have 2, it will then mark a 1 in the 2 cells to the right of 1/1/14 also (these being 2/1/14 and 3/1/14)

View 1 Replies View Related

Create Macro To Chart Data With Location As Object In Active Sheet

Oct 11, 2006

I have been trying to create a macro in excel to chart a selection of data and to output the chart on the active sheet where the data was taken (as opposed to a named sheet). So basically, I have about 300 worksheets with data, and I would like to have a button on each page that automatically charts that data when clicked, and outputs the chart to the page where the macro was clicked. However, I have not been able to figure out a relative reference that will allow me to make the LocationasObject reference simply the ActiveSheet as opposed to a specifically named sheet. See my code below, which references an output to a worksheet called "Charts". Right now, all of my charts are outputting to the sheet called "Charts", as opposed to the active sheet.

Sub ConsDiscChart()
ActiveCell.Offset(29, 11).Range("A1").Select
Selection.End(xlToLeft).Select
Selection.End(xlToLeft).Select
Selection.End(xlToLeft).Select
Selection.End(xlToLeft).Select
Selection.End(xlToLeft).Select
Selection.End(xlToLeft).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 1).Range("A1:B1").Select
Range(Selection, Selection.End(xlDown)).Select
ActiveCell.Offset(0, -1).Range("A1:C24").Select
Charts.Add
ActiveChart.ChartType = xlLineMarkers
ActiveChart.Location Where:=xlLocationAsObject, Name:="Charts"
With ActiveChart
.HasTitle = False
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = False
End With
End Sub

View 5 Replies View Related

Control Scroll Bars: Remove The Scroll Bars From Just One Worksheet But When Unticked

Jan 13, 2007

In the menu via TOOLS-->OPTIONS-->VIEW I am trying to remove the scroll bars from just one worksheet but when unticked, this option affects all of the worksheets in my workbook. Is there a way to just nail this selection down to one sheet via properties?

View 2 Replies View Related

Charts Stop Plotting Data Error Bars After Certain Number Of Data Point Selected

Dec 23, 2013

In the attached document is a timeline made from a scatter chart. Error bars using custom values are used to show the length of each task, however I can't get the chart to include error bars for the last 2 data points (tasks).

View 1 Replies View Related

Create A Chart To Create Totals Based Upon Different Keys

Aug 7, 2006

Trying to create an excel chart to create totals based upon different keys. I
need to be able to calculate how many customers there are by Manager and then
By Rep. Then to figure out how many were New, Current, Total # of RSVP and
attended for that Rep. Below is how I have started but I am having some
problems getting certain parts. I know when I get one the rest will fall into
place. I can calculate how many total customers by manager and by rep just by
doing a Countif command but how do I determine the # of New, Current etc. Is
there a If Than command? Managers Totals are simply his reps totals.

Example..
A B C D E
F G
1 Manager Rep Customer New Biz Current # RSVP # Actual Attend

Need totals to look something like this....

A B C D E
F G
1 # of Cust # New # Current #RSVP #
Actual Attend
2 Manager
3 Rep 1
4 Rep 2

View 15 Replies View Related

Data Bars Conditional Formatting

Mar 5, 2012

I am using the simple conditional format "Data Bar" to make a progress bar, going from 0-1 (0-100%), works fine .5 is halfway...ect. but what i would like it to do is to change to a different colour only when it reaches the 100% or 1 in this case so you can see quickly that this progress is complete.

View 7 Replies View Related

Conditional Formatting - Data Bars Based On Value From Another Cell Using INDIRECT

Apr 11, 2014

I'm running into a problem when trying to use INDIRECT in combination with Conditional Formatting Data Bars.

Basically I want to show a Data Bar in a certain cell based on the value from another cell.

It would be easy if I could simply copy the value from the other cell across into the cell in which I want to show the data Bar. Unfortunately I cannot do this as the values in the cells where I want to show the Data Bars can change.

As a solution when using Conditional Formatting Data Bars I figured out I can simply do the following:
> Under 'Minimum' use 'Type': Number with 'Value': Zero.
> Under 'Maximum' use 'Type': Formula with 'Value': =INDIRECT("B'&ROW())
This will pick up the value up from column B in the same row.
> In column B i then have this formula: =A1/C1. In C1 i have the percentage that the Data Bar should be using. By dividing the value in A1 with this percentage B1 will return a value that is used for the "Maximum" setting which will then ensure the Data Bar will display correctly.

For example: If A1 value is 4 and C1 value is 25%. Then the formula in B1 will return value 16. The scale used for the Data Bar is then 0 to 16. Seeing the value in A1 is 4 the Data Bar will correctly show 25%. If I then change the value in A1 to say 2 the scale used will change to 0 to 8 and the Data Bar will still be showing 25%, which is exactly what I'm after. So effectively this means a value from another cell is used to work out the Data Bar.

So all is fine up until this point. The problem arises when I want to apply this same logic to the rest of the column.

If I change the 'Applies To' to the range I want it applied to all the "Maximum" will only be based on the top row value. I'd expect cause I'm using the INDIRECT reference with ROW() it would have picked up the values from each individual row. I could create a new CF rule for every row, but that's not practical as there are way too many rows.

Why does the INDIRECT function with ROW() not work in this case? How to make the CF rule copy down properly?

View 3 Replies View Related

Stack Overflow

May 6, 2009

I'm running into an overflow stack with a fairly large MACRO program. Will chopping the VBA MACRO into call routines reduce the stack size of the MACRO?

View 9 Replies View Related

Out Of Stack Space Error

Jul 16, 2008

I'm running a while loop and after about 3000 iterations get this error:

"Out of stack space"

View 11 Replies View Related

Remove Spaces And Stack

Aug 28, 2009

See attached. I want to use column A to create column B (the expected result) by way of a formula. Index?

View 6 Replies View Related

Error 28 Out Of Stack Space

Aug 21, 2013

I added some code I got today and now when it runs i get the code 28 out of stack space.

Basically when the If has determined which macro to run, once that macro has ran that should be it.But if deletedates2 has ran, it reverts back to deletedates and starts again, then I get the error:

Sub deleteDates()
Dim sh As Worksheet
Dim lr As Long
Application.ScreenUpdating = False
'# Determin if (O:O) has been deleted#'
If Application.CountA(Range("$O:$O")) = 0 Then
Call DeleteDates2

[code].....

View 6 Replies View Related

Printing The Call Stack

Jul 12, 2006

how to print the call stack?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved