How to count search results in Gmail

Gmail is a great products with powerful search and labelling systems that changed the way I use email. There is a small annoyance though – when doing search, Gmail does not return the total number of results if you have more than a few. Further, there is no easy way to access older results or see more than 20 results per page. Basically, you’d have to keep hitting the “older” button until you get to that last message. But what if you had hundreds or thousands of results from a mailing list, like I do?

Here is a power tip for Gmail users with thousands of messages on how to find the exact number of search results, browse 100 results at a time, and easily access the oldest messages:

  1. Do a search, either regular or advanced through the “Show search options” link.
  2. Select all the results by hitting “Select: All”
  3. Really select ALL the results by clicking on the “Select all conversations that match this search” link
  4. Apply a new label to the results, such as “Results Count”
  5. A popup dialog will ask you “This action will affect all conversations in this search. Are you sure you want to continue?” Hit OK.
  6. Now you can go to the “Results Count” label on the left side bar and:
    1. See the total number of messages
    2. See the total number of unread messages
    3. Paginate through the messages up to 100 messages at a time
    4. Access the oldest message easily through the now available “Oldest ยป” link.
  7. If you no longer need this label, you can select all the message and clear the label so it’s usable in future searches.

Did you find this tip useful? I’d appreciate some feedback in the comments. Feel free to link to other Gmail power tips.

7 thoughts on “How to count search results in Gmail

  1. Marco

    It’s useful.
    It’s a workaround for something that GMail should think about.
    I wonder if there’s a simplest way…

  2. enrico villa

    nice but this cannot count messages, but conversations.

    what I did, being a web developer, was to install roundcube on mysql, connect to gmail via imap then perform simple count sql queries

  3. Johan

    Counting labels.

    It looks like you are a clever guy.

    I need some stats from my gmail.

    I receive enquiries and label them enquiries.

    I want to count how many enquiries I get a day.

    When I only select “conversation view off” I can see all the emails with enquiry tab.

    But then I need to go and count then for 365 days to get some stats.

    This is a real pain.

    Is there a way to do this?

Leave a Reply

Your email address will not be published. Required fields are marked *