janema
Board Regular
- Joined
- Nov 28, 2022
- Messages
- 143
- Office Version
- 365
- 2021
- 2019
- 2011
- 2010
- Platform
- Windows
- Mobile
I have been trying to create a nested xlookup formula with a trim and find, but wonder if this is possible. The two formulas I am trying to combine are as follows:
=XLOOKUP(F4,'EmpExport(3.11.24)'!E:E,'EmpExport(3.11.24)'!BC:BC)
&
=TRIM(RIGHT(A2,LEN(A2)-FIND(",",A2))&" "&LEFT(A2,FIND(",",A2)-1))
The source data of that lookup formula returns the name of an employee in "Last Name, First Name" format, but I am trying to add in the second formula to format that source data in "First Name, Last Name" instead.
Please help! Thanks so much in advance.
=XLOOKUP(F4,'EmpExport(3.11.24)'!E:E,'EmpExport(3.11.24)'!BC:BC)
&
=TRIM(RIGHT(A2,LEN(A2)-FIND(",",A2))&" "&LEFT(A2,FIND(",",A2)-1))
The source data of that lookup formula returns the name of an employee in "Last Name, First Name" format, but I am trying to add in the second formula to format that source data in "First Name, Last Name" instead.
Please help! Thanks so much in advance.