Create box with number entered

silverskye787

Board Regular
Joined
Jun 18, 2007
Messages
109
autoeg8.jpg


In B20 is a cell to enter any number. example if i enter 3, it will create the 3 following boxes as shown in the above picture.

i need to know how do it create the 3 boxes automatically

thanks =)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
Well, I do this very thing by using conditional formatting. I highlight the first square area and go to Format> ConditionalFormatting> then formula Is and then =$B$20>0 then change the formatting for each cell.
The next set of cells you can have as the formula =$B$20>1

Hope this helps!
Michael
 

Forum statistics

Threads
1,181,102
Messages
5,928,062
Members
436,586
Latest member
latintxn

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
Top