A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Fill a column with hex numbers



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 09:45 PM
Ronald
external usenet poster
 
Posts: n/a
Default Fill a column with hex numbers

I want to fill a column with incrementing hex numbers that
are slaved to the top cell (A1) so it can be changed. For
example:

1008
1009
100A
100B
etc.

I have tried this formula in the 2nd cell:

=DEC2HEX(HEX2DEC($A$1)+1)

I want to drag it down to fill with this:

=DEC2HEX(HEX2DEC($A$1)+1)
=DEC2HEX(HEX2DEC($A$1)+2)
=DEC2HEX(HEX2DEC($A$1)+3)

But when I drag it down to fill, it won't increment.

I want each cell to be slaved to A1, not the previous
cell, because I want to be able to insert and delete rows
without affecting the existing values.

Thanks.
Ronald


  #2  
Old June 7th, 2004, 10:13 PM
Dave R.
external usenet poster
 
Posts: n/a
Default Fill a column with hex numbers

This is a good place to use ROW()

If you're starting on row2 referring to A1, try

=DEC2HEX(HEX2DEC($A$1)+ROW()-1)



"Ronald" wrote in message
...
I want to fill a column with incrementing hex numbers that
are slaved to the top cell (A1) so it can be changed. For
example:

1008
1009
100A
100B
etc.

I have tried this formula in the 2nd cell:

=DEC2HEX(HEX2DEC($A$1)+1)

I want to drag it down to fill with this:

=DEC2HEX(HEX2DEC($A$1)+1)
=DEC2HEX(HEX2DEC($A$1)+2)
=DEC2HEX(HEX2DEC($A$1)+3)

But when I drag it down to fill, it won't increment.

I want each cell to be slaved to A1, not the previous
cell, because I want to be able to insert and delete rows
without affecting the existing values.

Thanks.
Ronald




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.