ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I encode data in Excel to make it anonymous? (https://www.excelbanter.com/excel-discussion-misc-queries/147949-how-do-i-encode-data-excel-make-anonymous.html)

Aiso

How do I encode data in Excel to make it anonymous?
 
I need to change names in Excel to make it anonymous to onlookers, but make
it transferrable back to the original name for those who know the code.

Gary''s Student

How do I encode data in Excel to make it anonymous?
 
Keep the real names in an external file with sequentail numbers assigned to
them. The visible file will only have the numbers, but the real names will
be available to anyone who has the external file.
--
Gary''s Student - gsnu200733


"Aiso" wrote:

I need to change names in Excel to make it anonymous to onlookers, but make
it transferrable back to the original name for those who know the code.


DennisS

How do I encode data in Excel to make it anonymous?
 
If you know how to write user defined functions or macros you may use VBA
logical XOR (eXclusive OR) function to encode/decode your text.
e.g.
1 XOR 3 = 2
2 XOR 3 = 1

asc("A") XOR asc("z") = 59=asc(";")
asc(";") XOR asc("z") = 65 =asc("A")

Function DoXOR(XORWhat as string, WithWhat as string) as string

The function then XORs every character from XORWhat with every character
from WithWhat (cyclically).

First Function call encodes text, second run decodes it.
Not quite elegant though.


"Aiso" wrote:

I need to change names in Excel to make it anonymous to onlookers, but make
it transferrable back to the original name for those who know the code.



All times are GMT +1. The time now is 08:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com