I'm trying to create a "nested" 2D stacked bar chart in excel but I only got until stacking the columns. Unable to show "work %" inside "Used %". Is there a way to accomplish this in excel? I seen a similar example but that was in BI and not in excel.
Update:
Please note that "Work" is a subset of "Used".
Total =100 & Used = 50, then Used % = 50%
Used = 50 & Work = 50 , then Work % = 50% (of Used).
Hope this clarifies.
Name Type Total Used Work Used % Work %
Mike Sport1 100 50 25 50 50.00
Mike Sport2 175 75 50 42.86 66.67
Mike Sport3 50 40 10 80 25.00
Mike Sport4 200 110 40 55 36.36
Rita Sport1 75 25 10 33.33 40.00
Rita Sport2 150 100 80 66.67 80.00
Rita Sport3 100 75 35 75 46.67
Rita Sport4 125 100 80 80 80.00
I'm suggesting an approach further down, but your question needs a lot of clarification. The clarification would normally go into a series of me writing comments and you responding by editing your question and providing more details.
I don't feel like going through this rigmarole right now, so, please read my questions for clarification, try to understand what I'm after and then go and edit your question to provide the required detail.
My questions to you:
What is the information you want to derive from the data? What question are you posing to the data that the chart should answer?
Your data table does not make sense. The "total" column totals --what exacty--? How come "used" is 50 and "work" is 25 but Used% is 50 and Work% is also 50?
Name Type Total Used Work Used % Work %
Mike Sport1 100 50 25 50 50.00
Please edit your question and either amend the data or explain how it all hangs together.
What data do you want to chart? The scribbles on your scan are less than conclusive.
My suggestion:
These questions aside, you can create a stacked column chart with the data you want to display. You may need to create a helper table as the data source for the chart, just so everything is in the correct place for easy selection and rendering.
Whether or not something is a percentage or part of a bigger unit can be shown by formatting the colors of the data points, and with data labels.
You can add data labels to any series and then edit the labels to receive their values from spreadsheet cells. The whole thing can be automated with VBA.
If you don't want to write that kind of VBA yourself (which is understandable) you can download the free XY Chart Labeler tool by Rob Bovey here. It is ill-named and can actually add labels to any chart type.
I'm aware that this is not a complete answer. I expect you to edit your question with the missing information, so I can subsequently edit my answer to supply a real answer.
Related
I'm having trouble coming up with a dragable code for this project.
Anything 100 or under is simple, I just used =IFS(H6<E7,H6*F6)
But above 100, I'm not sure what to do. If I hand coded it at 600, it would be (100 *2 + 400 *4 + 100 *6).
I'm drawing a blank on what I should do, any help would be appreciated.
Very interesting lookup problem here! I've given it a few thoughts and came up with something that should help.
I've laid out the brackets horizontally, like this:
0 100 500 1000
40
101
1500
6000
13000
600
I have the inputs in column H, column I is left blank, and the brackets begin in column J.
So first we lookup the unit price per bucket. Easy enough, a plain old VLOOKUP will do. So J6 has this:
=VLOOKUP(J$5,$D$6:$F$9,3,TRUE)
Underneath this, in row 14, I've made a copy of this range, this time to calculate the number of units that belong under each bucket. This one was fun to come up with and could probably be simplified, but here's what I have in J14:
=MAX(0,MIN(MAX(0,$H14-J$5),VLOOKUP(J$5,$D$6:$E$9,2,FALSE)-SUM($I14:I14)))
Then I made another copy underneath to just multiply the two tables, so I have this in J22:
=J14*J6
By making the sum of the amounts under each bracket, we get what we're looking for:
40 => 80$
101 => 204$
1500 => 9800$
6000 => 54800$
13000 => 124800$
600 => 2400$
So, with a little bit of clean-up the helper ranges can certainly be removed, but then it becomes a monster formula that's pretty hard to tweak and/or debug later - whether the best solution is to do that or keep the helper ranges (and move or hide them, perhaps), is up to you!
Slight little edit, for the lookups to work you either need one more top bracket, or to have something like 9999999 as the upper bound for the "1000+" bracket.
I need to create a data set of 750 data points that need to be between 100 and 130 but the value needs to move at least 1-5% each time and end at 130.
This is to represent the volatility of a share price over 3 trading years so has to show the natural rise and fall of a share price.
Any help would be much appreciated.
This might start you off:
Cell A1 just has a max() function, the formula in A4 is :
=RANDBETWEEN(100,125)*1+RANDBETWEEN(1,4)+RANDBETWEEN(1,10)/10
Just drag down as far as...
I don't think this problem is actually very difficult. But I'm stumped. If you can take a look for me I'd really appreciate it.
Basically, I need to summarise all the labour hour costing for each month. I have a list of staff who, for their work each day, record the: jobs, codes for that job, and hours for that.
Sample Source Data:
Datestamp Name Job 1 Code 1 Hours
18/08/2017 Chainz Graham 247 - Dixon Stage 5 08-Other
19/08/2017 Jury Herewini 252 - Kay Rd Cutdown 02-Roading 8:00:00
20/08/2017 Adam Young 247 - Dixon Stage 5 08-Other 3:00:00
21/08/2017 Adam Young 250 - 132 Kay Rd Subdivision 03-Stormwater 9:30:00
22/08/2017 Jury Herewini 250 - 132 Kay Rd Subdivision 03-Stormwater
23/08/2017 Adam Young 250 - 132 Kay Rd Subdivision 02-Roading
At the end of each month I want to sum all the hours assigned to each code so that I end up with a tidy list.
Sample Desired Projected Data:
Adam Young 250 - 132 Kay Rd Subdivision 02-Roading 43
Adam Young 250 - 132 Kay Rd Subdivision 03-Stormwater 17
Adam Young 252 - Kay Rd Cutdown 03-Stormwater 40
Chainz Graham 250 - 132 Kay Rd Subdivision 02-Roading 38
Chainz Graham 250 - 132 Kay Rd Subdivision 03-Stormwater 42
Connor Herewini 250 - 132 Kay Rd Subdivision 06-Concrete 29
The difficult thing is that I only want the name, project and code to appear if the worker had hours assigned to that code for the month. So in the final list, I want three Adam's to appear if he worked on three different job codes, and so on for jobs and codes.
Please don't worry about the hours column, a simple SUMIF function can get that job done. I can also get the correct number of names to come up easily, but the project and code I'm having trouble with.
Here's a sample spreadsheet to work with below which you can download:
https://drive.google.com/file/d/0B3g...ew?usp=sharing
You will see the method I am attempting by the intermediate data in the sheet. You may find a better solution and ditch that method altogether. I'm open to suggestions.
I couldn't download your spreadsheet so not sure how your data look like in there. With the data provided here, I came up with this array formula (Please click Ctrl + Shift + Enter together)):
=IFERROR(INDEX($B$2:$E$7,SMALL(IF($B$2:$B$7=$G2,ROW($B$2:$B$7)),COUNTIF($G$2:$G2,$G2))-1,MATCH(H$1,$B$1:$E$1,0)),"")
I had the formula entered into cell H2 so please adjust it based on your layout. You can then drag it to cover all other fields. And here is the screenshot of how it looks like in the outcome:
P.S. Hours column may show in a different format and you will need to update that as well. Hope this can help you get start with your task.
P.P.S. I assume you will have the name ready for lookup or match on column G.
I got the following graph (in purple):
Now I want to add the dotted forecasting line.
It's a cell value, but not referenced to the point on the X-Axis (Oktober 13).
I am a bit lost as to how I could accomplish it. Anyone got an idea?
Thanks in advance
As I responded to this exact question in the Mr Excel forum:
Use data like this and make a simple line chart:
Date Actual Forecast
10/1/2012 1650
11/1/2012 1050
5/1/2013 1100
6/1/2013 1125
7/1/2013 1400
8/1/2013 1100
9/1/2013 2200 2200
10/1/2013 1450 2450
11/1/2013
12/1/2013
Can be achieved (in my case with Excel 2007) but proved to be rather fiddly and I would not recommend an x-axis with irregular time intervals:
Basically a Stacked Line chart, with November 13 and Dezember 13 data points formatted for Line Color No Line and one of the Oktober 13 data points formatted with a different Line Style.
A question like this might be better suited to Super User where, if you are lucky, you might attract Jon Peltier's attention.
I'm not good with excel, my knowledge is very limited, but I'm stuck with a project where I have 3,077 rows. There are a few columns where I need to move around a few words or numbers. All I need right now is to know how to do it in one column, or if it's even possible. I have a list of addresses and 90% of them have been entered incorrectly. Rather than go through each one one by one I'm hoping there's something I can run to swap the word or number around. If need be I can create a new column.
Below is an example. The first two are correct, the next four are not. I need the second number to be after ROAD or after HWY. i.e. 6 ROAD 3066 or 1059 HWY 516. Thank you for your help in advance.
42 ROAD 3050
68 ROAD 3400
6 3066 ROAD
1059 516 HWY
986 516 HWY
33 3403 ROAD
If I understand correctly, your task is as follows:
your have three columns
one of them is not a number
you want to have them in order number/text/number
Your input cells are A1/B1/C1. Then create the following additional columns:
D1 = IF(ISNUMBER(A1);A1;B1)
E1 = IF(ISNUMBER(A1);IF(ISNUMBER(C1);B1;C1);A1)
F1 = IF(ISNUMBER(C1);C1;B1)
Those are then the desired output columns.