Add leading zero to =DEC2HEX(SEQUENCE(100,1,1) formulas

speednet

New Member
Joined
Oct 13, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi there,

Based on the above formula, how do I add leading zero and maintain 4 alphanumeric digits? Thanks in advance

from
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F


To
0001
0002
0003
0004
0005
0006
0007
0008
0009
000A
000B
000C
000D
000E
000F
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi Kevin,

I have another query that is I have a list of hexadecimal in the running sequence from a row starting from 0001 to 02DD.
Any formula which I can use to identify if any of the hexadecimal is missing from the list and list out the missing hexadecimal in another column. Thanks in advance:)
 
Upvote 0
Hi Kevin,

I have another query that is I have a list of hexadecimal in the running sequence from a row starting from 0001 to 02DD.
Any formula which I can use to identify if any of the hexadecimal is missing from the list and list out the missing hexadecimal in another column. Thanks in advance:)
That one's a bit beyond me. If you post another question, I'm sure there'll be someone who can help (y)
 
Upvote 0
For reference, Hex2Dec allows you to specify string length so you could just use
Excel Formula:
=DEC2HEX(SEQUENCE(100,1,1),4)
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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