Hi
I have this problem that I bet is easy to solve, but i am lost. I am an expert at the slow way to do things, but maybe there is a better way. The only way I can describe the problem is by means of an example.
Lets say I have a column of numbers:
>_A_|_B_| etc >>
1_1_|___|
2_3_|___|
3_2_|___|
5_5_|___|
5_3_|___|
6_4_|___|
7_7_|___|
8_3_|___|
9_1_|___|
and then i write a little function in the adjoing cell, B1:
=if(a1=3,a2,"")
From there I fill down column B to B9.
OK, pretty simple so far, right? What I am looking for is instances where I find a '3' in column A, and if I do, then I want the cell in column B to show me what the next number was that followed it.
So then my spread sheet looks like this:
>_A_|_B_| etc >>
1_1_|___|
2_3_|_2_|
3_2_|___|
5_5_|___|
5_3_|_4_|
6_4_|___|
7_7_|___|
8_3_|_1_|
9_1_|___|
With me so far? My little if function found three instances where '3' showed up in column 'A', and then showed me the three different numbers that followed the number three at that point -- a 2,4, and a 1
My problem is this: see all that blank space between 2 and 4, and 4 and 1 in column B? How do I get rid of that, or set up another cell, or set of cells ome where where all the blank space gets sucked out, so I see a new column that looks like this:
_|_B_|
1|_2_|
2|_4_|
3|_1_|
Why am I doing this? Because I want to chart the progress of the numbers in a simple line chart, and if i leave all the blank spaces it makes the chart look weird, and distorts the findings.
I think I explained the problem as clearly as I could. Any help would be fantastic.
Thanks!
Bookmarks