+ Reply to Thread
Results 1 to 3 of 3

Excel Function for caesar cipher

  1. #1
    Registered User
    Join Date
    03-28-2014
    Location
    AZ, USA
    MS-Off Ver
    Mac Excel 2011
    Posts
    1

    Excel Function for caesar cipher

    Hi guys! I'm working on a business project on Excel and got lost on the last section /: I would really appreciate it if someone could help me with it and also explain how you were able to develop the formula (Im not very good with Excel yet)
    These are the instructions:
    The encryption can also be represented using modular arithmetic by first transforming the letters into numbers, according to the scheme, A = 0, B = 1,..., Z = 25.[1] Encryption of a letter x by a shift n can be described mathematically as, En(x)= (x+n) mod 26.
    When reporting grades, it’s important to have an authentication code to ensure that the information is valid. For this task, you will encrypt the first four characters of your last name using a Caesar Cipher, where “n” (offset) is 10 plus the last digital of your SID. For example, if you SID is 12345678, you would use cipher 8 to encode your last name.
    develop an equation using the Excel “VLOOKUP” function to encode the first character of your last name using the Caesar Ciper table included in your dataset based on the last digit of your SID. A correct function would only require one to change one value (the last digit of your SID) in the equation to use the function for another person.

    I attached the workbook with the table for it and with the number I'm supposed to use and also what to translate.
    I've tried doing this on my own but I just couldn't figure it out
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Excel Function for caesar cipher

    I don't know how it will work on Mac but here are formulas that work under Windows.
    To find the SID last digit, take this formula (in cell N7)
    Please Login or Register  to view this content.
    The coded output in cell N10 will use this formula:
    Please Login or Register  to view this content.
    As for your cells with the Cipher 0, the formula will be:
    Please Login or Register  to view this content.
    This formula can be copied down in the column.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Excel Function for caesar cipher

    I don't know if this can be of any interest for you but I just programmed an Excel function that can Caeser cipher a message contained in a cell.
    Actually the function has 2 parameters:
    1. the characters to be coded
    2. the code base
    Please Login or Register  to view this content.
    Or this de-cipher function which works the same as the cipher one:
    Please Login or Register  to view this content.
    Last edited by p24leclerc; 03-29-2014 at 11:42 AM.

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

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