epactheactor
New Member
- Joined
- Sep 9, 2015
- Messages
- 38
Hello!
I have 2 columns of data;
[TABLE="width: 500"]
<tbody>[TR]
[TD]Mile number[/TD]
[TD]Stop sign's mile number[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]159[/TD]
[/TR]
[TR]
[TD]151[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]152[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]160[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]165[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]171[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]176[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]178[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm wanting to create a formula which would show/count the closest match of the signs to the mile number.
It would look like this;
[TABLE="width: 500"]
<tbody>[TR]
[TD]Mile number[/TD]
[TD]Signs[/TD]
[TD]Sign's mile number[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]0[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]0[/TD]
[TD]159[/TD]
[/TR]
[TR]
[TD]151[/TD]
[TD]1[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]152[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]160[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]165[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]171[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]176[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]178[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm attempted to use Match and Index, but it isn't working for me. Here's what I've worked out so far.
=(IF(INDEX(FC,MATCH(MIN(ABS(FC-E480)),ABS(FC-E480),))>E480,"",1)) Where FC is the range.
Is such a formula even possible?
I have 2 columns of data;
[TABLE="width: 500"]
<tbody>[TR]
[TD]Mile number[/TD]
[TD]Stop sign's mile number[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]159[/TD]
[/TR]
[TR]
[TD]151[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]152[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]160[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]165[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]171[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]176[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]178[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm wanting to create a formula which would show/count the closest match of the signs to the mile number.
It would look like this;
[TABLE="width: 500"]
<tbody>[TR]
[TD]Mile number[/TD]
[TD]Signs[/TD]
[TD]Sign's mile number[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD]0[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]0[/TD]
[TD]159[/TD]
[/TR]
[TR]
[TD]151[/TD]
[TD]1[/TD]
[TD]160[/TD]
[/TR]
[TR]
[TD]152[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]160[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]165[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]171[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]176[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]178[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm attempted to use Match and Index, but it isn't working for me. Here's what I've worked out so far.
=(IF(INDEX(FC,MATCH(MIN(ABS(FC-E480)),ABS(FC-E480),))>E480,"",1)) Where FC is the range.
Is such a formula even possible?