+ Reply to Thread
Results 1 to 5 of 5

Formula to calculate number of print pages requires

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Formula to calculate number of print pages requires

    I am looking for a formula that will calculate the number of pages it would take to print out all the data on a search page. Each printed page has 24 records. The records start on B11 and goes down. So basically the formula should find the number of rows containing records (by searching for the last row after 11 with data in B), and then divide the number of rows by 24 (number of records per page). The answer should be a whole number, and then display the text 'Pages' after it.

    Thanks.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Formula to calculate number of print pages requires

    Try this:

    =ROUNDUP((COUNTA(B:B)-COUNTA(B1:B10))/24,0)

    Assumes your records are contiguous, i.e. no blank rows.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Formula to calculate number of print pages requires

    It didnt quite seem to work. It came back with 63, and in the current state it should be 12. I have attached my worksheet.
    The formula is on the Search sheet in A10. As search criteria is entered into the search cells (E1:E6) the page count should be changing (since the number of records below is also changing). But it seems to stay at 63.
    Also i would like the cell to display the text Pages after the number.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Formula to calculate number of print pages requires

    change the countA to count...
    =ROUNDUP((COUNT(B:B)-COUNT(B1:B10))/24,0)&" Pages"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Formula to calculate number of print pages requires

    Ah yes, you have copied a formula in column B down to row 1500, so COUNTA will be counting those as well. Use COUNT instead, as FDibbins suggests.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Return the number of pages to print
    By stvgarner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2007, 12:53 PM
  2. Fails to calculate pages to print
    By Mossy in forum Excel General
    Replies: 1
    Last Post: 05-24-2007, 05:33 AM
  3. Print specific number of pages?
    By deeppurple247 in forum Excel General
    Replies: 1
    Last Post: 01-26-2007, 04:19 PM
  4. Can you print a specific number of pages?
    By deeppurple247 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2007, 02:17 PM
  5. Replies: 2
    Last Post: 07-26-2006, 01:05 PM

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