Excel 2007 REPT formula

johnny52

Active Member
Joined
Oct 13, 2006
Messages
333
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
I have the number 87 in cell a2

In cell b2 I use the formula =REPT("l",A2) and use 8 point Arial font to get a nice little bar graph

but...it there a way to compress the width of the output 87 takes up a lot of space in a cell.

I still need the bar graph to reflect the actual number 87 only a lot less width

I have a lot of rows with many different numbers ...hopes ther's a way to compress them all.

Thanks All......Mr Excel Rules !!!!!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Perhaps change to Arial Narrow font and change the size.

I'd reccommend that you experiment with Excel 2007's Data Bars found under conditional formatting.
 
Upvote 0
I second CWATT's suggestion, but you can always scale the result, e.g.,

=REPT("l",A2/3)
 
Upvote 0
Both nice ideas.

It looks like the arial narrow font and some sizing will do the trick.

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,578
Messages
6,179,654
Members
452,934
Latest member
mm1t1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top