Is it possible in Excel 2010 to have a function that finds duplicates in a column range and based on the number of duplicates, then accumulates the equal range into one cell?
This is how my data looks:
Family Name Age Postcode
Doe John 40 1400
Doe Jane 35 1400
Doe Baby 5 1400
Mark Peter 14 1600
Matt Simon 25 1700
Matt Paul 14 1700
And I would like the output to look like this:
Family Name [Member/age] [Postcode]
Doe John [John/40, Jane/35, Baby/5] 1400
Mark Peter[Peter/14] 1600
Matt Simon[Simon/25, Paul/14] 1700
It looks like it will involve an array function.
You might be able to find something useful at:
http://www.get-digital-help.com/category/excel/searchlookup/
maybe:
http://www.get-digital-help.com/2012/11/29/lookup-and-return-multiple-values-from-a-range-excluding-blanks/
or:
http://www.get-digital-help.com/2012/03/28/search-for-a-text-string-and-return-multiple-adjacent-values/
I don't know if you'll be able to format it exactly the way you're showing but you might be able to at least achieve so results.
Related
I'm trying to compile a best 5 and worst 5 list. I have two rows, column B with the number score and column C with the name. I only want the list to include the name.
In my previous attempts the formula would get the top/bottom 5 but as soon as a duplicate score appeared the first known name with that value would just repeat.
Here is my data
26 Cal
55 John
55 Mike
100 Steve
26 Thomas
100 Jaden
100 Jack
95 Josh
87 Cole
75 Brett
I've managed to get the bottom 5 list formula correct. This formula works perfectly and includes all names of duplicate scores.
Example of what I get:
Cal
Thomas
John
Mike
Brett
=INDEX($C$56:$E$70,SMALL(IF($B$56:$B$70=SMALL($B$56:$B$70,ROWS(E$2:E2)),ROW($B$56:$B$70)-ROW($B$56)+1),SUM(IF($B$56:$B$70=SMALL($B$56:$B$70,
ROWS(E$2:E2)),1,0))-SUM(IF($B$56:$B$70<=SMALL($B$56:$B$70,ROWS(E$2:E2)),1,0))+ROWS(E$2:E2)))
Here is the formula I've tried to get the top 5 - however I keep getting an error.
=INDEX($C$56:$E$70,LARGE(IF($B$56:$B$70=LARGE($B$56:$B$70,ROWS(E$2:E2)),ROW($B$56:$B$70)-ROW($B$56)+1),SUM(IF($B$56:$B$70=LARGE($B$56:$B$70,
ROWS(E$2:E2)),1,0))-SUM(IF($B$56:$B$70<=LARGE($B$56:$B$70,ROWS(E$2:E2)),1,0))+ROWS(E$2:E2)))
Example of what I'm looking for
Steve
Jaden
Jack
Josh
Cole
You can set two queries like this for both cases:
=QUERY(B56:C70,"Select C order by B desc limit 5")
=QUERY(B56:C70,"Select C order by B limit 5")
Use SORTN() function like-
=SORTN(A1:B10,5,,1,1)
To keep only one column, wrap the SORTN() function with INDEX() and specify column number. Try-
=INDEX(SORTN(A1:B10,5,,1,1),,2)
Hello,
I am trying to configure a =if(countif) code in Excel to calculate the sum for customers of multiple payments. I'm basing their unique value on their Customer# as that's the most unique identifier as some people might have the same name. The code I've entered is having some issues and I don't have a strong experience with using this type of formula. Below is a generic sample and the code.
A:Name B:Customer# C:Paid D: Sum
Jane Doe 1044 88
Jane Doe 1044 22
Jack Doe 1088 6
Jack Doe 1088 5
Jane Doe 1520 200
Katey Doe 1222 65
Katey Doe 1222 4
Jack Doe 1045 6
Jack Doe 1045 78
Bill Doe 1011 5
(I'm unable to post an image yet)
This is the code I'm trying to use in column D:
=IF(COUNTIF(B:B,B1)>1,IF(COUNTIF(B$:B1,B1)=1,=SUM(C:C,C1),=SUM(C:C,C1))"")
SUMIF
On cell D2 enter the formula =SUMIF($B$2:$B$11,B2,$C$2:$C$11) and drag down which will create this table
Pivot Table
A pivot table would be my summary method. This will stop you from having repeated values. Notice that the Sum for each customer is repeated which is not the ideal view. Instead you can try a simple pivot that only requires 3 columns: Name, CSR #, & Paid
Seems like you want to use SUMIF()
Formula in D2:
=SUMIF($B$2:$B$11,B2,$C$2:$C$11)
Drag down..
I've had some luck modifying formulas I've found on this site to separate names in a spreadsheet but I need some help. Can anyone suggest the best way to achieve my goal?
I have a "Tenant" column where each row contains from 1 -5 names, separated by commas and "&".
My data is pretty consistent so there is no need for error routines and it looks like these examples with the max # names being 5:
John Doe, Mary Smith, Rachel Reyes & Ben Thompson
or
John Doe & Mary Smith
or
John Doe, Mary Smith & Rachel Reyes
What I really want to do is separate each name into it's own column and then separate each first name into a another column. I would have a total of 5 columns for full names and 5 more for first names for up to 5 max names if that makes sense.
So for this data: John Doe, Mary Smith, Rachel Reyes & Ben Thompson
Column:
|A|B|C|D|E|F|G|H|I|J|
John Doe|John|Mary Smith|Mary|Rachel Reyes|Rachel|Ben Thompson|Ben|
Any help is appreciated.
I am looking for some help trying to create an excel macro. I have a very large sheet that look a bit like this:
Account NAME Address Dealer
68687 Sara 11 Wood 1111
68687 Sara 11 Wood 1111
68687 Sara 11 Wood 1111
12345 Tom 10 Main 7878
12345 Tom 10 Main 7878
54321 Tom 10 Main 7878
10101 John 25 Lake 3232
10101 25 Lake 3232
11111 John 25 Lake 3232
What I need to do is to highlight all the rows on the sheet where each Dealer has more than one unique value in the Account column, but it must also have some value in the name column.
So in the above example I would only want to highlight all the rows for dealer 7878.
I am not certain if I should look at loops or arrays, they might take a long time as the sheet is quite large.
Looking for some help.
Thanks.
James - Dirk gave you a good answer in his comment. It looks like this ...
The format formula is also put into Column F, so you can see the results of the calculation.
If you feel you should still have a VBA solution, this gives you a good starting point for how to layout your code ...
Ignore rows with empty name
Count rows where the dealer is the same as the dealer in the current row, and the account is NOT the same as the account in the current row
If the count found in Step 2 is greater than 0, highlight the current row.
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