Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have one column (A) with decimal numbers A second column currently has this function: =DEC2HEX(A1) The second column currently shows the hex equivalent of the decimal number e.g. 14=E I wish the second column to show "0xE" as it would in Visual Studio I have tried ="0x"+DEC2HEX(A1) and also ="0x"+TEXT(DEC2HEX(A1),"00") but neither work. How can I do this please?

share|improve this question
up vote 5 down vote accepted

Use & to concatenate text.

share|improve this answer
Thanks all, I didn't realise it would be that easy! – mccartrey Sep 8 '11 at 10:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .