I have used the following formula to get unique OP for each row:
=#FILTER(A2:D2,ISERROR(MATCH(A2:D2,$E$1:E2,0)))
and drag down
R1 John James Martin Andrew Mary - Output = John
R2 John James Martin Andrew Mary - Output = James because john is already the OP above
It does not always work - sometime it ignores column A - any help appreciated
try this:
=UNIQUE(FLATTEN(A2:E))
Thanks everyone - my error - i was including each row output as part of its own check - basic i know!
Related
enter image description hereI have an array of people with scores in other column. I need to find top 3 people with highest score and print their names.
Example:
Maria 1
Thomas 4
John 3
Jack 2
Ray 2
Laura 4
Kate 3
Result should be:
Thomas
Laura
John
What I get:
Thomas
Thomas
John
What I get:
Thomas
John
num
I have tried using LARGE, MATCH, MIN, MAX but nothings works.
My first failure code:
=INDEX($A$2:$A$8; MATCH(LARGE(($B$2:$B$8);{1;2;3}); $B$2:$B$8;0))
My second failure code:
{=INDEX($A$2:$A$14;SMALL(IF($B$2:$B$14=MAX($B$2:$B$14);ROW($B$2:$B$14)-1);ROW(B4)-1))}
Put this in the second row of the column you want:
=INDEX(A:A,AGGREGATE(15,7,ROW($B$1:$B$7)/((COUNTIF($D$1:D1,$A$1:$A$7)=0)*($B$1:$B$7=LARGE(B:B,ROW(1:1)))),1))
And drag down three rows:
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.
Is there a way to make this
---A---
John
John
Tim
steve
John
-------
into this:
-----A--------B------
John 1
John 1
Tim 2
Steve 3
John 1
---------------------
Have a large data file with duplicate names, and would like to number them in the way mentioned in order to use them in another way.
Please try:
=IF(COUNTIF(A$1:A2,A2)=1,MAX(B$1:B1)+1,VLOOKUP(A2,A$1:B1,2,0))
in B2 copied down, with labels or blanks in Row1.
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
I have got a sheet with 2 columns, column 1 has got names in it and Column 2 has got percentage where some of them are identical. Now, I want to list out all the names that has got maximum percentage. Could anyone suggest me a way to do this?
Thanks,
Prabhat
With data like:
James 85.00%
John 47.00%
Robert 86.00%
Michael 34.00%
William 77.00%
David 93.00%
Richard 11.00%
Charles 16.00%
Joseph 36.00%
Thomas 93.00%
Christopher 83.00%
Daniel 89.00%
Paul 31.00%
Mark 93.00%
Donald 38.00%
George 91.00%
Kenneth 84.00%
Steven 6.00%
Edward 87.00%
Brian 24.00%
Ronald 48.00%
Anthony 35.00%
in A1 thru B22 .....clearly David Thomas and Mark share the maximum.
Pick a cell, say E2 and enter the array formula:
=INDEX($A$1:$A$22,SMALL(IF($B$1:$B$22=MAX(B:B),ROW($B$1:$B$22)),ROW()-ROW($E$2)+1))
copy down until you see an error. You should see something like:
Array formulas must be entered with Ctrl + Shift + Enter rather than just the Enter key.