Is there a more efficient way to draw these bars?

Mattman55

New Member
Joined
Dec 16, 2020
Messages
17
Office Version
  1. 365
Platform
  1. Windows
I'm using this formula to draw a bar in a cell if that cell falls in a certain date range. The effect is a Gantt chart (see image).

=IF(AND(EW$5>=$H576,EW$5<=$I576),"███","")

But now that I've copied the formula several years to the right and two thousand rows down, my spreadsheet is over 10Mb and using all my memory to run.

Is there a more efficient way to do what I'm trying to do? The built in chart functions don't really cut it.

I know there are some creative people out there! Thanks in advance for your ideas!!

Matthew
Formula.jpg
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Why not use conditional formatting?
 
Upvote 0
Why not use conditional formatting?
Sort of the same reason. Per Google, While conditional formatting makes it easy to flag cells that go outside a range of values, the formatting is super-volatile. Every time your worksheet recalculates, the conditional formatting rules are reevaluated. When this involves a lot of cells, the worksheet can become very slow and unresponsive.
 
Upvote 0
Have you actually tried it on the range your interested in?
 
Upvote 0
Have you actually tried it on the range your interested in?
I'm having trouble with the formula. Shouldn't the circled cell turn blue in this instance?
 

Attachments

  • Screenshot Condit Formula.jpg
    Screenshot Condit Formula.jpg
    138.9 KB · Views: 5
Upvote 0
You need to remove the quotes & the row/column needs to match the first row in the applies to range, although I suspect the formula you need is more like
Excel Formula:
=AND(AQ$5>=$H1809,AQ$5<=$I1809)
for the applies to range of AQ1809:AW1811
 
Upvote 0
Solution
You need to remove the quotes & the row/column needs to match the first row in the applies to range, although I suspect the formula you need is more like
Excel Formula:
=AND(AQ$5>=$H1809,AQ$5<=$I1809)
for the applies to range of AQ1809:AW1811
You, my friend, are a genius! My file is now only 2Mb!! Thank you, thank you!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,647
Messages
6,126,005
Members
449,279
Latest member
Faraz5023

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