We help IT Professionals succeed at work.
Get Started

Excel - Formula or code to determine a random Hexadecimal string based on a particular value

344 Views
Last Modified: 2015-04-06
In the attached workbook, a UDF was coded to generate a numerical value, based upon a character string.  Part 2 would actually be the reverse.  If one has a numerical value, then what random 16 character hexadecimal string would = a numeric value.  This doesn't have to be directly related to the values generated within the UDF, in fact, it shouldn't be.  The reason for wanting a random 16 character hexadecimal string is that any number of 16 character strings could equal a particular value.

For example:
If there is numerical value that equals 65, then that value would translate into any number of 16 digit Hexadecimal characters (0-F). The 16 digit string 80201BA30A910532 equals the number 65.  But, as can be seen, any number of characters could have been used to satisfy the 65 value...that's why a random 16 digit string that equals a particular number is desired.

Cook09
getvalues-from-Number.xlsm
Comment
Watch Question
Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE