Last week we learned how to answer questions like, “How many tiles in a room?” using Excel. We learned about CONVERT function and fraction number format settings in Excel.
But why stop at calculation? We can even model a room full of tiles, thanks to Excel’s grid nature.
So today, we will learn how to create a room layout like this using Excel:

If you like the demo, read on to learn.
Step 1: Set up input cells
To model tiles in a room, we need 4 inputs. Lets call them by below names.
- room.length
- room.width
- tile.length
- tile.width
Step 2: Calculate number of tiles required
The basic formula for calculating total tiles required is this:
=ROUNDUP((room.length*room.width)/(tile.length*tile.width), 0)
But this formula yields in an unrealistic solution as we do not want to have fractional tiles everywhere. So, a better way to calculate this is,
=ROUNDUP(room.length / tile.length,0) * ROUNDUP(room.width / tile.width,0)
Although this formula is technically correct, you may save a few tiles if you rotate the them.
That is,
ROUNDUP(room.length / tile.width,0) * ROUNDUP(room.width / tile.length,0) can be smaller than ROUNDUP(room.length / tile.length,0) * ROUNDUP(room.width / tile.width,0) in some cases, as shown in above demo.
So we need a way to flip tile dimensions if that saves us a few bucks. That is done by,
Step 3: Flipping tile dimensions with a switch
Insert a check box and link to a blank cell, say F6.
[Related: How to use a check box in Excel]
Now, using F6 value (either TRUE or FALSE), flip the values of tile.length & tile.width using IF() formula.
Step 4: Create a 100×100 grid
Although you can model the floor plan of entire Buckingham palace in Excel, lets restrict ourselves to rooms of size 100×100.
Select 101 columns and resize them small enough so you can see all of them in a single screen, like 10 pixels wide.
Select 101 rows and adjust their height so that you can see as many of them as possible in a single screen (10 pixels tall should do).
Type running numbers in first column & row. The final grid looks this this:

Step 5: Modeling the room layout using conditional formatting
So we have a big 100×100 grid where we need to draw
- Outer boundary for the room as per room.length & room.width
- Inner tile boundaries as per tile.length & tile.width
Set up conditional formatting rules for room boundary
There are 4 rules required.
- Draw vertical left border if the topmost row = 1
- Draw vertical right border if the topmost row = room.length
- Draw horizontal top border if the left-most column = 1
- Draw horizontal bottom border if the left-most column = room.width
Below, see one of the rules.

You can find other conditional formatting rules in the downloadable workbook.
Step 6: Modeling Tiles using conditional formatting
While we need 4 rules for the room boundary, we just need 2 rules for tile boundaries.
- Draw vertical right border if the topmost row value is divisible by tile.length
- Draw horizontal bottom border if the left-most column value is divisible by tile.width
We do not need rules for vertical left border or horizontal top border because they will be drawn by previous tile.
See one of the rules below:

That’s all. Our room model is ready. Go ahead and see how it looks when tile it.
Download Example Workbook
Click here to download room tiles model workbook and play with it. Examine the conditional formatting rules to understand it better.
Do you apply Conditional Formatting in such creative ways?
I personally think conditional formatting is as good as honey, mangoes or dark chocolate. I love to use a dollop of it in all my Excel recipes.
What about you? Do you use conditional formatting for anything out-of-box 😉 like this? Please share your tips using comments.
Want more? Check out these conditional formatting examples
If you want more on conditional formatting you are in luck. Check out,
- Gantt chart using Excel conditional formatting
- Baby feeding schedule using conditional formatting
- Todo list using Excel conditional formatting
- Making data entry forms awesome with conditional formatting
- Searching data using conditional formatting
- Market segmentation charts with conditional formatting
- More examples on conditional formatting














19 Responses to “Free Invoice Template using Excel – Download”
Nice post! Invoicing for the small biz or solo entrepreneur is something I see a lot of interest in. Also there are great templates from http://office.microsoft.com/en-us/templates
This is awesome.
I would need a little more. e.g. say I generate a Inv. # 1 with all the details. Once done I can click a button all the relevant details gets stored in some table. Further, when i generate a new invoice those details gets stored in same table but just below the previous invoice.
Is their a way to do this?
I did create a solution you are looking for, however its wrapped in a larger 'Medical Scheduler' and it uses VBA, But you can Save, Update, Lookup, Email, Print & Apply Payments to the Invoice.
You are welcome to download it here:https://www.dropbox.com/s/2yvo0o2tgq9quhe/Medical_Massage_and_Salon_Application-Free.xlsm
The Invoice Items are created from the Appt. Types & Service Items table.
I would love all feedback from this
Thank you for sharing. I will definitely have a look at it.
Daily dose of Excel held a competition in 2005 for this same topic
It obtained 9 solutions which are shown:
http://dailydoseofexcel.com/archives/2005/10/27/invoice-app-the-results/
[…] http://chandoo.org/wp/2014/03/19/free-invoice-template/?utm_source=feedburner&utm_medium=email&a… […]
How can i removed Dollar Sign, As want to use this in india.
Please reply.
Also if possible then can i use Indian Rupee Sign and how?
Hi Chandoo,
Thanks for sharing this invoice template, Let me tell you this template will definitely help me since I got a process to handle where this invoice piece comes. Just a small doubt, can we store all the invoice details in PRODUCT & SERVICES sheet. So that whenever I select an invoice number from invoice sheet I can take print out and I can share it as well. Can we do that?? Since I will be dealing with this on monthly basis.
It would be great if you can help me with this.
Thanks in advance for your help!
Regards,
Gaurang Mhatre
Hi Chandoo,
I was thinking learning excel is quite tuff task but your blog proved me wrong. You made it very interesting. Thank you. Also the template you have provided for Invoice is very helpful to us.
Thanks thanks thanks.. Very helpful. 🙂
Hi i love the speadsheet but would like to ask how do i get it to add the description into the invoice as well
Hi Randy, I tried to download one of your link "https://www.dropbox.com/s/2yvo0o2tgq9quhe/Medical_Massage_and_Salon_Application-Free.xlsm" However, i found the link unavailable. Can you please help me get the new link or can you please send this VBA file on my Email-ID.
Hello Anuj,
Thanks for alerting me to the broken link. This one should work:
https://www.dropbox.com/s/gz89gshex1ad0ex/Medical_Massage_and_Salon_Application-Free.xlsm?dl=0
Please let me know if you have any questions.
Randy
Thank you so much Buddy. will check and revert you soon.
Hi, is there any chance that this can work with the "Products & Service" sheet outside of the Invoice sheet. I create multiple invoice files for the numerous clients. Updating the product sheet for each of them maybe a task. Hence, I want to create a MASTER FILE from which data can be picked up without having to insert new data in each of the invoice files.
Possible? Or am I asking for the moon 😉
Thank you so much for tutorial.
This example can be reviewed for the example of the advanced invoice that made with excel userform :https://youtu.be/Qr-4of-38DI
Good Day
i love this template may i ask if it could be modified to have the following
when you lookup a item code in the next column to the right it brings up the description then the quantity, unit cost, discount and then total otherwise i love the template
Item Code Description Quantity Unit Cost Discount Total
When creating an Invoice template in Excel are you able to utilize the auto row height and wrap feature when the cell is a merged cell? I need to have a number of cells merged together to allow for enough space to type in the description of work performed (lets say cells A-D are merged in each row) however it seems that I am unable to utilize the auto format feature. To work around this I have to manually increase the row height after each entry. Is there a better solution for this? Thank you!