Formula for Decimal to Hex Conversion considering A,B,C

someone

New Member
Joined
Feb 15, 2003
Messages
3
Please guide me how i can write a formula for excel sheet which can do the following:-

Converts a Decimal Number into HEX Number system considering A,B,C,D,E,F characters.

Like when i place a value 255 in one of the cell of excel sheet which is in decimal it converts it into HEX number system and present the value in other sheet,

So please provide me the formula for :-

1) Decimal to HEX conversion

2) HEx to Decimal

3) Binary to HEX

4) HEX to Binary

6) Decimal to Binary

7) Binary to Decimal

thankyou
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I know this:-

DEC2HEX(number,places)

as iam doing assembly programming so i need to get the value in proper format which i am unable to get from excel...

Like if i want to convert 256 Decimal into Hex using the above formula i get the following answer which i don't understand

DEC2HEX(256,1) = #Num

how i can correct this
 
Upvote 0
when i want to convert 65536 into hex from decimal ,

how to use the DEC2HEX formula which can bring the answer in upper byte and lower byte format as rite now i have placed the following

DEC2HEX(65536,5) iam getting = 10000 answer..
i want it to get into upper byte and lower byte.
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,161
Members
448,948
Latest member
spamiki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top