home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / apps / spreadsh / 666 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.3 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!icd.ab.com!iccgcc.decnet.ab.com!fatican
  2. From: fatican@iccgcc.decnet.ab.com (Nick Fatica)
  3. Newsgroups: comp.apps.spreadsheets
  4. Subject: decoding macro
  5. Message-ID: <1992Nov18.142202.9299@iccgcc.decnet.ab.com>
  6. Date: 18 Nov 92 14:22:02 EST
  7. Lines: 19
  8.  
  9. I'm looking for a spreadsheet macro (I'm using Quattro Pro - Special Edition)
  10. that will read a four digit hex number (entered as a label) from a cell, parse
  11. it, and enter numbers in the appropriate columns in that row according to the
  12. state of each bit in the hex number.  For example:
  13.  
  14.      A B C D E F G H I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z AA BB
  15.      1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  16.  
  17. 0362   2   4   6   8 9    11       14 15    17       20    22    24 25       28
  18.  
  19. One way to look at this "encoding" is to start from the right and let each odd
  20. number represent a "1" and each even number represent a "0" and then divide the
  21. even/odd pairs into groups of four (21/22, 23/24, 25/26, 27,28).  So for the
  22. above example, 22,24,25,28 would correspond to 0010, which can be represented
  23. as a hex 2.
  24. -- 
  25. Nick Fatica   fatican@astro.pc.ab.com
  26. The Allen-Bradley Company
  27. "Practice random kindness and senseless acts of beauty."
  28.