Distance Range - Vlookup ???

Steve 1962

Active Member
Joined
Jan 3, 2006
Messages
349
Office Version
  1. 365
Platform
  1. Windows
Hi

Just wondering how I can obtain an output which is based on a range of distances located in two adjacent columns ?

EG:

Increasing distances as we go down the page -

Cell A1 = 5.0 & cell B1 = 5.5 / Need an output to show that these values lay between location "A" and "B"
Cell A2 = 6.2 & cell B2 = 7.8 / Need an output to show that these values lay between location "C" and "D"
Cell A3 = 9.5 & cell B3 = 9.8 / Need an output to show that these values lay between location "E" and "F"

...... and so on.

I'm assuming that the answer lays somewhere in a VLOOKUP ?

Thanks

Steve
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
so, because your ranges aren't consistent, its a little more complicated.

What would you need returned if A1 contained 5.7 or A2 contained 8.5 ?
 
Last edited:
Upvote 0
so, because your ranges aren't consistent, its a little more complicated.

What would you need returned if A1 contained 5.7 or A2 contained 8.5 ?



Sorry forgot to mention, for the example -

Location "A" to "B" would be "A" = 5.0 and "B" would be = 6.0 (Range 1).
Location "C" to "D" would be "C" = 6.1 and "D" would be = 8.0 (Range 2).
Location "E" to "F" would be "E" = 8.1 and "F" would be = 10.0 (Range 3).
 
Upvote 0
Hi

Just wondering how I can obtain an output which is based on a range of distances located in two adjacent columns ?

EG:

Increasing distances as we go down the page -

Cell A1 = 5.0 & cell B1 = 5.5 / Need an output to show that these values lay between location "A" and "B"
Cell A2 = 6.2 & cell B2 = 7.8 / Need an output to show that these values lay between location "C" and "D"
Cell A3 = 9.5 & cell B3 = 9.8 / Need an output to show that these values lay between location "E" and "F"

...... and so on.

I'm assuming that the answer lays somewhere in a VLOOKUP ?

Thanks

Steve

Sorry forgot to mention, for the example -

Location "A" to "B" would be "A" = 5.0 and "B" would be = 6.0 (Range 1).
Location "C" to "D" would be "C" = 6.1 and "D" would be = 8.0 (Range 2).
Location "E" to "F" would be "E" = 8.1 and "F" would be = 10.0 (Range 3).

Hi!

If I understand correctly what you want, maybe the suggestion below can helps:

In C2 and copy down

=IF(ISERROR(1/(VLOOKUP(A2,$E$2:$E$5,1)=VLOOKUP(B2,$E$2:$E$5,1))),
"No Range",VLOOKUP(A2,$E$2:$G$5,3))

Or

=IF(ISERROR(1/(LOOKUP(A2,$E$2:$E$5)=LOOKUP(B2,$E$2:$E$5))),
"No Range",LOOKUP(A2,$E$2:$G$5))


ABCDEFGHI
1StartEndResultStartEndRangeLetters
255,5Range156Range1A-B
36,27,8Range26,18Range2C-D
49,59,8Range38,110Range3E-F
59,910Range310,1No Range
61011No Range
745No Range
857No Range
9
*******************************************************

<tbody>
</tbody>


Markmzz
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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