How to find the Relationship of two different Data? - google-sheets

May I know if there is a way to use google sheet tools to find the relationship between two different data? For example: I have 50 respondents in Google Forms, 20 males and 30 females. There is one single-choice question, "Are you happy today?" Now, I want to find out the percentage (or number) of Males and Females who answered "Yes". Is this possible?
I tried counting manually but it took me a long time because there are many different questions. I hope that there is a command that can help me with this. Thanks in advance.

You may try something alike:
=BYROW(UNIQUE(FILTER(A2:A,A2:A<>"")),LAMBDA(z,{z,TO_PERCENT(COUNTIFS(A:A,z,B:B,"Yes")/COUNTIF(A:A,z))}))

Related

Is there a simple way to look up, sum and subtract values from different entries?

Good day everyone,
I hope you're all doing great. I want to say that I am a novice in terms of excel and sheets formulas.
I have a similar table to this in google sheets. I am focusing on 3 things, the duration of the entire shift, the break duration and the lunch duration. The break and lunch duration need to be converted to minutes or use the duration in seconds column.
I need to sum both break and lunch times per agent and subtract that total by the duration of the whole shift.
I have been throwing myself at this for longer than I would like to accept. I've been looking for formulas that could help but I haven't really found much. I got to create a helper column joining both the name and the codes together to determine which code is from which agent, but that's as far as I got.
I've also tried some INDEX(MATCH, MATCH) but nothing really comes as expected. Also tried using ARRAYFORMULA but I don't know if that'll help. Any assistance with this would be much appreciated as I really want to get to the bottom of this. I feel as though this is difficult for a novice or I am just complicating things with such a simple solution being available.
Thanks again for the assistance.
Firstof all, complete the names in each row with, in G1
={"name";ArrayFormula(lookup(row(A2:A),row(A2:A)/if(A2:A<>"",1,0),A2:A))}
then work with pivot table.

Respond with an error if dates and names overlap with each other

I think my brain is going to explode. I must be thinking about this to much.
I'm trying to make a spreadsheet to keep track of apartments and cars for a construction project. We only have so many cars and so many apartments. Im trying to schedule subcontractors so they don't overlap with each others apartments and cars.
Here is the code I have so far...
=IF(ARRAYFORMULA(B:B)=Data!$A$1,IF(DATEVALUE(D17)>=DATEVALUE(D18),IF(DATEVALUE(E18)>=DATEVALUE(E17),"Ok","Overlap")"Ok","Overlap"),"")
Please see my spreadsheet here for a better example of what I am looking for.
https://docs.google.com/spreadsheets/d/17t_8nhKfu3vy3OpAWZ_6Ep5Xn-4kwo8Xo4E6WuYVbFY/edit?usp=sharing
Thank you so much in advance!!!
You can try the formula below and paste it on the H3 cell for example. Afterwards, you will have to drag it down the column such that all the entries are covered.
As for the formula, it makes use of IF and COUNTIFS in order to check the conditions:
=IF(COUNTIFS(B$3:B3,B3,D$3:D3,"<="&D3,E$3:E3,">="&D3)>1,"Date Overlap",IF(COUNTIFS(C$3:C3,C3,D$3:D3,"<="&D3,E$3:E3,">="&D3)>1,"Vehicle Overlap","Ok"))
Reference
COUNTIFS function;
IF function.

Sum durations if they meet a criteria? (Google sheets)

I'm trying to create a dynamic dashboard for staff to track the total amount of time they've worked for our program. They fill out a form with start/end time and denote if it's work that's eligible for our program to pay them for it. I'm building a dashboard where they can see how many extended hours they've racked up over the course of the school year because we have limits on how many hours they can earn.
I'm including an editable
copy of my spreadsheet to show what I've got so far... I'd like to add up any durations in column E that have a "Yes" in Column F (which is all of them at the moment) and have that sum sit in cell C5. But all I can get it to do is sum up to zero, and I can visibly see that it should be more than zero. I've tried changing the format of the cell(s) too, but it's still zero.
Any help or ideas are greatly appreciated! And I'm always trying to learn and improve, so if you know how to do this and don't mind explaining to me how the solution works, I'd also really appreciate that so that I can keep getting better at Sheets. :)
Thanks in advance!
This is because the numbers in column J (in Data sheet) are stored as text. Either enter them instantly as numbers or use the helper column where they are converted by the formula e.g. =VALUE(J1)
Played around with it enough that I got it finally!
=SUM(ARRAYFORMULA(if(C8:C="Yes",E8:E-D8:D,0)))
Thanks for helping me troubleshoot and think it through!

EazyBI Issues created by Dayname

i have a problem with EazyBI MDX. First of all, i am very new to EazyBI and Jira.
I need to create a Member which sums up all the Issues created on a Saturday. Hope someone can help me.
Kind regards
It is quite easy but you should read EazyBI documentation first. Your question sound like "what is eazybi?".
My advice, have a look to the following resources:
https://docs.eazybi.com/display/EAZYBI/Getting+Started https://docs.eazybi.com/display/EAZYBI/MDX+Function+Reference
Regarding to your question you don't need to create a new member. Simply use Time dimension and issue dimension. Check Time dimension using the herarchy section to choose the days that you need (you can remove other days of the week). In the issues dimension you can select created ones.
Measure dimension would be useful also.
I hope this will help you to build this report and other reports in the future.
Kind regards
First of all, you need to create a calculated member under [Time] dimension like below and name it like [Time].[Saturday]:
Aggregate(Filter(
[Time].[Day].Members,
[Time].CurrentMember.Get('Week day name') MATCHES 'Saturday'
))
Then put [Time] dimension into Rows, choose the calculated member [Time].[Saturday](unselect default All Times members). In Columns, make sure you select [Measures].[Issues created](this is default selection). Then you have the sums up.

Use Boolean Criteria in AVERAGEIF()

I've got a column of classifications of how diverse counties in the US are and a column of Democratic Party vote share in the 2016 election. The diversity categories are "Very Diverse", "Somewhat Diverse", and "Homogeneous"
I'm trying to calculate the average vote share for "Very Diverse" counties and average vote share for everywhere else (so the criteria needs to be one of "Somewhat Diverse" or "Homogeneous".
Here is what I tried:
=AVERAGEIF(raw_data!D:D,OR("Homogeneous","Somewhat Diverse"),raw_data!E:E)
I got the #DIV/0! error. Can anyone help me fix that formula please? Thank you in advance!
See if this works
=AVERAGE(filter(raw_data!E:E, regexmatch(raw_data!D:D,"Homogeneous|Somewhat Diverse")))

Resources