[Solved] Count of times the email appears

Discuss the spreadsheet application
Post Reply
krotkolapka
Posts: 1
Joined: Sat Oct 01, 2022 8:59 pm

[Solved] Count of times the email appears

Post by krotkolapka »

Hi, Beautiful Creatures!

I have a big database with reservations.
Every row is one reservation.
Some of them are accepted and some of them are cancelled.

The rows look like this:
ACCEPTED | EMAIL ADDRESS 1 | DETAILS
ACCEPTED | EMAIL ADDRESS 2 | DETAILS
CANCELLED | EMAIL ADDRESS 1 | DETAILS
etc.

I would like to automatically count how many times the particular email address appears for accepted and cancelled reservations.

So the output would be:
EMAIL ADDRESS 1 | accepted: 7 | cancelled: 5

I was wondering how to solve this dilemma. Any ideas? I will really appreciate your help! 🙏
Last edited by MrProgrammer on Sat Oct 15, 2022 5:51 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
OpenOffice 7.3.6.2 | MacOS Big Sur 11.7
User avatar
karolus
Volunteer
Posts: 1160
Joined: Sat Jul 02, 2011 9:47 am

Re: Automation: counting how many times the email appears in the database.

Post by karolus »

Hallo

Try →→Data→(DataPilot aka Pivottable)

drag&drop firstColumn to ColumnField, drag&drop second column to RowField AND also into DataField( choose Count instead Sum )
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
Post Reply