Plotting a graph with every nth cell

davyj93

New Member
Joined
Apr 14, 2017
Messages
14
Hi guys,

I am trying to plot a graph but I have a lot of data. I have 213,792 rows of data but Excel only lets you plot 32,000 data points on a graph.

How do I plot every 7th row of data instead?

Below is a small look at what my columns look like (and the rows would be filled in of course):

Time (mins)Engine Power (kW)

<tbody>
</tbody>


Thanks,
David
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi David,

I am afraid that the only solution would be to create a separate table with cell references to the original table, i.e.
Time | Engine Power
=A2 =B2
=A9 =B9
=A16 =B16
etc.
...and then creating a chart linked to the new table.
 
Upvote 0
You could use below formula to give you every 7th row in the new table.

for the 1st row just use =A1
then use & drag down
=INDEX($A$2:$A$60,ROW(A1)*7)

Someone may have a better solution.
 
Upvote 0
I tried the formula.

It gave me the correct starting value but then gave the 14th value. After this it started giving every 7th value.

Is there a reason why the 2nd value (on the newly created column) came up as the 14th original value rather than the 7th?
 
Upvote 0
do you have any hidden rows, perhaps? As is stands, the formula should do exactly what it says on the tin...
 
Upvote 0
Here is the table again with added columns:

nth cell values:
Time (mins)Power (kW)Time (mins)Power (kW)
112112
2122240
3152950
4173657
517#REF!#REF!
618#REF!#REF!
719#REF!#REF!
820#REF!#REF!
922#REF!#REF!
1025#REF!#REF!
1125#REF!#REF!
1225#REF!#REF!
1326#REF!#REF!
1427#REF!#REF!
1528#REF!#REF!
1630#REF!#REF!
1733#REF!#REF!
1835#REF!#REF!
1937#REF!#REF!
2038#REF!#REF!
2138#REF!#REF!
2240#REF!#REF!
2344#REF!#REF!
2444#REF!#REF!
2544#REF!#REF!
2647#REF!#REF!
2748#REF!#REF!
2849#REF!#REF!
2950#REF!#REF!
3052#REF!#REF!
3153#REF!#REF!
3253#REF!#REF!
3354#REF!#REF!
3455#REF!#REF!
3555#REF!#REF!
3657#REF!#REF!

<colgroup><col span="2"><col><col><col></colgroup><tbody>
</tbody>

In cell D3, I used
=A3

Similarly, in cell E3, I used
=B3

Then for cell D4, I used
=INDEX($A$4:$A$38,ROW(A3)*7)

And for cell E4, I used
=INDEX($B$4:$B$38,ROW(B3)*7)

Then I dragged down the formulas from E4 and D4.
 
Upvote 0
Ah the formula is incorrect


=INDEX($A$4:$A$38,ROW(A1)*7)

The row(A1)*7 = 7
as you drag it down then
row(A2)*7 = 14
row(A3)*7 = 21 etc
 
Upvote 0
The 1st value (Time = 1) is in row 3. This is cell A3.

That new formula does work. It just seems a bit strange to me because cell A1 is a blank cell.
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

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