Dynamic Charts with "Blank" Cells Containing Formulas

Aladen333

New Member
Joined
Jul 12, 2013
Messages
1
Hey everyone, this is my first post!

I've figured out how to create a dynamic chart, where the last values of my data are forced to be blank using an IF formula. The range that I created for which this works has the following formula:

=OFFSET(Sheet1!$C$46,1,0,(COUNTA(Sheet1!$C:$C)-1)-COUNTIF(Sheet1!$C$47:$C$58,""))

I am now in need of using a range where I only want the last 3 values of my data. However, the bottom part of my data is blanked out by the IF formula, so I actually want the last 3 number values. So if I used the regular:

[TABLE="class: collapse"]
<TBODY>[TR="class: trbgeven"]
[TD][/TD]
[TD]=OFFSET(Sheet1!$B$1,COUNTA($B:$B)-3,0,3)

I would only end up getting 3 zeros. I tried the following, but that didn't work:

=OFFSET(Sheet!$B$46,1,0,(COUNTA(Sheet!$B:$B)-3,0,3)-(COUNTIF(Sheet!$B$47:$B$58,"")-3,0,3))

There must something I'm not understanding in the nomenclature following the COUNT functions. Please help!
[/TD]
[/TR]
</TBODY>[/TABLE]
 

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)

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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