Relative Postion of next value in array

ShelleyBelly

New Member
Joined
Mar 2, 2011
Messages
44
Hi Guys,

I'm sure I must be over thinking this but I don't seem to be able to find the solution to what seems a simple problem. I've a column of values separated by blank cells and I need a formula to return the relative position in the array of the next value in the column. The results of such a formula should look like either column B or C.

[TABLE="width: 260"]
<tbody>[TR]
[TD="class: xl63, width: 65"]A[/TD]
[TD="class: xl63, width: 65"]B[/TD]
[TD="class: xl63, width: 65"]C[/TD]
[TD="width: 65"][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]32[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]11[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]11[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]11[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]11[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]13[/TD]
[TD]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]13[/TD]
[TD]13[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD]13[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Many Thanks in Advance,

Tom
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
One way:

[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][/tr][tr][td]
1​
[/td][td]
4​
[/td][td]
4​
[/td][td]B1: =ROW() + MATCH(TRUE, INDEX(ISNUMBER(A2:A$14), 0), 0)[/td][/tr]
[tr][td]
2​
[/td][td][/td][td]
4​
[/td][td][/td][/tr]
[tr][td]
3​
[/td][td][/td][td]
4​
[/td][td][/td][/tr]
[tr][td]
4​
[/td][td]
32​
[/td][td]
7​
[/td][td][/td][/tr]
[tr][td]
5​
[/td][td][/td][td]
7​
[/td][td][/td][/tr]
[tr][td]
6​
[/td][td][/td][td]
7​
[/td][td][/td][/tr]
[tr][td]
7​
[/td][td]
1​
[/td][td]
11​
[/td][td][/td][/tr]
[tr][td]
8​
[/td][td][/td][td]
11​
[/td][td][/td][/tr]
[tr][td]
9​
[/td][td][/td][td]
11​
[/td][td][/td][/tr]
[tr][td]
10​
[/td][td][/td][td]
11​
[/td][td][/td][/tr]
[tr][td]
11​
[/td][td]
4​
[/td][td]
13​
[/td][td][/td][/tr]
[tr][td]
12​
[/td][td][/td][td]
13​
[/td][td][/td][/tr]
[tr][td]
13​
[/td][td]
5​
[/td][td]
#VALUE!​
[/td][td][/td][/tr]
[/table]
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,703
Members
453,748
Latest member
akhtarf3

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