+ Reply to Thread
Results 1 to 4 of 4

Translating Excel Text Via Cipher

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    Cambridge, MA
    MS-Off Ver
    2013
    Posts
    4

    Translating Excel Text Via Cipher

    I'm trying to simplify the encoding of text in my spreadsheet with a simple cipher (BEE would become CFF). Is there some convenient way to set up a key ("A->B, B->C, etc.") and then set up an area of the spreadsheet to encode text from reference cells? Besides doing everything by hand without using the spreadsheet, the most time-efficient thing I've thought about is using =IF(mid(A1,1)=A,B,IF(mid(A1,1,1)=B,C,IF... to generate an encoded version of the nth letter in a cell, producing the string of encoded text one letter per cell over a row, and then combining the characters in that row into one cell, and then replacing 'A1' with any other cell to repeat the process. But, this is very inefficient, as I'm spending a lot of cells and time on each cell to be encoded.
    Last edited by Besjbo; 06-22-2015 at 04:01 PM.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,671

    Re: Translating Excel Text Via Cipher

    =CHAR(CODE(LEFT(A1,1))+1)&CHAR(CODE(MID(A1,2,1))+1)&CHAR(CODE(RIGHT(A1,1))+1)
    Try is formula
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    06-22-2015
    Location
    Cambridge, MA
    MS-Off Ver
    2013
    Posts
    4

    Re: Translating Excel Text Via Cipher

    Thanks! Is there any way to adapt that to an irregular cipher e.g. A -> C, B-> E, C->B, D-->F, or a code using more than one character e.g. EB -> A, AC -> B? Incrementing Unicode is a really clever way to perform an "add one" command to letters, but is specific to Caeser ciphers, and I was hoping to find a solution that allows you to "translate" however you want given a key, without necessarily writing the logic behind the code into Excel.

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,671

    Re: Translating Excel Text Via Cipher

    Excel has difficulties to count with irregularity
    Make al list of all the combination and you can use VLOOKUP to translate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel Function for caesar cipher
    By suuzi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2014, 11:31 AM
  2. [SOLVED] Need to cipher a Text Box entry
    By saji in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2013, 03:06 PM
  3. Need help with a caesar cipher project: what excel formulas to use?
    By indigo1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2012, 05:24 PM
  4. doing a ceasar cipher excel project (need help with vlookup!)
    By indigo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-18-2012, 12:54 AM
  5. [SOLVED] How can I show the exact cipher that has 19 numbers in excel?
    By Alf in forum Excel General
    Replies: 1
    Last Post: 05-12-2006, 05:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1