Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/29/02 11:00
Read: times


 
#23576 - RE: Rob
"I am not quite sure how to perform bit swapping in Excel without resorting to VBA."

I was thinking of using Excel to create the data for the lookup table to do the bit swapping.

I'd go something like this (without actually trying it):

Use Fill/Series to create a column with numbers 0..255 (of course, you don't type 'em all manually!);

Use the DEC2BIN Worksheet Function fill the next column with the binary values 00000000..11111111;

Use string functions to create the bit-reversed values in the next column (I'd probably use a couple of intermediate steps);

Convert back to Hex - giving the required table entry values!

NB: If you select a range of cells, type something in the 1st cell, then press Ctrl+Enter (instead of just Enter), your entry will be "filled" into the whole of the selection in one go!


List of 30 messages in thread
TopicAuthorDate
byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping P.S.:            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping Erik            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping - Alfredo            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: Rob            01/01/70 00:00      
RE: Rob, No Excel needed            01/01/70 00:00      
RE: Rob, No Excel needed            01/01/70 00:00      
RE: Rob, No Excel needed            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      
RE: byte swapping            01/01/70 00:00      

Back to Subject List