espenskeie
Well-known Member
- Joined
- Mar 30, 2009
- Messages
- 636
- Office Version
- 2016
- Platform
- Windows
Hi
I have created a bunch of named ranges, and now I want to use them in a chart.
The idea is to show the last four weeks of data... But I cannot get it to work. I just get an error Message saying that my formula has an error when I type "=RollingFourWeek_AustraliaUSD" in the "Select Data" section in my chart...
My named range is quite Heavy, but it show the correct range when I check it. Basically I am checking if there are less than four weeks of data, if so I want to just Select what there is.. If there are more than four weeks, then Select the last four:
=OFFSET(Cash!$E$3;2;IF(MAX(COLUMN(Cash!$E:$AZ)*(Cash!$E$3:$AZ$3<>""))<=8;0;MAX(COLUMN(Cash!$E:$AZ)*(Cash!$E$3:$AZ$3<>""))-5);1;IF(MAX(COLUMN(Cash!$E:$AZ)*(Cash!$E$3:$AZ$3<>""))<=8;MAX(COLUMN(Cash!$E:$AZ)*(Cash!$E$3:$AZ$3<>""))-4;-4))
Kind regards
Espen
I have created a bunch of named ranges, and now I want to use them in a chart.
The idea is to show the last four weeks of data... But I cannot get it to work. I just get an error Message saying that my formula has an error when I type "=RollingFourWeek_AustraliaUSD" in the "Select Data" section in my chart...
My named range is quite Heavy, but it show the correct range when I check it. Basically I am checking if there are less than four weeks of data, if so I want to just Select what there is.. If there are more than four weeks, then Select the last four:
=OFFSET(Cash!$E$3;2;IF(MAX(COLUMN(Cash!$E:$AZ)*(Cash!$E$3:$AZ$3<>""))<=8;0;MAX(COLUMN(Cash!$E:$AZ)*(Cash!$E$3:$AZ$3<>""))-5);1;IF(MAX(COLUMN(Cash!$E:$AZ)*(Cash!$E$3:$AZ$3<>""))<=8;MAX(COLUMN(Cash!$E:$AZ)*(Cash!$E$3:$AZ$3<>""))-4;-4))
Kind regards
Espen