Excel Cluster Bar(or Column) Chart - excel

my data looks some thing like this:
Name Event Result
Bob 1 0
Mary 1 1
Sue 2 0
Tom 1 0
Dick 2 1
Harry 1 1
Mary 2 0
Sue 2 1
Dick 1 1
etc...
Names repeat, Event is the Event type, and Result is whether the event was successful or not (0, 1). What I want to end up with is a cluster bar chart with four bars to each name:
Event 1 # of Success
Event 1 # of Fail
Event 2 # of Success
Event 2 # of Fail
I figure I'll probably want to put this in a clustered stacked bar in the future, but if I can get the simple cluster going I can figure it out. A link to a good tutorial on event based charts would be appreciated. I'll keep searching and post back what I find. Thanks in advance!

Not Sure if this will fit your needs compleately, but it might be the quickest way to visualize the data:
Select your posted data, go to insert-tab, select pivot-chart (hides behind pivot-table) and insert it as a new sheet.
Then put the Event and the Result columns to the row-field and again the Event column to the value-field and set it up to use count instead of sum. Then you get the result beneath.

Related

Not to show axis label if value is zero EXCEL

Is there any way to not to show an axis label if value is zero against that?
Suppose if a table is like below
Vehicles Sold per Brand
jun-21
jul-21
ago-21
sept-21
Opel
2
4
3
5
Renoult
6
3
8
1
Ferrari
0
0
0
0
Mercedes
1
1
6
4
Seat
2
0
4
2
Others
12
11
15
16
If i want to not to get the graph of Ferrari in axis, what should I do?
I know that, I can hide that column if the graph is not to be shown for that. I can not use that since its a highly dynamic data and I dont want to go and hide it everytime.
Could somebody help?
Many thanks an advance
So, quick and dirty:
But I would then produce the table of numbers so that any row not to be included gets removed and then build the chart with 5 only and not have the gap. I will let you work on that.
So, did that as well, but I will let you figure out how to control the Legend:
The trick is to use large(), but you may need to be wrapping with if() to control 0 better...

substitute a value in a cell with its class, Excel

I got two Excel database. One, regarding only cities and their land, has two main columns:
database1
city land
1 1
2 1
3 2
4 2
The other database shows observations and the city where they happened.
database2
- city
observation1 4
observation2 3
observation3 1
observation4 1
I'd like to substitute each cities with the corresponding land, to get something like that:
- city land
observation1 4 2
observation2 3 2
observation3 1 1
observation4 1 1
How do you think I can achieve that?
solved with xlookup (or cerca.x in italian), I'll show you how:
landdatabase2 =XLOOKUP(citydatabase2;citydatabase1;landdatabase1)
wonderful! thanks everyone

excel : determine if a combination of several cells exists and output result

Considering the following data :
sheet1 (customers)
A
0 customer_name
1 john
2 kevin
3 mickael
sheet2 (products)
A
0 product_name
1 book
2 ball
3 game
sheet3 (orders)
A B
0 customer_name product_name
1 john book
2 john game
3 mickael ball
I would like to know for each combination of customer and product if an order has been ordered and display it in the sheet1 to get something like that :
sheet1 (customers updated )
A B C D
0 customer_name book ball game
1 john 1 0 1
2 kevin 0 0 0
3 mickael 0 1 0
I know how to do that with "code" (by doing a macro in vba or a small exe in c# that will update the file), but I want to do it (if its possible) by just setting a formula inside my sheet (fyi, I can put the 3 inputs in the same sheet if needed, that's not a constraint
Updated :
with the previous configuration described, I have put the following formula in sheet1 B2 : =COUNTIFS(Sheet3!$A:$A;$A2;Sheet3!$B:$B;B$2), and when running the formula and extending it to every cell in my sheet I am getting everywhere the value #NAME? (I've translated if from french so I am not sure if its the right error in english). I think where I am making a mistake is that I am not using sheet2, how can I say first to "do all the combinations possible of customers insheet1 and products in sheet2 and look for those combinations in sheet3, knowing that I am in sheet1 and that I want to display the result like aking before?
Use COUNTIFS:
=COUNTIFS(Sheet3!$A:$A,$A2,Sheet3!$B:$B,B$1)

PivotTable will not group ANYTHING

I have done some Googling and found other people had issues when their DATE fields were not true dates, had blank values, or where date values were not actual dates (e.g. 1/33/2015). However, none of these are true for my table.
I am also unable to group regular text fields into a new group like I used to be - I am working with ticket closures and want to Group "Cancelled" and "Completed" tickets into a Closed group and then all else into an Open Group.
I was able to do this on another Excel sheet a few weeks ago but now the option is completely grayed out.
Count of ETC Column Labels
Row Labels Closed-AS IS Complete New Pending Grand Total
John Doe 2 365 367
1/2/2015 2 2
1/5/2015 1 1
1/8/2015 1 1
1/15/2015 1 1
1/16/2015 1 1
1/20/2015 2 2
1/21/2015 2 2
1/22/2015 2 2
1/23/2015 1 1
1/26/2015 2 2
1/30/2015 1 1
2/2/2015 1 1
2/3/2015 2 2
2/4/2015 3 3
2/5/2015 1 1
2/6/2015 1 1
EDIT:
AHAH! Okay, so I've narrowed it down (still not resolved though). I am able to GROUP/UNGROUP utilizing an extrenal data source (in this case it's a .iqy file - or SharePoint List/Export). I am UNABLE to GROUP/UNGROUP when referencing a table defined on the actual workbook or on the Data Model.
This is not much of an answer but here's what I found.
PowerPivot, apparently, does NOT allow for GROUPING/UNGROUPING so if your data is added to PowerPivot's data model these options will be grayed out. Instead, you will have to "force" the data by creating new columns with whatever grouping logic you can build in DAX and then create a hierarchy out of them.

Optimal to lookup and display column/row names from a table of binary data

Job Coach ConsumerName Monthly General Goals
Anna Joe 0 0 0
Sam John 0 0 0
Veron Jane 0 0 0
Bill Jack 1 1 1
Anna Jill 1 1 1
Jim 0 0 0
Bill Jiang 1 1 1
Jolly 0 1 1
Sam Jiant 0 0 0
Jap 0 1 1
Joule 1 1 1
Aardvark 0 1 0
Drake Darding 0 0 0
Hello, as you can see above I have two columns of strings; one column is "job coach" the other is "consumer name". There are three columns of 1's and 0's; monthly, general, and goals.
I'm trying to find the specific pattern of 1's and 0's in each of the rows, and to report it. For instance, the data says:
Consumer Jolly still has a a monthly which needs to be completed;
Consumer Aardvark still has a monthly which needs to be completed;
Consumer Aardvark still has a monthly and a goals which needs to be completed.
Lookup doesn't really work, because it only will return the first instance of the corresponding variable and not additionally instances.
I've tried a index function like this:
{=INDEX($C$2:$E$14,SMALL(IF($C$2:$C$14=0,ROW($C$2:$C$14)),ROW(1:1)),3)}
But that only would look up for a single column at a time, which makes the report rather cumbersome. I'm open to doing a loop in excel without formulas, however its not a simple looping formula, because I'm trying to look at each cell and to output the specific column name.
Any thoughts on how to best do it?
It's not exactly clear what the condition you want to check is, but if you want to check for a specific given pattern and return the customer name you can use this adjusted formula:
=INDEX($B$2:$B$14,SMALL(IF($C$2:$C$14&$D$2:$D$14&$E$2:$E$14="010",ROW($C$2:$C$14)-1),ROW(1:1)),1)
In your formula you checked only the first binary column and returned the last. You also had a mistake of returning the row number and not the index in the list which is row-1 in your case.
So notice:
The INDEX returns values from column B.
The IF checks a pattern of C&D&E equals a pattern like 010 which can be changed or set to a reference.
Then return the ROW()-1 in case your list starts at row 2, to return the index in the data and not the actual row.

Resources