Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cjssas
 
Posts: n/a
Default Can I use HEX2DEC with cell references vs. numbers?

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.
  #2   Report Post  
David Billigmeier
 
Posts: n/a
Default

Would it be something other than =HEX2DEC(A1)? That should convert the
hexadecimal value located in the cell A1 to decimal value. I'm not quite
sure what you mean if it's something other than that. But it should work to
just put in the cell reference.
--
Regards,
Dave


"cjssas" wrote:

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.

  #3   Report Post  
cjssas
 
Posts: n/a
Default

Dave,

You are absolutely correct. I just tried some dummy data & it worked. My
intial problem seemed to be that the numbers I tried to convert had leading
characters (i.e., 0x004803) that the function did not seem to like. I'll
just have to only copy the characters I need and leave out the leading 0x00
stuff. Still pretty manual but at least the function works.

Thanks for your help.

"David Billigmeier" wrote:

Would it be something other than =HEX2DEC(A1)? That should convert the
hexadecimal value located in the cell A1 to decimal value. I'm not quite
sure what you mean if it's something other than that. But it should work to
just put in the cell reference.
--
Regards,
Dave


"cjssas" wrote:

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.

  #4   Report Post  
David Billigmeier
 
Posts: n/a
Default

Cool.

An easy way to get that x out, would be go to Data-Text to Columns, choose
delimited, and select the "Other" box and type in "x" for the delimiter.
--
Regards,
Dave


"cjssas" wrote:

Dave,

You are absolutely correct. I just tried some dummy data & it worked. My
intial problem seemed to be that the numbers I tried to convert had leading
characters (i.e., 0x004803) that the function did not seem to like. I'll
just have to only copy the characters I need and leave out the leading 0x00
stuff. Still pretty manual but at least the function works.

Thanks for your help.

"David Billigmeier" wrote:

Would it be something other than =HEX2DEC(A1)? That should convert the
hexadecimal value located in the cell A1 to decimal value. I'm not quite
sure what you mean if it's something other than that. But it should work to
just put in the cell reference.
--
Regards,
Dave


"cjssas" wrote:

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.

  #5   Report Post  
cjssas
 
Posts: n/a
Default

Dave,

Whoo Hoo! You da man!

Thanks very much.

"David Billigmeier" wrote:

Cool.

An easy way to get that x out, would be go to Data-Text to Columns, choose
delimited, and select the "Other" box and type in "x" for the delimiter.
--
Regards,
Dave


"cjssas" wrote:

Dave,

You are absolutely correct. I just tried some dummy data & it worked. My
intial problem seemed to be that the numbers I tried to convert had leading
characters (i.e., 0x004803) that the function did not seem to like. I'll
just have to only copy the characters I need and leave out the leading 0x00
stuff. Still pretty manual but at least the function works.

Thanks for your help.

"David Billigmeier" wrote:

Would it be something other than =HEX2DEC(A1)? That should convert the
hexadecimal value located in the cell A1 to decimal value. I'm not quite
sure what you mean if it's something other than that. But it should work to
just put in the cell reference.
--
Regards,
Dave


"cjssas" wrote:

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.



  #6   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 2 Sep 2005 12:27:03 -0700, cjssas
wrote:

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.


=HEX2DEC(A1)

works fine here, with a HEX number in A1.

What, exactly, are you doing?


--ron
  #7   Report Post  
cjssas
 
Posts: n/a
Default

Ron,

I'm trying to convert some hex numbers that are in a text file to decimal.
I have been copying the text out of the text file & pasting it into an Excel
spreadsheet. The format of the hex numbers includes leading 0x0 in front of
the hex numbers. The function did not seem to work w/ the leading characters.

"Ron Rosenfeld" wrote:

On Fri, 2 Sep 2005 12:27:03 -0700, cjssas
wrote:

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.


=HEX2DEC(A1)

works fine here, with a HEX number in A1.

What, exactly, are you doing?


--ron

  #8   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

Well, if they all have the leading 0x0 you could use:

=hex2dec(MID(A1,FIND("x",A1)+1,255))



On Fri, 2 Sep 2005 12:54:02 -0700, cjssas
wrote:

Ron,

I'm trying to convert some hex numbers that are in a text file to decimal.
I have been copying the text out of the text file & pasting it into an Excel
spreadsheet. The format of the hex numbers includes leading 0x0 in front of
the hex numbers. The function did not seem to work w/ the leading characters.

"Ron Rosenfeld" wrote:

On Fri, 2 Sep 2005 12:27:03 -0700, cjssas
wrote:

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.


=HEX2DEC(A1)

works fine here, with a HEX number in A1.

What, exactly, are you doing?


--ron



--ron
  #9   Report Post  
cjssas
 
Posts: n/a
Default

Ron,

Thanks for your help. Your formula seems to work better.

"Ron Rosenfeld" wrote:

Well, if they all have the leading 0x0 you could use:

=hex2dec(MID(A1,FIND("x",A1)+1,255))



On Fri, 2 Sep 2005 12:54:02 -0700, cjssas
wrote:

Ron,

I'm trying to convert some hex numbers that are in a text file to decimal.
I have been copying the text out of the text file & pasting it into an Excel
spreadsheet. The format of the hex numbers includes leading 0x0 in front of
the hex numbers. The function did not seem to work w/ the leading characters.

"Ron Rosenfeld" wrote:

On Fri, 2 Sep 2005 12:27:03 -0700, cjssas
wrote:

I want to use HEX2DEC to convert hex numbers to decimal. The HEX2DEC
function seems to only work with number. If I can use the function on a
number by referencing it's cell then I could convert a large number of hex
numbers to decimal.

=HEX2DEC(A1)

works fine here, with a HEX number in A1.

What, exactly, are you doing?


--ron



--ron

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
separating numbers and letters from alphanumeric cell contents PH Excel Worksheet Functions 10 September 3rd 05 12:15 PM
how to count occurence of numbers separated by , in a single cell kish20 Excel Worksheet Functions 3 June 10th 05 07:49 AM
Absolute cell references and subsequent problems. Pank Mehta Excel Discussion (Misc queries) 2 April 19th 05 11:38 AM
Cell will not format numbers correctly for a 13 digit custom barc. Laudan Excel Worksheet Functions 4 April 11th 05 08:13 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM


All times are GMT +1. The time now is 09:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"