Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 90251

Excel/Google Sheets: How to find (and count) first occurrences of a string

$
0
0

I have a list of purchases in a spreadsheet (CSV, so I can do the operation in Excel or Google Sheet, doesn't matter), so single lines that include data like:

Date, Customer Email, Customer ID, Product

I'm struggling to find out the number of new customers per month.

I'm familiar with pivot tables, however, I think I need a formula or helper table prior to pivoting the data?!

Basically I need to identify when each Customer Email or Customer ID occurs for the first time.

The ideal desired output would be a (pivot?) table like:

Month, Number of new customers
January 2019, 100
February 2019, 120
...

As you can see I'm struggling a bit to put it into words, which might also be the reason why I'm struggling to find the answer that I'm sure is already out there.

Does anyone know what I mean, and have a hint in regards to how to achieve it?

Thanks in advance.


Viewing all articles
Browse latest Browse all 90251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>