ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Hex2Dec substitue? (https://www.excelbanter.com/excel-discussion-misc-queries/101987-hex2dec-substitue.html)

Stuart Peters

Hex2Dec substitue?
 
Windows Mobile Excel does not have HEX2DEC.

I need to convert an 8 digit Hex number to decimal.
Anyone have a good way of doing this?

Thanks,

Leo Heuser

Hex2Dec substitue?
 
"Stuart Peters" skrev i en
meddelelse ...
Windows Mobile Excel does not have HEX2DEC.

I need to convert an 8 digit Hex number to decimal.
Anyone have a good way of doing this?

Thanks,


Hi Stuart

Here's one way to covert a hex number to decimal:

Number in C2

Enter this array formula in a cell as one line.

=SUM((16^(ROW(INDIRECT("1:"&LEN(C2)))-1))*CHOOSE(SEARCH(MID(C2,(LEN(C2)-
ROW(INDIRECT("1:"&LEN(C2)))+1),1),"0123456789ABCDE F"),0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15))

The formula must be entered with <Shift<Ctrl<Enter, also
if edited later.


--
Best regards
Leo Heuser

Followup to newsgroup only please.




All times are GMT +1. The time now is 10:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com