BiggusDoggus
Board Regular
- Joined
- Jul 7, 2014
- Messages
- 91
- Office Version
- 365
- Platform
- Windows
Hi all
I have a large table including Salesforce Id's, which are supposed to be "unique", but unfortunately also use case to make them so.
The table uses data that includes a range of Salesforce Id's, from just one, to many rows with the same id.
I need a way to convert these id's into truly unique "id's", so I can apply formulas such as VLOOKUP, MAX IF etc etc etc, due to the fact that excel formulas are not case sensitive.
I know there's a way to do a VLOOKUP that's case sensitive, but I use the Salesforce Id's for other calculations that aren't VLOOKUP.
The Salesforce ID's are always 15 characters long: an example of two "unique" id's are:
0060I00000dseT3
0060I00000dsEt3
As you can see the case for the "e" and "t" are the only variations that make them "unique".
I have tried the following:
=CODE(MID(D2,1,1)) & CODE(MID(D2,2,1)) & CODE(MID(D2,3,1)) & CODE(MID(D2,4,1)) & CODE(MID(D2,5,1)) & CODE(MID(D2,6,1)) & CODE(MID(D2,7,1)) & CODE(MID(D2,8,1)) & CODE(MID(D2,9,1)) & CODE(MID(D2,10,1)) & CODE(MID(D2,11,1)) & CODE(MID(D2,12,1)) & CODE(MID(D2,13,1)) & CODE(MID(D2,14,1)) & CODE(MID(D2,15,1))
The output (using the above examples) is:
However, I tried a conditional format on the column to show duplicates, and according to it they are ALL duplicates!
And - I get the error box saying "Number stored as text", and the option to convert to Number. When I do:
Which is possibly why they are being considered as duplicates, and why none of my formulas are working as expected.
What's going wrong please?
I have a large table including Salesforce Id's, which are supposed to be "unique", but unfortunately also use case to make them so.
The table uses data that includes a range of Salesforce Id's, from just one, to many rows with the same id.
I need a way to convert these id's into truly unique "id's", so I can apply formulas such as VLOOKUP, MAX IF etc etc etc, due to the fact that excel formulas are not case sensitive.
I know there's a way to do a VLOOKUP that's case sensitive, but I use the Salesforce Id's for other calculations that aren't VLOOKUP.
The Salesforce ID's are always 15 characters long: an example of two "unique" id's are:
0060I00000dseT3
0060I00000dsEt3
As you can see the case for the "e" and "t" are the only variations that make them "unique".
I have tried the following:
=CODE(MID(D2,1,1)) & CODE(MID(D2,2,1)) & CODE(MID(D2,3,1)) & CODE(MID(D2,4,1)) & CODE(MID(D2,5,1)) & CODE(MID(D2,6,1)) & CODE(MID(D2,7,1)) & CODE(MID(D2,8,1)) & CODE(MID(D2,9,1)) & CODE(MID(D2,10,1)) & CODE(MID(D2,11,1)) & CODE(MID(D2,12,1)) & CODE(MID(D2,13,1)) & CODE(MID(D2,14,1)) & CODE(MID(D2,15,1))
The output (using the above examples) is:
However, I tried a conditional format on the column to show duplicates, and according to it they are ALL duplicates!
And - I get the error box saying "Number stored as text", and the option to convert to Number. When I do:
Which is possibly why they are being considered as duplicates, and why none of my formulas are working as expected.
What's going wrong please?