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
 
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)
That's look great, thank you.

I've no idea how the formula works that out, but it does :)
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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