20

I need a function that will take an entire cell value in Excel and convert the value into its MD5 hash equivalent in a new cell.

Is there a formula in excel that does that? I need a solution that doesn't use VBA. Is this possible?

9
  • 9
    "I need solution without using VBA." Short answer to this: No. Commented Mar 4, 2013 at 12:13
  • 3
    A VBA approach is discussed here: stackoverflow.com/questions/125785/…. You don't say why your requirements prohibit VBA, and I'm not sure there's a non-VBA solution. Commented Mar 4, 2013 at 16:32
  • @user2002935 pure Excel formulas solution is hardly ever possible, and I don't think it's worth the efforts. Look towards VBA and provide your ideas / initial code for community assistance. Commented Mar 4, 2013 at 17:04
  • 5
    Everything is possible, you can implement the whole algorithm in multi hidden sheets, then request the user to key the entry in particular cell and retrieve the hash from another cell. The question is, do you really wanna do it this way? Commented May 3, 2013 at 4:48
  • 1
    Here is a good past question on this: stackoverflow.com/questions/14717526/vba-hash-string/14749855 Commented Feb 12, 2022 at 15:03

2 Answers 2

3

This was actually answered (with a "Yes", it's possible, and here's the proof) but the answer has been mysteriously removed. Fortunately, the Wayback Machine remembers the answer. Basically, by using Excel's bitwise operations (BITAND(), BITOR(), BITXOR(), BITR[L]SHIFT()), an MD5 calculation can be made.

Somebody even wrote a blog post on it, including an example workbook.

Sign up to request clarification or add additional context in comments.

1 Comment

Confirmed this is valid MD5 hashing by comparing to other sources of MD5 hashing. Note that the entire file size is 185kb and the ONLY THING it does is calculate the MD5. It is over 1000 lines of calculations.
2

Without VBA is possible to use webservice formula that invoke a webservice that return the md5sum.

Explanation

spreadsheet sample

This web service was developed by me as all the services on internet require a POST method and Excel is only able to perform GET request. It's hosted in a free service and I don't know for how long it will be available.

Web service source code: https://github.com/btafarelo/md5sum

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.