Make text in cell touch borders - remove margins

I often use Excel for charts, including project management charts.  Ideally, I would like two or more adjacent cells in the same row to show an unbroken bar, slightly shorter than the height of the cells.  I would like this bar to be shown conditionally, based on information elsewhere in the spreadsheet.

For example, if I put a "3" in a column indicating a 3-month task, I would like the next three cells to the right to contain this continuous bar.  If I change the number to "4," I would like the bar to go across 4 cells.  If this isn't clear, I can work up a quick example.  I know how to do the conditional formulas and conditional formatting; it's the default formatting in Excel that I can't seem to override to make a bar continuous.

Apparently I cannot insert graphics into a cell.  Also I cannot find a font with a solid bar as a substitute.  But even if I could, the solid bar would not be connected between cells.  But if I could remove the default margins so that text in a cell would touch the cell borders, then I might find a close-enough font, or even use a bunch of equal signs, to fake a continuous bar.

I'm open to suggestions how to accomplish this effect.  I've considered VBA code that manipulates the length of rectangle shapes, but I'd rather keep it simple and use fonts and formats and formulas if possible.
Roland GartonPresident / Lead ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Curt LindstromCommented:
How about this approach using a formula in conditional formatting?
I applied this formula in conditional formatting for B2 and then copied this format to the other cells
=$A2>COLUMN()-2

See file

Curt
Bars-2003.xls

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
Have you tried font "LotusWP Box" the font equivalent for number 4 gives like an equal sign.

To fill cell use formula:

=REPT(4,cell("width"))

Still leaves a small gap!!

Cheers
Rob H
Rob H
Saqib Husain, SyedEngineerCommented:
Roland GartonPresident / Lead ConsultantAuthor Commented:
Workable - will use.
Roland GartonPresident / Lead ConsultantAuthor Commented:
[Wish I could edit previous comment - it was incomplete.]

Thanks, all.

Curt's solution is almost exactly what I want, except that it renders bars that fade from top to bottom instead of crisp, clear box borders.  I'll use this one.

Rob's solution still leaves the gap, as he pointed out.  Nice to know about that font, though.  It's not on my system.  By the way, easier way to put repeating characters in a cell is to apply a custom format.  I can do repeating plus signs with the custom format @*+.

Saqib's reference would probably work, but it would involve a lot of VBA code that I was hoping to avoid.

Apparently, it's impossible to make the text touch the left or right cell border.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.