Help with Complex Formulas

tbruce

Board Regular
Joined
Dec 9, 2013
Messages
77
Office Version
  1. 365
Platform
  1. Windows
Hi All,

This may not be complex to the power users, but I'm struggling to come up with this formula for B2 and C2. Here is what I'm trying to do:

Take the value in A2 (141635858), which is the only known value and convert it from DEC2HEX resulting in 8713108. Then take only the 5 numbers from the left (87131) and convert that from HEX2DEC resulting in 553265. I need this number (553265) in B2. Then the last two numbers of 8712108 (08), I need to convert from HEX2DEC and populate that result in C2 (8).

Any help with these formulas in B2 and C2 would be much appreciated.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]VALUE[/TD]
[TD="align: center"]PAC[/TD]
[TD="align: center"]PID[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]141635848[/TD]
[TD]553265[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
B2: =hex2dec(left(dec2hex(f11),5))
c2: =hex2dec(right(dec2hex(f12),2))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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