![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
For example: I have 4 columns with values 1 2 3 4 + 1 2 3 4 A B C D 6 8 I want to show only values that are higher than 5 as a sum of the numbers vertically for A B C D. On the final line, I want to have the totals calculated. I'd have 6 for C and 8 for D, but I don't want anything in the blocks for A and B. Nothing, no zero, no symbology, nothing, long as my qualifier is > 5, I don't want the field populated. Is there an easy way to show this? Thanks |
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
How about if you zeroed out the total if it was less than, or equal to, 5 and then custom formatted it so the zero wouldn't show? The reason I ask these questions is I am wondering what you are doing with the totals. Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
=if(sum(**:**)=0,"",sum(xx:xx))
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 34
|
Question regarding the above response
=if(sum(**:**)=0,"",sum(**:**)) The "" formats the cell as a text cell and the result can not be used in further calculations. Is there an alternative? Thank you for your time -Dave |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
=sum(**:**) You can then custom format the cell so the zero doesn't show. Use this for formatting (including the quotes): 0.00;-0.00;"" If you have any questions just let me know. Regards, _________________ Barrie Davidson My Excel Web Page [ This Message was edited by: Barrie Davidson on 2002-03-06 14:26 ] |
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2002
Posts: 34
|
Thank you Barrie, however...
My goal is to automate a 25+ worksheet file. Most of the worksheets contain columns of one years worth of months. To meet this goal, I don't want to manually hide and unhide months that are not populated for the current year. Hence, I am using the "IF" statement. Is there an alternative way to automate hiding cell contents when the cells contents equals zero that will automatically unhide when not equal to zero? And, allow the cell to be used in further calculations even when the cell is hidden? Thank you. -Dave |
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
0.00;-0.00;"" You will see nothing if you put zero in cell A1 and you will see the number if you put anything else in. Is this any clearer?
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#8 |
|
New Member
Join Date: Mar 2002
Posts: 34
|
Thank you Barry!!
I will need to tweak my file a bit for this, but your recommendation will work. But, this should do the trick. Thank again. -Dave |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|