PLEASE SEE POST #11 FOR AN UPDATED VERSION OF MY QUESTION
Hello,
I need a formula that separates data by a certain number of rows. The worksheet consist of columns of data and a column that contains “X”s. I need a formula that separates all of the “X”s by 7 rows. Most of the time that’s the case but there are a few instances where the “X”s are separated by less than 7 rows and I wanted a formula that creates filler rows.
Example:
Original Data
8 12/24/2014 7:45 1.2190 1.2191 1.2187 1.2189 95 X
1 12/24/2014 8:00 1.2189 1.2191 1.2187 1.2190 147
2 12/24/2014 8:15 1.2190 1.2192 1.2189 1.2190 78
3 12/24/2014 8:30 1.2189 1.2195 1.2189 1.2191 117
4 12/24/2014 8:45 1.2191 1.2192 1.2186 1.2187 73
5 12/24/2014 9:00 1.2187 1.2190 1.2186 1.2190 109
6 12/24/2014 9:15 1.2189 1.2192 1.2189 1.2192 57
7 12/24/2014 9:30 1.2192 1.2192 1.2191 1.2192 41
8 12/24/2014 9:45 1.2192 1.2192 1.2189 1.2189 85 X
1 12/24/2014 10:00 1.2189 1.2189 1.2187 1.2188 97
2 12/24/2014 10:15 1.2188 1.2193 1.2188 1.2193 150 X
1 12/25/2014 14:00 1.2221 1.2222 1.2217 1.2220 75
2 12/25/2014 14:15 1.2220 1.2221 1.2220 1.2220 30
3 12/25/2014 14:30 1.2219 1.2224 1.2219 1.2221 110
4 12/25/2014 14:45 1.2221 1.2225 1.2220 1.2225 131
5 12/25/2014 15:00 1.2224 1.2224 1.2211 1.2212 686
6 12/25/2014 15:15 1.2212 1.2213 1.2204 1.2206 310
7 12/25/2014 15:30 1.2207 1.2210 1.2205 1.2205 508
8 12/25/2014 15:45 1.2205 1.2208 1.2203 1.2207 528 X
Formula Result
8 12/24/2014 7:45 1.2190 1.2191 1.2187 1.2189 95 X
1 12/24/2014 8:00 1.2189 1.2191 1.2187 1.2190 147
2 12/24/2014 8:15 1.2190 1.2192 1.2189 1.2190 78
3 12/24/2014 8:30 1.2189 1.2195 1.2189 1.2191 117
4 12/24/2014 8:45 1.2191 1.2192 1.2186 1.2187 73
5 12/24/2014 9:00 1.2187 1.2190 1.2186 1.2190 109
6 12/24/2014 9:15 1.2189 1.2192 1.2189 1.2192 57
7 12/24/2014 9:30 1.2192 1.2192 1.2191 1.2192 41
8 12/24/2014 9:45 1.2192 1.2192 1.2189 1.2189 85 X
1 12/24/2014 10:00 1.2189 1.2189 1.2187 1.2188 97
1 12/24/2014 10:00 0 0 0 0 0
1 12/24/2014 10:00 0 0 0 0 0
1 12/24/2014 10:00 0 0 0 0 0
1 12/24/2014 10:00 0 0 0 0 0
1 12/24/2014 10:00 0 0 0 0 0
1 12/24/2014 10:00 0 0 0 0 0
1 12/24/2014 10:00 0 0 0 0 0
2 12/24/2014 10:15 1.2188 1.2193 1.2188 1.2193 150 X
1 12/25/2014 14:00 1.2221 1.2222 1.2217 1.2220 75
2 12/25/2014 14:15 1.2220 1.2221 1.2220 1.2220 30
3 12/25/2014 14:30 1.2219 1.2224 1.2219 1.2221 110
4 12/25/2014 14:45 1.2221 1.2225 1.2220 1.2225 131
5 12/25/2014 15:00 1.2224 1.2224 1.2211 1.2212 686
6 12/25/2014 15:15 1.2212 1.2213 1.2204 1.2206 310
7 12/25/2014 15:30 1.2207 1.2210 1.2205 1.2205 508
8 12/25/2014 15:45 1.2205 1.2208 1.2203 1.2207 528 X
As you can see in the original data the two “X”s between 9:45 and 10:15 are not separated by 7 rows of data. In the example of what I want the formula to do. Filler columns are created by repeating the date and time of the last row that separates the “X”s and all other data is zero.
Please see spreadsheet for a better understanding. Any and all help you could provide for any of the formulas would be greatly appreciated. Thank you.
Bookmarks