Excel Charting Challenge Q, special

MacroEcon1337

Board Regular
Joined
Mar 16, 2017
Messages
64
Hello!

I'm wondering if a certain chart can be created in excel. The base data (blue) contains information about bacteria concentration levels for various depth ranges/cohorts/blocks. I have no problem charting the base chart in excel. The problem is, I want to shade a specific region under the curve for a target band in red (see picture).

Example: I want to shade the region between 10,000 and 32,000 feet (in red). The image below shows exactly what I am shooting for (a red overlay between 10,000 and 32,000).

Anyone have an idea for how this chart could be created in excel? Where all i need to do is change the Target Range (shown as 10,000 to 32,000 below) and have the chart dynamically update? All ideas/suggestions are greatly appreciated!

- MC


ChartExample.JPG





Depth CohortBacteria Concentration
0-5,000

<tbody>
</tbody>
300
5,000-10,000

<tbody>
</tbody>
250
10,000-15,000

<tbody>
</tbody>
500
15,000-20,000

<tbody>
</tbody>
550
20,000-25,000

<tbody>
</tbody>
600
25,000-30,000

<tbody>
</tbody>
770
30,000-35,000

<tbody>
</tbody>
900
35,000-40,000

<tbody>
</tbody>
950
40,000-45,000

<tbody>
</tbody>
800
45,000-50,000

<tbody>
</tbody>
1225
50,000-55,000

<tbody>
</tbody>
1150
55,000-60,000

<tbody>
</tbody>
1150
60,000-65,000

<tbody>
</tbody>
1100

<tbody>
</tbody>


MC
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I would think you need to replicate the range and just overlay it, though for columns you can set the colour by element. Check out the Peltier site, many workarounds there
 
Upvote 0
I would think you need to replicate the range and just overlay it, though for columns you can set the colour by element. Check out the Peltier site, many workarounds there

Gracias Mole - I was unaware of Peltier. But I see one option on there that looks very promising.

Leaving this thread open in any case anyone knows a solution that is more native/natural to Excel. But I feel modestly confident i could tackle using one of the Peltier workarounds.

One major problem that persists is -- if i plot the whole range out its like 50,000 rows and substantially increases my file size, slows calculation speed. I was hoping to somehow compress the data into an VBA array, then populate the chart via an array.

I will continue to pursue Peltier --- thank you for that lead,

MC
 
Upvote 0
to make it dynamic, you might consider hiding columns of data and only plotting that which is visible
 
Upvote 0
Hidden or not, a 100,000 rows is crimping my style :)

(I believe rows is what i would need to hide, not columns --- since there are only 2-5 columns).

I will post back here with a final solution, if i find one. Ty again Mr. Mole
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,243
Members
448,555
Latest member
RobertJones1986

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