Make Column with Authors listed once taken from a second column with all books listed with their authors.

Hello  everyone,


after making a new big file for all (of that category) my books  with tiles, ISBN number, date of publishing, and above all the authors. Of course with a huge pile of books some authors wrote several books. My issue now is to make a list of all authors once in that list and how often they have been mentioned. 


I am a none professional numbers user and I make numbers formulas not that often.  


What I have found is a German guy how made that what I am looking for but ... but for Excel and that does not work with numbers the way I was hoping for.


Now I thought I could ask someone in this community for help because in the German community where it is posted there is a limited number of people so I try here. 🥺



IFERROR(INDEX(Tabelle 1::$F$2:$F$134,MATCH(1,COUNTIF(Tabelle 1::$F$1:F5,Tabelle 1::$F$2:$F$134)+(Tabelle 1::$F$2:$F$134≠"")×1,0),column-index,area-index),"")








I am sure I can handle the formula to count how often an author has been mentioned in all my books.



Thank you for your support.




Well, I'm not up to date. 😔

Earlier Mac models

Posted on Aug 18, 2023 3:34 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 19, 2023 7:18 AM

limmy3 wrote:

Hello  everyone,

make a list of all authors once in that list and how often they have been mentioned. 


That formula will not work in Numbers. A Pivot Table, both in Excel and Numbers, is by far the most efficient way to do this kind of thing. Just a few clicks and you have the answer. So you might consider upgrading your Numbers version.


In old versions of Numbers we used to have to do this by formula with something like this:




Add an "index" column to the table with the data, and enter this formula in the second row and fill it down the column.


=IF(COUNTIF(F$1:F2,F2)=1,MAX(G$1:G1)+1,"")


This increments a counter each time it encounters a new author name in column F.


That counter can be used in Table 2 to look up each author and list it once.


In A2, filled down:


=INDEX(Table 1::F,MATCH(ROW(cell)−1,Table 1::G,0))


This gives a list in which each author appears once.


You can then count how many times that author appears in your data with this formula in B2, filled down:


=COUNTIF(Table 1::F,A2)


Use ; in the formulas instead of , if your region uses , as the decimal separator.


SG

6 replies
Question marked as Top-ranking reply

Aug 19, 2023 7:18 AM in response to limmy3

limmy3 wrote:

Hello  everyone,

make a list of all authors once in that list and how often they have been mentioned. 


That formula will not work in Numbers. A Pivot Table, both in Excel and Numbers, is by far the most efficient way to do this kind of thing. Just a few clicks and you have the answer. So you might consider upgrading your Numbers version.


In old versions of Numbers we used to have to do this by formula with something like this:




Add an "index" column to the table with the data, and enter this formula in the second row and fill it down the column.


=IF(COUNTIF(F$1:F2,F2)=1,MAX(G$1:G1)+1,"")


This increments a counter each time it encounters a new author name in column F.


That counter can be used in Table 2 to look up each author and list it once.


In A2, filled down:


=INDEX(Table 1::F,MATCH(ROW(cell)−1,Table 1::G,0))


This gives a list in which each author appears once.


You can then count how many times that author appears in your data with this formula in B2, filled down:


=COUNTIF(Table 1::F,A2)


Use ; in the formulas instead of , if your region uses , as the decimal separator.


SG

Aug 18, 2023 6:13 AM in response to limmy3

Hi limmy3,


This may get you started. Create another column to add an Index to each Author.



Formula in B2 (in my example): COUNTIF(A$1:A2,A)


I can not remember back to Numbers 11.1

Does it feature pivot tables? Have a look under Menu > Organise:



With a Pivot Table, the solution is easy:



If your version of Numbers does not feature pivot tables, then we must find another solution to your question.


Regards,

Ian.



Aug 19, 2023 1:35 AM in response to Yellowbox

Hello Yellowbox,

my Numbers has no Pivot function so this option is not possible.


My aim is to us this posted formula:

  • either it will not work in numbers because Excel has a function which Numbers has not.
  • their is a flaw in the formula which Excel can handle but has to be changed in Numbers.


I would like to stick to this formula unless someone has be better solution in form of a formula.


Thank you very much

Aug 19, 2023 4:45 AM in response to limmy3

Hi limmy3,


OK, let's forget Pivot Tables and use the combination of INDEX and MATCH.

Those functions work the same way in Excel and Numbers.

However, I do not understand the overall aim of that Excel formula.


Let's forget about the IFERROR function for now. It just gets in the way as we construct and debug formulas. We can add IFERROR later, if needed.


Even so, I can not make sense of this formula (without IFERROR):


INDEX(Tabelle 1::$F$2:$F$134,MATCH(1,COUNTIF(Tabelle 1::$F$1:F5,Tabelle 1::$F$2:$F$134)+(Tabelle 1::$F$2:$F$134≠"")×1,0),column-index,area-index)


The combination of INDEX and MATCH can form a powerful Lookup formula, that works in Excel and Numbers:


INDEX(Column I want a return value from,

MATCH(My Lookup Value,

Column I want to Lookup against,

Enter “0″ ))


The Excel formula does not match the syntax above.

Please tell us your overall aim, not an Excel formula.

What are you trying to do?


Regards,

Ian.

Aug 19, 2023 7:41 AM in response to Yellowbox

Hello,


I thought I have managed to tell the aim.


I have made a table of all my books with all authors and these are mentioned possible once, twice or three times.

To have an overview which authors my books have written I want to list them in a separate column but once only.


All Autors a in column F of that huge table.


F1

Authors

Skwiot, Miroslaw

Brown, Robert

Brown, Les

Roberts, John

Friedman, Norman

Friedman, Norman

Friedman, Norman

Draminski, Stefan

Draminski, Stefan

Roberts, John

Roberts, John

Watton, Ross


Goal: Authors (later in new column)

Skwiot, Miroslaw 1

Brown, Robert 1

Brown, Les 1

Roberts, John 1

Friedman, Norman 3

Draminski, Stefan 2

Watton, Ross 1


For those who use Excel the original file is available under

https://www.tabellenexperte.de/liste-nur-mit-eindeutigen-werten-erstellen/

Look for or press direct hier : Beispieldatei kannst du dir hier herunterladen).

But it is in German.


As I do not use Excel (and I don't won't to pay for it) I can not check it.

Aug 21, 2023 12:45 PM in response to limmy3

Hello everyone,

thus I have learned that not everything is possible or at least not in the direct line.

Yes I'd love to upgrade to the updated version but that means to upgrade the device

... how to pay when not to steal!?


I will try the above option mentioned and got to live with it.


Thank you everyone for your support and help.

kind regards

limmy

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Make Column with Authors listed once taken from a second column with all books listed with their authors.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.