Select Every Other Row

Zorba0032

New Member
Joined
Sep 29, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Good Day Everyone!

I deal with large amounts of data from datalogs. I receive these logs in .CSV files with a snapshot of maybe 100 data points every 10 seconds. So when I pull data for a 24 hour period I may have over 140k data points to review and chart.

I am looking for a sensible way to be able to parse every third or forth line of code to reduce the amount of data. I was also playing with a way to write a macro to pick one data point for a selectable time. Such as one data point per hour or two data points per hour.

I have to be honest and say I have failed quite miserably.

A push into the correct direction would be appreciated. I certainly appreciate any assistance that can be given.

Thank you!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi Zorba0032,

You could build a new list from the subset.

Zorba0032.xlsx
ABCDE
1DataIntervalResult
2X0000024X000004
3X000003X000008
4X000004Entries AX000012
5X000005140375X000016
6X000006X000020
7X000007X000024
8X000008X000028
9X000009X000032
10X000010X000036
11X000011X000040
Sheet1
Cell Formulas
RangeFormula
C5C5=COUNTA($A:$A)-1
E2:E11E2=IF(INT((ROW()-1)*$C$2)>$C$5,"",INDEX($A:$A,INT((ROW()-1)*$C$2)))
 
Upvote 0
Welcome to the MrExcel board!

Same concept as Toadstool's but because you have MS 365 you can do something similar with a single formula in a single cell.

Zorba0032.xlsm
ABCDE
1DataIntervalResult
2X0000024X000002
3X000003X000006
4X000004Entries AX000010
5X00000568470X000014
6X000006X000018
7X000007X000022
8X000008X000026
9X000009X000030
10X000010X000034
11X000011X000038
Sheet1
Cell Formulas
RangeFormula
E2:E17118E2=INDEX(A:A,SEQUENCE(C5/C2,,2,C2))
C5C5=COUNTA($A:$A)-1
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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