Fill boxes based on binary value

tezza

Active Member
Joined
Sep 10, 2006
Messages
375
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
  2. Web
Hi All

Any idea how I create boxes of number based on their binary number?

Initially, I'm only looking to fill 6 boxes, so 1 - 63

135723674567
81632
100001
200010
300011
400100
500101
600110
700111
801000
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Why binary? humans think in 10s.
and fill what boxes? where's the source #? , and fill what target box from the sourc#?
 
Upvote 0
Why binary? humans think in 10s.
and fill what boxes? where's the source #? , and fill what target box from the sourc#?
NumberBinaryBox 5Box 4Box 3Box 2Box 1
10000100001
20001000010
30001100011
40010000100
50010100101
60011000110
70011100111
80100001000
90100101001
100101001010
If there is a 1 in columns Box D to Box H then the number in Col B belongs in that box
So 7 has a 1 in Box 1, 2 & 3 so that's where 7 should appear.
 
Upvote 0
Upvote 0
Which boxes? You need to provide some expected results.
 
Upvote 0
That may make sense to you, but I have no idea which boxes should get filled or when.
 
Upvote 0
That may make sense to you, but I have no idea which boxes should get filled or when.
Fair point. The output should be:

13579111315236710111415456712131415
card 11719212325272931card 21819222326273031card 32021222328293031
333537394143454734353839424346473637383944454647
495153555759616350515455585962635253545560616263
8910111213141516171819202122233233343536373839
card 42425262728293031card 52425262728293031card 64041424344454647
404142434445464748495051525354554849505152535455
565758596061626356575859606162635657585960616263


If you look at the binary number for 43 it will be 101011 which places 43 in boxes 6, 4, 2, 1 - relevant to where the 1's are.
 
Upvote 0
Ok, how about
Cell Formulas
RangeFormula
B2:I5B2=AGGREGATE(15,6,$B$13:$B$75/(MID($C$13:$C$75,6,1)="1"),COLUMNS($B2:B2)+ROWS(B$2:B2)*8-8)
L2:S5L2=AGGREGATE(15,6,$B$13:$B$75/(MID($C$13:$C$75,5,1)="1"),COLUMNS($B2:B2)+ROWS(B$2:B2)*8-8)
B7:I10B7=AGGREGATE(15,6,$B$13:$B$75/(MID($C$13:$C$75,3,1)="1"),COLUMNS($B2:B2)+ROWS(B$2:B2)*8-8)
L7:S10L7=AGGREGATE(15,6,$B$13:$B$75/(MID($C$13:$C$75,2,1)="1"),COLUMNS($B2:B2)+ROWS(B$2:B2)*8-8)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,219
Messages
6,123,678
Members
449,116
Latest member
HypnoFant

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