F5F Stay Refreshed Software Operating Systems Need some assistance with Excel? Let me know what you're working on!

Need some assistance with Excel? Let me know what you're working on!

Need some assistance with Excel? Let me know what you're working on!

Pages (2): 1 2 Next
J
JynxHype
Member
67
09-04-2023, 12:41 AM
#1
I need to create a chart with a flexible scale. The X-axis values come from A20:AXX, with XX representing H9. The Y-axis data is in G20:GXX, also using H9 as the upper limit. This approach ensures only the desired data appears. I’ve explored the INDIRECT function and named ranges but haven’t succeeded yet.
J
JynxHype
09-04-2023, 12:41 AM #1

I need to create a chart with a flexible scale. The X-axis values come from A20:AXX, with XX representing H9. The Y-axis data is in G20:GXX, also using H9 as the upper limit. This approach ensures only the desired data appears. I’ve explored the INDIRECT function and named ranges but haven’t succeeded yet.

S
starwarsTP
Member
98
09-25-2023, 11:58 AM
#2
A possible workaround is to duplicate the data and apply an IF statement to reset all values after H9 to zero, keeping the points visible on the graph.
S
starwarsTP
09-25-2023, 11:58 AM #2

A possible workaround is to duplicate the data and apply an IF statement to reset all values after H9 to zero, keeping the points visible on the graph.

P
paul14141414
Member
58
09-27-2023, 01:28 AM
#3
Yes, I'm already handling that. The issue is the number of values ranges from 1000 to 100,000. In the worst case I'll have 99,000 empty points. That's why I'm choosing a dynamic approach—H9 can change between 1000 and 100,000. So if H9 equals 1000, it should plot A20 to A1000, and if H9 equals 100,000, it should plot A20 to A100,000.
P
paul14141414
09-27-2023, 01:28 AM #3

Yes, I'm already handling that. The issue is the number of values ranges from 1000 to 100,000. In the worst case I'll have 99,000 empty points. That's why I'm choosing a dynamic approach—H9 can change between 1000 and 100,000. So if H9 equals 1000, it should plot A20 to A1000, and if H9 equals 100,000, it should plot A20 to A100,000.

O
ohRealize
Member
71
09-27-2023, 10:00 AM
#4
another (more elegant) solution would be to just filter data, but then you still won't be able to use your 'H9' (there is a checkbox in the diagram options to not draw hidden data)
O
ohRealize
09-27-2023, 10:00 AM #4

another (more elegant) solution would be to just filter data, but then you still won't be able to use your 'H9' (there is a checkbox in the diagram options to not draw hidden data)

C
Chronodran
Junior Member
39
10-03-2023, 12:08 PM
#5
This requires extremely careful handling of the information. It must be preserved accurately, ensuring no missing entries are omitted in the analysis. The data should be presented clearly, with each word from A20 to H9 displayed individually.
C
Chronodran
10-03-2023, 12:08 PM #5

This requires extremely careful handling of the information. It must be preserved accurately, ensuring no missing entries are omitted in the analysis. The data should be presented clearly, with each word from A20 to H9 displayed individually.

R
RD1928
Member
99
10-08-2023, 08:40 AM
#6
alright. it works with INDIRECT as well 1. somewhere in your sheet write ="=Sheet1!A20:A"&H9 .... e.g. in cell A1 2. define new name under Insert > name > define 3. choose any name like ' series ' and enter =INDIRECT(Sheet1!$A$1) 4. in the graph enter =yourworkbook.xlsx!series
R
RD1928
10-08-2023, 08:40 AM #6

alright. it works with INDIRECT as well 1. somewhere in your sheet write ="=Sheet1!A20:A"&H9 .... e.g. in cell A1 2. define new name under Insert > name > define 3. choose any name like ' series ' and enter =INDIRECT(Sheet1!$A$1) 4. in the graph enter =yourworkbook.xlsx!series

C
Chiller9592
Senior Member
670
10-08-2023, 05:00 PM
#7
Thanks, I understood it involves naming and indirect approaches. I'll test it out tomorrow. I'll need to do a lot of cross-referencing in my work since the actual data points are scattered.
C
Chiller9592
10-08-2023, 05:00 PM #7

Thanks, I understood it involves naming and indirect approaches. I'll test it out tomorrow. I'll need to do a lot of cross-referencing in my work since the actual data points are scattered.

B
Buster_Hill
Junior Member
19
10-08-2023, 09:46 PM
#8
I adjusted the cells slightly and entered ="=INPUT!Q1:Q"&AB7 into an empty cell (AD10). The result now reads =INPUT!Q1:Q571, which matches what I need for the graph. I also created a name called percentage with the formula =INDIRECT(INPUT$AD$10), linking it to the sheet that holds the data and the cell containing the name. However, using that name in the graph still causes errors.
B
Buster_Hill
10-08-2023, 09:46 PM #8

I adjusted the cells slightly and entered ="=INPUT!Q1:Q"&AB7 into an empty cell (AD10). The result now reads =INPUT!Q1:Q571, which matches what I need for the graph. I also created a name called percentage with the formula =INDIRECT(INPUT$AD$10), linking it to the sheet that holds the data and the cell containing the name. However, using that name in the graph still causes errors.

T
Thuder2
Member
174
10-10-2023, 12:29 PM
#9
The file name wasn't used in the process. Instead, the percentage was calculated using yourworkbook!percentage.
T
Thuder2
10-10-2023, 12:29 PM #9

The file name wasn't used in the process. Instead, the percentage was calculated using yourworkbook!percentage.

O
orson11
Junior Member
19
10-10-2023, 02:49 PM
#10
This functionality operates effectively... a sample .xlsx available here https://dl.dropboxusercontent.com/u/3247...TEST2.xlsx
O
orson11
10-10-2023, 02:49 PM #10

This functionality operates effectively... a sample .xlsx available here https://dl.dropboxusercontent.com/u/3247...TEST2.xlsx

Pages (2): 1 2 Next