+ Reply to Thread
Results 1 to 12 of 12

enumeration of index page numbers

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    Mescalero
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question enumeration of index page numbers

    I have cells which contain text and page numbers from the index of a document.
    I need to count the number of pages listed and remove duplicates from the total count.

    any ideas?

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: enumeration of index page numbers

    = SUMPRODUCT(1/COUNTA(A1:A10, A1:A10)) will return the number of different entries in A1:A10. If there are blank cells in the region, that has to be adjusted for.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: enumeration of index page numbers

    would this do the trick?

    =SUM(IF(FREQUENCY(MATCH(array,array,0),MATCH(array,array,0))>0,1))
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Registered User
    Join Date
    03-28-2012
    Location
    Mescalero
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: enumeration of index page numbers

    I will run both and see what happens

  5. #5
    Registered User
    Join Date
    03-28-2012
    Location
    Mescalero
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: enumeration of index page numbers

    this = SUMPRODUCT(1/COUNTA(A1:A10, A1:A10))
    produced a sum of the numbers as whole numbers as percentage.
    Each number needs a value of one and any reduntant numbers need to be excluded

    National Congress, 608,181-90
    passim states, 27-28
    Colonial era, 23, 27-38 passim, 43,

    I also need to enumarate a range such as 27-38,
    I would subtract the last page from the first page and add one to get the total count but this would not solve for duplicate entries
    Last edited by depshado; 03-28-2012 at 10:40 AM. Reason: more details

  6. #6
    Registered User
    Join Date
    03-28-2012
    Location
    Mescalero
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: enumeration of index page numbers

    Quote Originally Posted by Søren Larsen View Post
    would this do the trick?

    =SUM(IF(FREQUENCY(MATCH(array,array,0),MATCH(array,array,0))>0,1))
    Array would be the cell:cell?

  7. #7
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: enumeration of index page numbers

    Quote Originally Posted by depshado View Post
    Array would be the cell:cell?
    It would be the area in which you have your pagenumbers.

  8. #8
    Registered User
    Join Date
    03-28-2012
    Location
    Mescalero
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: enumeration of index page numbers

    Quote Originally Posted by Søren Larsen View Post
    It would be the area in which you have your pagenumbers.
    =SUM(IF(FREQUENCY(MATCH(E59,E60,0),MATCH(E59,E60,0))>0,1))
    this produced
    #N/A

    are the values incorrect

  9. #9
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: enumeration of index page numbers

    Could you attach a sample workbook, showing the desired result.

    Oh, I just noticed that silly me made an error
    = SUMPRODUCT(1/COUNTIF(A1:A10, A1:A10))

  10. #10
    Registered User
    Join Date
    03-28-2012
    Location
    Mescalero
    MS-Off Ver
    Excel 2003
    Posts
    7

    Smile Re: enumeration of index page numbers

    Quote Originally Posted by mikerickson View Post
    Could you attach a sample workbook, showing the desired result.

    Oh, I just noticed that silly me made an error
    = SUMPRODUCT(1/COUNTIF(A1:A10, A1:A10))
    three cell contain the following values
    National Congress, 608
    states, 27, 28
    608,27,28, 80

    The desired result would be a count of 4

    the formula produce a count of 3
    getting closer

  11. #11
    Registered User
    Join Date
    03-28-2012
    Location
    Mescalero
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: enumeration of index page numbers

    Quote Originally Posted by Søren Larsen View Post
    would this do the trick?

    =SUM(IF(FREQUENCY(MATCH(array,array,0),MATCH(array,array,0))>0,1))
    =SUM(IF(FREQUENCY(MATCH(E59:E61,E59:E61,0),MATCH(E59:E61,E59:E61,0))>0,1))

    this formula also produced 3 for total count
    correct result should be 4

  12. #12
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: enumeration of index page numbers

    Why is a result of 4 desired, there are only 3 entries, none of which are duplicated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1