Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 447

Cut columns whenever threshold is reached

$
0
0

I have about 24000 rows in Excel that I want to split to create graphs using VBA.A small part of my data looks like this:

enter image description here

Column A contains the time (4 samples per second).
Column B contains values that tell me whenever a new cycle should start.
Column C contains the most valuable information; temperature, which I finally want to include in my graphs.

The number of rows is different for every file.Now, what I want is code that detects whenever the value for column B is high (+-27000). Everytime the "high peak" is over (purple 500 value in column B), column C should be cut and pasted in the following column, until the rows are empty. I only need the data of column C for my graphs, so the other information does not have to be cut.

The data where the B-value is high, should be part of the previous column, like so, where green and orange are two separate columns:

enter image description here


Viewing all articles
Browse latest Browse all 447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>