Cyber_Cyrus
New Member
- Joined
- Jun 11, 2021
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Good Day All,
I have been assigned the task to identify all fields relating to our customer object within the database which has a leading or trailing space within. The fields include First Name, Last Name, Mobile etc. I managed to pull the data from the database into an Excel Spreadsheet using a query. I copied the data, and pasted in into another sheet on the same workbook, let's call it sheet 2. On Sheet 2, I trimmed all the fields, and additionally used the LEN function to calculate the number of characters in each field and also show the SUM of all LEN Values.
With the exception of the TRIM function, I did exactly the same on sheet 1. I performed a Vlookup within sheet 2 to bring up the SUM of all LEN values in sheet 1, and compared the two to spot where the Value are false, which would mean that somewhere a "space" resided which should not be there.
My question is simply this, what is the easiest way to identify in which field the "extra" space resides without running a comparison for each and every field? Please see below my attempts to accomplish this:
I have been assigned the task to identify all fields relating to our customer object within the database which has a leading or trailing space within. The fields include First Name, Last Name, Mobile etc. I managed to pull the data from the database into an Excel Spreadsheet using a query. I copied the data, and pasted in into another sheet on the same workbook, let's call it sheet 2. On Sheet 2, I trimmed all the fields, and additionally used the LEN function to calculate the number of characters in each field and also show the SUM of all LEN Values.
With the exception of the TRIM function, I did exactly the same on sheet 1. I performed a Vlookup within sheet 2 to bring up the SUM of all LEN values in sheet 1, and compared the two to spot where the Value are false, which would mean that somewhere a "space" resided which should not be there.
My question is simply this, what is the easiest way to identify in which field the "extra" space resides without running a comparison for each and every field? Please see below my attempts to accomplish this: