+ Reply to Thread
Results 1 to 3 of 3

Include or Exclude Column while printing based on a criteria

  1. #1
    Registered User
    Join Date
    12-12-2009
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    21

    Include or Exclude Column while printing based on a criteria

    Hi,

    I created this worksheet to analyze and provide information to my clients. But I am not just getting through the problems mentioned hereunder:

    When you place a -0- in the first column for it NOT to print, it still prints the product but not the numbers. It needs to be replaced with the numbers below it to make a complete print list of 10 with all the numbers 1 thru 10. There are 4 blue buttons on the right, just above the spreadsheet. "Print Top 10" and "Print Entire Table" In column 1, you have the choice to put a 1 or a 0; if you put a 1...it will print. If you put a "0" it's not suppose to print and the next row should shift up in the print mode and only print 1 thru 10 without missing information. Put an "0" in the top 10 in the first column and print, then you will know what I'm talking about.

    Also, you should see other columns that were hidden. There is a column called: "Roll-Up Rate Gtd Yrs" When you exceed the number of years, it inputs "Exceeds Roll-Up Gtd Period" in the "Income Benefit Rider Account Value @ End Of Year" and in the last column "Annual Income Benefit Rider Payout Beginning @ Age " displays "#Value" but should show the payout based on the maximum deferral time with an * next to the number to reflect as a disclaimer at the bottom of the page the the "Roll-up Rate Exceeds the Maximum Guaanteed Period.

    I'll really be grateful for your help.

    Regards,

    Zeeshan
    Attached Files Attached Files
    Last edited by shanipk82; 07-17-2010 at 02:04 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Complex Excel Problem

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,701

    Re: Include or Exclude Column while printing based on a criteria

    I am having a hard time understanding what behavior you want here.
    Quote Originally Posted by shanipk82 View Post
    When you place a -0- in the first column for it NOT to print, it still prints the product but not the numbers.
    Are you implying that you want the entire row to be excluded when printing?

    It needs to be replaced with the numbers below it to make a complete print list of 10 with all the numbers 1 thru 10.
    I don't understand what you mean there. Do you mean that if you exclude a row, the rankings are renumbered so you're always showing the top 10 remaining?

    Currently you have used conditional formatting so that the numbers in columns G-S are shown in a white font, and T shown in a yellow font, making them effectively invisible. However, the conditional formatting has only one rule for all rows that is tied to B18=0, rather than a rule for each row checking column B for the same row that the data is in. But strangely, if I put a 0 in column B in any row, and then Print Preview, the text in that row will change font. I can't figure out how that is happening.

    Because the sheet is protected, changing the value in volumn B has no visible effect until I do a Print Preview.

    As near as I can figure, your Print macro should iterate through the rows, hiding any rows that have a 0 in column B, printing, then unhiding those rows again. And you can get rid of all that conditional formatting. For printing the top 10, your code will have to do the same thing and renumber the rankings each time to select the top 10.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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