# Progress Formula | Notion guide

Aug 9 '19 · 3 min read · 3481 views

# 👨‍🏫 Guide

#### Formula example

NameHours completedHours allocatedProgress
Example 10100
Example 28100
Example 350100
Example 495100
Example 5100100

### 🧱 Building the formula step by step

% calculation:
`prop("Hours completed") / prop("Hours allocated") * 100`
Round the % to the nearest whole number
`round(prop("Hours completed") / prop("Hours allocated") * 100)`
Convert to text:
`format(round(prop("Hours completed") / prop("Hours allocated") * 100))`
`format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%"`
Add if statement & output if "Hours completed" is empty or zero:
`if(prop("Hours completed") / prop("Hours allocated") == 0, "❌" ,"")`
Add ■ progress marker:
• notes
The easiest way to insert the squares on a Mac is from the character picker
Strangely I found that Notion inverts the colour of this symbol in dark mode so I had to use White Square, rather than Black Square.
But as I'm guessing that most people reading this aren't using dark mode, I've used Black Square in this guide.
You can use the standard emoji squares which presumably keep their colour but I found that they didn't align vertically with the text properly.
`"■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%"`
Add ■ number & % as output if "Hours completed" is greater than 0 and less than or equal to 0.1:
`if(prop("Hours completed") / prop("Hours allocated") == 0, "❌", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.1), "■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%",""))`
Add outputs for each tier that needs another ■ to indicate progress:
• note
Although you can't see all of the spaces, either on this page or in the formula editor, I've added 31 spaces before the ❌ and ✅ emoji, plus enough spaces after each of the progress blocks to align the emoji and text in the progress column.
```if(prop("Hours completed") / prop("Hours allocated") == 0, " ❌", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.1), "■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.2), "■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.3), "■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.4), "■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.5), "■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.6), "■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.7), "■■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.8), "■■■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.9), "■■■■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.99), "■■■■■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", "")))))))))))```

### 🎉 Finished formula

Add ✅ if task is 100% complete:
```if(prop("Hours completed") / prop("Hours allocated") == 0, " ❌", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.1), "■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.2), "■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.3), "■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.4), "■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.5), "■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.6), "■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.7), "■■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.8), "■■■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.9), "■■■■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(smallerEq(prop("Hours completed") / prop("Hours allocated"), 0.99), "■■■■■■■■■■ " + format(round(prop("Hours completed") / prop("Hours allocated") * 100)) + "%", if(prop("Hours completed") / prop("Hours allocated") == 1, " ✅", ""))))))))))))```
The easiest way to move this into your own table is to rename the columns in your table as "Hours allocated" and "Hours completed", add the formula property and then rename the columns. The formula will automatically update to use the new column names.

Updating...

Share on