Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've a few tables that have % values like -4.5%; -16%; 15%; 6%; 2.5%. I'm interested in creating some in-Cell charts that show positive and negative values.

My smaller values aren't showing up, so I've used some larger %'s to see what happens (See small image). It's only near the 200% and above, or -200% and below that the bar starts to show (the bar is in Column Y2).

alt text.

The formula in the top right cell is below, and this is copied down accordingly (i've left % in the lower rows by accident,but it doesn't change anything...).

=IF($W3>0,REPT($Y$2,ROUND($W3/2,1)),REPT($Y$2,ROUND(-$W3/2,1)))

And my actual workbook is set up as follows.

alt text

What should I do to this formula to make the lower figures show up? Even if the larger figure shoots of the screen.

Many thanks for your help.

Michael.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

That's because 100% in Excel is actually 1.0, not 100.0

In most cases here you are telling REPT to repeat something less than once, so it prints nothing.

Instead of dividing by 2 you should be multiplying by (100 / inc) where inc is the percentage points you want per repeated text.

share|improve this answer
    
Changed to W$3*50 and I'm starting to see results. Thanks. –  RocketGoal Sep 14 '10 at 10:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.