Hi.
Let me paste these two sheets:
Sheet1...
and Sheet2...
The second swaps first and last name and sorts everything by last name. However, by using index/match, if two people have the same last name, I'm only getting the first instance where it matches. Can you please let me know if you would try a different approach? This is a reduced version of my sheet, which has a lot more columns, so not all approaches will work. I'm just asking if there's something I'm doing fundamentally wrong.
Thanks everyone!
Let me paste these two sheets:
Sheet1...
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | FIRST NAME | LAST NAME | ID NUMBER | |||
2 | Michael | Walker | 123456789 | mike@gmail.com | ||
3 | Sarah | Walker | 234567891 | walker.sarah@gmail.com | ||
4 | John | Timmons | 345678912 | john@gmail.com | ||
5 | Ashley | Bjornsdottir | 456789123 | bjorn@gmail.com | ||
6 | Andrew | West | 567891234 | west@hotmail.com | ||
7 | Les | Johnson | 678912345 | johnson@hotmail.com | ||
Sheet1 |
and Sheet2...
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | LAST NAME | FIRST NAME | DATE OF BIRTH | |||
2 | Bjornsdottir | Ashley | 456789123 | Bjorn@Gmail.Com | ||
3 | Johnson | Les | 678912345 | Johnson@Hotmail.Com | ||
4 | Timmons | John | 345678912 | John@Gmail.Com | ||
5 | Walker | Michael | 123456789 | Mike@Gmail.Com | ||
6 | Walker | Michael | 123456789 | Mike@Gmail.Com | ||
7 | West | Andrew | 567891234 | West@Hotmail.Com | ||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A2:A7 | A2 | =IF(AND(ISBLANK(Sheet1!A2:A7)),"",PROPER(SORT(FILTER(Sheet1!B2:B7,Sheet1!B2:B7<>"")))) |
B2:B7 | B2 | =IFERROR(PROPER(INDEX(Sheet1!$A$2:$A$7,MATCH(A2,Sheet1!$B$2:$B$7,0))),"") |
C2:C7 | C2 | =IFERROR(PROPER(INDEX(Sheet1!$C$2:$C$7,MATCH(A2,Sheet1!$B$2:$B$7,0))),"") |
D2:D7 | D2 | =IFERROR(PROPER(INDEX(Sheet1!$D$2:$D$7,MATCH(A2,Sheet1!$B$2:$B$7,0))),"") |
Dynamic array formulas. |
The second swaps first and last name and sorts everything by last name. However, by using index/match, if two people have the same last name, I'm only getting the first instance where it matches. Can you please let me know if you would try a different approach? This is a reduced version of my sheet, which has a lot more columns, so not all approaches will work. I'm just asking if there's something I'm doing fundamentally wrong.
Thanks everyone!