+ Reply to Thread
Results 1 to 7 of 7

Need help on substitution worksheet

  1. #1
    Registered User
    Join Date
    09-10-2016
    Location
    America
    MS-Off Ver
    2016
    Posts
    9

    Need help on substitution worksheet

    Hello all, new to the forum.
    I am trying to make a worksheet to use with a one time pad. I like the format of the attached worksheet as opposed to the Caesar wheel. I'm looking to implement a function into the worksheet so that I can input the PT (plaintext) and Key and have the CT (ciphertext) automatically show up. Any help would be greatly appreciated. Worksheet is attached. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Need help on substitution worksheet

    Hi and welcome.

    Put this in AQ3 and drag across

    =INDEX($C$3:$AO$41,MATCH(AQ2,$A$3:$A$41,0),MATCH(AQ1,$C$1:$AO$1,0))
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    09-10-2016
    Location
    America
    MS-Off Ver
    2016
    Posts
    9

    Re: Need help on substitution worksheet

    Awesome Crooza! Works great. One more question. What would the code be to decipher? In AP4, I put "DC" then from AQ4 is where the deciphered text would go. The decipher instructions are at the bottom of the worksheet. To decipher, it would be the key text character from the left column and go across that row until the Cipher text (CT) character is found. The straight up to the top row to find the Plaintext (PT).
    Last edited by Ereman82; 09-12-2016 at 09:42 AM.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Need help on substitution worksheet

    Put this in AQ4 and drag across

    =INDEX($C$1:$AO$1,MATCH(AR3,OFFSET($C$1:$AO$1,MATCH(AR2,$A$3:$A41,0)+1,0),0))

  5. #5
    Registered User
    Join Date
    09-10-2016
    Location
    America
    MS-Off Ver
    2016
    Posts
    9

    Re: Need help on substitution worksheet

    Thank you again for the response and help. I had to modify it a bit. It seemed that it was one position over. Upon further investigation, the AR4 should have been AQ4. No biggie. I hope to one day be as knowledgeable as you. I only have one more question, which isn't a big issue, but I would like to know if I can modify this code to display nothing if the cell isn't being used. Currently, it displays "N" when not in use (Cipher), and "0" (decipher). Thanks again. You've been more help than I imagined.
    Last edited by Ereman82; 09-12-2016 at 07:53 PM.

  6. #6
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Need help on substitution worksheet

    Try this

    =IF(AQ3="","",INDEX($C$1:$AO$1,MATCH(AQ3,OFFSET($C$1:$AO$1,MATCH(AQ2,$A$3:$A41,0)+1,0),0)))

  7. #7
    Registered User
    Join Date
    09-10-2016
    Location
    America
    MS-Off Ver
    2016
    Posts
    9

    Re: Need help on substitution worksheet

    Awesome! Thanks again for all your help.

+ 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. [SOLVED] SUBSTITUTION Problem!
    By niceguy21 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-26-2012, 01:28 PM
  2. Substitution! Please guide
    By hedonistic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2011, 10:44 AM
  3. Excel 2007 : Argument substitution in SUM
    By xj750rj in forum Excel General
    Replies: 2
    Last Post: 12-24-2010, 05:08 AM
  4. If then substitution
    By knitterkuba in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-13-2010, 05:24 AM
  5. Excel 2007 : Substitution Help Required!
    By Eries in forum Excel General
    Replies: 4
    Last Post: 05-18-2010, 10:30 AM
  6. [SOLVED] substitution
    By Cossloffe in forum Excel General
    Replies: 1
    Last Post: 06-04-2006, 02:10 AM
  7. Substitution
    By Boenerge in forum Excel General
    Replies: 2
    Last Post: 05-23-2005, 08:06 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