ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculating nr of books a certain author has published (https://www.excelbanter.com/excel-worksheet-functions/447043-calculating-nr-books-certain-author-has-published.html)

wolverine2710

Calculating nr of books a certain author has published
 
I'm new to excel but googled a lot today but was unable to find the answer. Hopefully someone can supply me with a formula/solution or can point me in the right direction. Its hard to explain so I start with a snippet of a (condensed) spreadsheet.

sheet 1
Author Book paragraph
author1 book3 1
author2 book2 3
author1 book2 10
author1 book3 4
author2 book2 1
author3 book3 10

Sheet 2
Author nr_of_books_published
author1 2
author2 1
author3 1

What I'm trying to accomplish is to calculate the number of uniqe books a certain author has published. In the example above for author1 this should be 2 and for author2 this is 1 and for author3 this is also 1. In sheet2 the input for the formula which calculates the 'nr of book publised' is colum1 (author), the formula is in colum2 where also the output is shown. The data is in sheet.

Wolverine2710

Spencer101

1 Attachment(s)
Quote:

Originally Posted by wolverine2710 (Post 1605223)
I'm new to excel but googled a lot today but was unable to find the answer. Hopefully someone can supply me with a formula/solution or can point me in the right direction. Its hard to explain so I start with a snippet of a (condensed) spreadsheet.

sheet 1
Author Book paragraph
author1 book3 1
author2 book2 3
author1 book2 10
author1 book3 4
author2 book2 1
author3 book3 10

Sheet 2
Author nr_of_books_published
author1 2
author2 1
author3 1

What I'm trying to accomplish is to calculate the number of uniqe books a certain author has published. In the example above for author1 this should be 2 and for author2 this is 1 and for author3 this is also 1. In sheet2 the input for the formula which calculates the 'nr of book publised' is colum1 (author), the formula is in colum2 where also the output is shown. The data is in sheet.

Wolverine2710

Hi,

I'm sure there are in-cell formula ways of doing this but it's far to early in the day for my brain to come up with one.

However, in the attached I've provided a simple way of solving this problem by using a couple of simple helper columns.

I've added notes within the file that should help explain.

Let me know if this helps or not and feel free to ask if you need any of it explaining further.

S.

wolverine2710

Quote:

Originally Posted by Spencer101 (Post 1605228)
Hi,

I'm sure there are in-cell formula ways of doing this but it's far to early in the day for my brain to come up with one.

However, in the attached I've provided a simple way of solving this problem by using a couple of simple helper columns.

I've added notes within the file that should help explain.

Let me know if this helps or not and feel free to ask if you need any of it explaining further.

S.

Thanks a lot for the solution and the fact you provided me with a working excel sheet. Forgot to mention I use Excel 2010. I very much appreciate the effort. It gets the job done and I can even understand what your are doing.I personally like to keep my (work)sheets 'clean' (no hidden cells if not really needed because I will distribute the file) so should you happen to find an 'in cell' formula when your brain is up to it it would be again very much appreciated.

Of course if someone else has found a solution for this little puzzle I would be glad to hear from. You can take Spencers sheet as a starting point because all data for testing is already in it.


All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com