I'm new here, and would greatly appreciate some help with this problem. I'm trying to take a column (Column H in this case) that's split up by blank rows into a few hundred sets of 21 cells each and find the portion of each cell to that set.
Picture - Objective: Take a cell and divide it against 21 other cells in that set. Skip the blank row and repeat the same process several hundred times.
For example, I want to find out: "In 2015, what portion of Alabama employees were in Management Occupations?" and come to the conclusion that 3.669% were in management (Solution example would be cell [I3]). I want to calculate that for all states across all occupations across all years.
I am currently doing this by typing out what's found in column K to get the solutions found in column I, but that is very laborious and seems inefficient. How would I go about getting solutions found in Column I in the easiest way possible?
Please note that the groups must be broken up by state, which is why there are blank rows between each state.
Thank you very much, and if you need a further explanation of what I'm trying to accomplish, please let me know and I'll respond immediately!
Use SUMIF():
=H3/SUMIF(C:C,C3,H:H)
It will now group the it by the state.
If you want to group it further then use SUMIFS():
=H3/SUMIFS(H:H,C:C,C3,A:A,2015)
This will group it by the state and year 2015.
Related
I am preparing a weekly time-table for my school which looks like the following
The even rows contains course names, whereas the odd rows contain the teacher initials. Observe that a same paper is taken by more than one teacher (e.g., C10 C11 and G10 G11). I need to count the total number of classes per course per teacher in a week. Please help me to achieve that.
My efforts so far have been very inefficient.
I calculated the formula in B71 for each row in the entire time-table and added all the quantities in B70. However I need to have a comprehensive list of all courses with divisions for all teachers. I am not being able to generate that.
Thanks in advance.
You where pretty close in your attempt. You could use the following in B70 and fill down and to the right:
=COUNTIFS($C$10:$P$67,$A70,$C$11:$P$68,B$69)
Hopefully the title makes some sense because I'm trying to wrap my head around the logic and I'm not quite sure how to phrase the question.I'll try to give a brief explanation of the end goal without over complicating it with unnecessary details.
I have a table of survey score averages for every month per person and a correlating table with the number of surveys each person received for each month. The logic is essentially multiple the score for each month by the number of surveys, combine them, divide by the total number of surveys within that time period to get their true average. Where things get a little complicated is that I have to include the ability to set a custom date range and return the value. So sometimes I might be looking at the average for Jan - Apr, other times I might just be looking at Feb-Mar etc.
I think sumproduct is going to get what I need done but I'm running into issues trying to write it out. I've written it several different ways and none of them worked so here's one that best conveys what I'm trying to do,
=SUMPRODUCT(--(F7:I7,L7:O7>=C2),--(F7:I7,L7:O7<=C3),--(E8:E12,K8:K12=B9),tbl_average[[Jan-20]:[Apr-20]],tbl_surveys[[Jan-20]:[Apr-20]])
I super appreciate any assistance I can get on this. I'm hoping the end result is not nearly as difficult as I'm making it out to be.
Some additional information:
I'm going to be using this same process to calculate multiple metrics across multiple worksheets.In the test example each of the tables will most likely be on different sheets. The dashboard with the calculated results will contain everyone's names and will be filtered and rearranged frequently, so I need to make sure we're always matching directly to their names and not just the relative rows. Basically, in my example I show that Agent 1 is always lined up on row 8 but that's not always going to be the case. Agent 1 could be in Row 8 on Sheet 1, Row 10 on Sheet 2, and Row 12 on Sheet 3 and I need all the correct values to multiply and sum against one another.
Help needed please!
I’m building a parkrun spreadsheet and need help with one column. A friend of mine has a spreadsheet of his parkruns where he has successfully achieved this calculation, but he records them horizontally, whereas as I do mine by column, as per most databases. I have managed to adapt the other columns in my spreadsheet from his example, except for the ‘Tourist Streak’ # one (highlighted in yellow). I just wonder if someone could get this working in my column version please?
The Tourist Streak calculation is defined as follows: The highest number of consecutive different events attended
This one is driving me crazy!
My friend’s row-based version is here
My column-based version is here
Thanks in advance!
I thought I would have a go at this, but ended up using a different formula. The idea is that the countif looks back only to the beginning of the current sequence of unique venues to see if the current venue is duplicated and resets the length of the sequence according to the last appearance of this venue if so (I have used the word 'venue' to avoid confusion with 'run' meaning a sequence).
Starting with 1 in B2, place this formula in B3:
=IF(COUNTIF($A2:INDEX($A:$A,ROW()-B2),$A3)=0,B2+1,
ROW()-AGGREGATE(14,6,ROW($A$2:$A2)/($A$2:$A2=$A3),1))
Link to sample spreadsheet: attendance tracking
The tab to look at is the AM Classes. We need a count of how many students attended a class/group that day but it must be unduplicated. Such as some students may attend more than one STEM class in a day, but how many they attend in one day doesn't matter. We only need it to count the student once for that day in the STEM group. What I have is two different options (G1027 & M1027) but they aren't working correctly. I hope this is making sense. Attendance will be entered in using set codes (different letters of the alphabet- A1027 shows the codes.) What we need to track and their codes are in column C at the bottom (the blue lines.) I was also given the suggestion of having the formula look through the cells in that days column and find anyone of those codes and if it did, to use another column that is filled with 1's to do the actual counting (Column F). I'm not sure how to set that up though.
Thank you so much for looking at this. We have struggled with this for a while now and have had it on google forums and no suggestions on how to fix it. Below is a snapshot showing a section of the sample sheet and what we are struggling with. Thanks again.
screenshot
Try G1027:
=SUMPRODUCT(REGEXMATCH(G4:G1016,"(?i)[aglmpst]"))
Ok to paint a picture.
A sheet named bob another sheet named joe.
These sheets will have a column listed as type. it will be say E3 thru E100
in this column there will be either W, CPC, Or AMW.
A separate sheet named main will be looking at these sheets bob and joe and the column type E3 thru E100.
if the column has a w then it would count that as 1
if it has a cpc then is would count that as 1
if it has amw then it would count that as one.
And for each time it sees one of these it will added it up and tally a total back on the sheet name main.
This formula would be written 2 times for each person so it would show how many warranty jobs they did or how many customer paid jobs they did or how many aftermarket warranty job they did.
I am trying to make my job easier when i import a report from work.
can this be done is the question?
Thank you in advanced and please beware i am an idiot when it comes this stuff.
I am an ASE technician managing i group of techs and trying to make my reports not take as long as they do now which is all day so thank you in advance
Mike
It's sounds terrible, in first instance I do believe that you are trying to Count 3 codes, but unable to understand for whom,, as described later,, so better post either screen shots or sample data, help me to solve the problem.