I have a spreadsheet that looks like this:
NAME HOURS ESTIMATED FOR TASK
================================
Bob 7
Jim 6
Bob 1
Sue 10
What I want to be able to do is to sum the total number of hours that each worker will have to spend on all tasks:
NAME HOURS ESTIMATED FOR TASK
================================
Bob 7
Jim 6
Bob 1
Sue 10
TOTALS
Bob 8
Jim 6
Sue 10
I assume that I would combine some kind of HLOOKUP and SUMIF to complete the TOTALS section, but I'm not sure. How would I complete this kind of summation?
Maybe:
=query(A2:B5,"select A, sum(B) group by A ")
Related
I have a data-set with some names and months, sample:
Name Month
Max 2
Sally 5
Max 1
James 11
Richard 9
Sally 9
I then have a table as such:
Month
Name 1 2 3 4 5 6 7 8 9 10 11 12
Max
Sally
James
Richard
How do I create a formula that can enter "Yes", or "No" for each month based on the person's name? For example, Max would have months 2 and 1 displaying "Yes", all other months displaying "No".
I can't think of how to do this...using an INDEX/MATCH function I can pull up the first month for "Max", but it won't register the second time his name shows up (it just matches the order of his name with where his data lies in the array, doesn't consider duplicates).
Is there a way to do this?
Thanks.
Assuming a data setup like this:
In cell E3 and copied over and down is this formula:
=IF(COUNTIFS($A$2:$A$7,$D3,$B$2:$B$7,E$2),"Yes","No")
The objective is to calculate the total allowance for the kids in my data set that are aged 12+. In this example using the data set below, the outcome should be 9 (5+2+2). Can someone please help me with a formula? Thanks!
ID Age Allowance
Fred 12 6
Fred 15 10
Fred 18 5
Joe 12 2
Sam 12 2
DJ 10 1
With Office 365 Excel:
=SUMPRODUCT(SUMIFS(C:C,A:A,A2:A7,B:B,">=12",B:B,MAXIFS(B:B,A:A,A2:A7))/COUNTIFS(A:A,A2:A7))
If one does not have Office 365 Excel then one can use a helper column and sum that.
In D2 Put:
=IF(AND(B2=AGGREGATE(14,7,$B$2:$B$7/($A$2:$A$7=A2),1),B2>=12),C2,"")
And copy down. Then sum at the bottom.
I have a column "Uni"
E.g.
Person Uni Round 1 Round 2 Total Rank
Leia Notts 5 5 10
Hailey Notts 6 5 11
Bobby Bath 8 1 9
James Liverpool 9 1 10
Then another table:
University Total Score Rank
Notts =sum(vlookup(...))
Bath =sum(vlookup(...))
Currently, my formula returns the 'first' lookup of the keyword - e.g. for notts, it returns '10' - rather than looking up the 10 and the 11 and summing them.
How do I make it lookup and sum both values?
My current formula is =sum(vlookup(S7,B$3:Q$40,15,FALSE)) where S7 is "Notts", range, index column 15 is "total score"
There's about 8-10 of each university.
Vlookup only returns one value, you can't sum over that.
Maybe use instead something like
=SUMIF(B$3:B$40,S7,$P3:$P40)
I have a list of identifiers, transaction amounts, and number of transactions at that amount. The identifiers repeat if the transaction amount differs, and I need to get a count of those identifiers which appear only once, and where the number of transactions at that amount is equal to one.
So if
Bob had one transaction at $45.00
Sally had three transactions at $36.00, one transaction at $22.00, and two transactions at $50.00
John had one transaction at $25.00 and one transaction at $67.00
Mark had one transaction at $25.00
Tom had seven transactions at $23.00
The count would return two.
To make my answer easier to follow, I've written your example data out as it would appear in Excel, with the column letters and row numbers.
Given the following table:
A B C
1 ID Amount Count
2 Bob 45 1
3 Sally 36 3
4 Sally 22 1
5 Sally 50 2
6 John 25 1
7 John 67 1
8 Mark 25 1
9 Tom 23 7
This formula will give you a count of rows where the ID appears once and only once in the ID column, and the value in the Count column equals 1.
=SUM(IF(IF(C2:C9=1,1,0)+IF(COUNTIF(A2:A9,A2:A9)=1,1,0)=2,1,0))
This is an array formula, so once you enter it into an Excel cell, instead of pressing enter, press Ctrl+Shift+Enter.
Tried doing this a few ways and I think I'm just looking at this a little too complicated.
I have column a with several different names that repeat. I have column B with dollar amounts. I'm trying to get a formula that will add the totals amount for a specific person.
JOHN $17.23
JAMES $37.52
JOHN $14.23
JAMES $27.52
APRIL $32.00
APRIL $143.20
JOHN $90.27
JOHN $81.13
JOHN = Total for John
JAMES = Total for James
APRIL = Total for April
Thank you
Assuming this table
A B
1 Names Bill
2 John 10
3 Tom 20
4 John 4
5 Tom 3
To get the total for each name you can write
A B
7 Names Total
8 John =Sumif(A2:A5;A8;B2:B5)
9 Tom =Sumif(A2:A5;A9;B2:B5)
This will sum up each value for the given area.
Consider:
=SUMPRODUCT((A$1:A$8="John")*(B$1:B$8))
=SUMPRODUCT((A$1:A$8="James")*(B$1:B$8))
=SUMPRODUCT((A$1:A$8="April")*(B$1:B$8))
Striking my original response in favor of:
=SUMIF(B3:B10,"=JOHN",C3:C10) I tested that, and it works even better