Skip to main content

How to count the total number of items (emails) in all folders in Outlook?

In Outlook, it automatically shows the number of unread items/emails beside folder name in the Navigation pane as right screenshot shown. But now, you need to count the total number of items/emails instead of only unread ones, how? Below workarounds will solve this problems easily!


Count total number of items/emails in one folder

For counting the total number of items/emails in one folder in Outlook, you can easily change this folder’s properties to archive it.

1. In the Navigation Pane, right click the folder whose total number of items you will count, and select Properties from the right-clicking menu. See screenshot below:

2. In the opening Properties dialog box, please check the Show total number of items option, and click the OK button. See screenshot above:

And now the number of unread items beside the folder name is replaced with the total number of all items/emails. See screenshot:

Notes:
(1) After selecting the folder in Navigation Pane, the number of all emails and number of unread emails are also shown at the Status bar.
(2) This method can only show one folder’s total number of items/emails at a time. For showing the total numbers of items of all folders, please try below VBA.

Count total numbers of items/email in all folders with VBA

For counting the total numbers of all items in all folders, please apply below VBA code in Outlook.

1. Press Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and then paste below VBA code into the new opening Module window.

VBA: Count/show total numbers of items/emails in all folders in Outlook

Sub ShowTotalInAllFolders()
Dim oStore As Outlook.Store
Dim oRoot As Outlook.Folder

On Error Resume Next

For Each oStore In Application.Session.Stores
Set oRoot = oStore.GetRootFolder
ShowTotalInFolders oRoot
Next
End Sub

Private Sub ShowTotalInFolders(ByVal Root As Outlook.Folder)
Dim oFolder As Outlook.Folder

On Error Resume Next

If Root.Folders.Count > 0 Then
For Each oFolder In Root.Folders
oFolder.ShowItemCount = olShowTotalItemCount
ShowTotalInFolders oFolder
Next
End If
End Sub

3. Press the F5 key or click the Run button to run this VBA.
And now the total number of items/emails in each folder is showing beside the folder name. See screenshot:


Count total numbers of items/emails in each folder with Kutools for Outlook

If you have Kutools for Outlook installed, you can quickly count the total number of all items/emails in each folder with its All Folders Show Total Number of Items feature. Please do as follows:

Kutools for Outlook: Ultimate Outlook toolkit with over 100 handy tools. Try it FREE for 60 days, no limitations, no worries!   Read More...   Start Free Trial Now!

Click Kutools Plus > Show Number of Items > All Folders Show Total Number of Item.
doc count items emails in all folders 001

And now the number of unread items behind each folder on the Navigation Pane is changed to the the total number of all items immediately. See screenshot:doc count items emails in all folders 4

Kutools for Outlook: Supercharge Outlook with over 100 must-have tools. Test drive it for FREE for 60 days, no strings attached!   Read More...   Download Now!


Count total numbers of all items/emails in all/multiple folders

All of above methods are talking about counting the total number of all emails in each folder. Have you ever thought of summing the numbers of item in each folder and returning a total number? This method will introduce Kutools for Outlook's Statistics feature to count the total number of all/multiple items in all folders.

Kutools for Outlook: Ultimate Outlook toolkit with over 100 handy tools. Try it FREE for 60 days, no limitations, no worries!   Read More...   Start Free Trial Now!

1. Click Kutools Plus > Statistics. See screenshot:
doc count items emails in all folders 002

2. Click the OK button directly in the first Statistic dialog box.
Note: By default all folders in all email accounts are selected. For counting total numbers in several/multiple folders, please check them only and click the OK button.

And now the second Statistic dialog box comes out, and you will get the total number of all items/emails in all folders of all email accounts configured in your Outlook. See screenshot:

Kutools for Outlook: Supercharge Outlook with over 100 must-have tools. Test drive it for FREE for 60 days, no strings attached!   Read More...   Download Now!


Demo: count Total number of items (emails) in each/ multiple/ all folders in Outlook


Tip: In this Video, Kutools tab is added by Kutools for Outlook. If you need it, please click here to have a 60-day free trial without limitation!


Related Articles


Best Office Productivity Tools

Kutools for Outlook - Over 100 Powerful Features to Supercharge Your Outlook

🤖 AI Mail Assistant: Instant pro emails with AI magic--one-click to genius replies, perfect tone, multilingual mastery. Transform emailing effortlessly! ...

📧 Email Automation: Out of Office (Available for POP and IMAP)  /  Schedule Send Emails  /  Auto CC/BCC by Rules When Sending Email  /  Auto Forward (Advanced Rules)   /  Auto Add Greeting   /  Automatically Split Multi-Recipient Emails into Individual Messages ...

📨 Email Management: Easily Recall Emails  /  Block Scam Emails by Subjects and Others  /  Delete Duplicate Emails  /  Advanced Search  /  Consolidate Folders ...

📁 Attachments ProBatch Save  /  Batch Detach  /  Batch Compress  /  Auto Save   /  Auto Detach  /  Auto Compress ...

🌟 Interface Magic: 😊More Pretty and Cool Emojis   /  Boost Your Outlook Productivity with Tabbed Views  /  Minimize Outlook Instead of Closing ...

👍 One-click Wonders: Reply All with Incoming Attachments  /   Anti-Phishing Emails  /  🕘Show Sender's Time Zone ...

👩🏼‍🤝‍👩🏻 Contacts & Calendar: Batch Add Contacts From Selected Emails  /  Split a Contact Group to Individual Groups  /  Remove Birthday Reminders ...

Over 100 Features Await Your Exploration! Click Here to Discover More.

Read More       Free Download      Purchase
 

 

Comments (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hoping you guys can help me out. I used the VBA method above but now would like to remove it. I deleted the module in outlook and in C:\Users\user\AppData\Roaming\Microsoft\Outlook but the totals are still appearing next to the folder names.
This comment was minimized by the moderator on the site
Hi Michael,
Start Outlook, right click the folder you want to turn off the total number of items on the Navigation Pane, select Properties in the context menu, and then check Show number of unread items on the General tab in the Properties dialog. See screenshot:
Note that you can turn off the total number of items for one folder at a time. If you want to turn off total numbers of items for all folders in your Outlook, Kutools for Outlook’s All Folders Show Number of Unread Items feature is recommended. https://www.extendoffice.com/documents/outlook/3728-outlook-count-items-emails-in-all-folders.html#kto
This comment was minimized by the moderator on the site
I searched quite a bit before discovering this. The VBA worked quite well and did exactly what I wanted.

Unforseen issue, the effect seems permanent. Took a while to figure how to resolve/undo. Change this one line from...

oFolder.ShowItemCount = olShowTotalItemCount to...

oFolder.ShowItemCount = olShowUnreadItemCount

...and there's another constant that can be used, olShowNoItemCount, if no counts should be displayed.

The first two are available through the UI but, so far as I could tell, have to be applied on a folder by folder basis so the VBA is a real time saver!
This comment was minimized by the moderator on the site
Hi Alan,
Thank you very much for your comment and suggestion on the VBA. Actually, Kutools for Outlook has released the Show Number of Items feature to quickly show or hide the total number of items or the number of unread items in each folder by one click.
This comment was minimized by the moderator on the site
I Googled this question several ways, all included Outlook or Office 365, but of the 100's of links, NONE showed how to do this in Outlook online. All show how in Outlook desktop.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations