+ Reply to Thread
Results 1 to 5 of 5

Caesar Cipher MOD VLOOKUP Function Help

  1. #1
    Registered User
    Join Date
    03-01-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Caesar Cipher MOD VLOOKUP Function Help

    I've done caesar ciphers in excel before, but am getting stuck on this one. I'm supposed to create every possible iteration of the ciphertext in F9-F14 through each of its translation factors. I filled out the expected output in G9-I14. I assume I'm suppose to use VLOOKUP on the ciphertext in the F column, look it up in the B column, find its number equivalent in the C column, add it by each translation factor (0 for column G, 1 for column H, etc) MOD 26, find that number in the A column, and find its letter equivalent in the B column, and fill in the cell with that letter.
    For example, for the ciphertext in F9, I would look up B in Column B and find its respective number equivalent in Column C, which is 1. I would then take that 1 and add it by the first translation factor, 0 in G5, MOD 26, which is 1. I would then look up 1 in Column A and find its respective letter in Column B, which is B. I would then fill in G9 with B.
    For the same ciphertext in F9, but instead for the next translation factor, I would again look up B in Column B and find its respective number equivalent in Column C, which is 1. I would then take that 1 and add it by the second translation factor, 1 in H5, MOD 26, which is 2. I would then look up 2 in Column A and find its respective letter in Column B, which is C. I would then fill in H9 with 10.
    I understand the concept, but don't know how I'd implement this into a formula. I really just need one example shown out for me, and I can probably figure out the rest. Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Caesar Cipher MOD VLOOKUP Function Help

    =char(1/iferror(1/mod(code($f9)+columns($f$1:f$1)-64,26),1/26)+64)

  3. #3
    Registered User
    Join Date
    03-01-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Re: Caesar Cipher MOD VLOOKUP Function Help

    How exactly does this formula work? I'm trying to understand it so I can see where I can modify it to get my other desired outputs.

    Quote Originally Posted by tim201110 View Post
    columns($f$1:f$1)
    Why is this set to f1:f1? The f1 cell in the spreadsheet is blank.

    The formula you provided gets the answer for the translation factor of 1, and I can modify that for each of the other ciphertext values in the F column, but how would it be modified to the other translation factors, such as 0, 2, etc.?

  4. #4
    Registered User
    Join Date
    03-01-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Re: Caesar Cipher MOD VLOOKUP Function Help

    I figured out how to modify the formula to get my other desired outputs, thank you!

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,843

    Re: Caesar Cipher MOD VLOOKUP Function Help

    Quote Originally Posted by dchen298 View Post
    How exactly does this formula work? I'm trying to understand it so I can see where I can modify it to get my other desired outputs.


    Why is this set to f1:f1? The f1 cell in the spreadsheet is blank.

    The formula you provided gets the answer for the translation factor of 1, and I can modify that for each of the other ciphertext values in the F column, but how would it be modified to the other translation factors, such as 0, 2, etc.?
    It's a counter function, it increases by 1 for every column.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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. Help with Vigenere Cipher
    By mets3214 in forum Excel General
    Replies: 1
    Last Post: 03-04-2014, 02:18 PM
  3. Vigenere Cipher - Encryption is tricky
    By menquin in forum Excel General
    Replies: 9
    Last Post: 02-17-2014, 01:20 PM
  4. [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
  5. 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
  6. 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
  7. Venigére Cipher
    By PsychoSi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 02:47 PM

Tags for this Thread

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