Check if number is within a range and return the value in colomn c in the same row

vrblakelock

New Member
Joined
Jul 9, 2012
Messages
4
Hi,

Sheet 1 has a number [Column A]. i am after a formula that looks that number up in sheet 2, see's if it is within the range, and returns the 3rd column of that row.
See below for sheet contents

Sheet 1

AB
1Daily Occupied Head CountLEVEL
2201
3109
4300

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Sheet 2

MinimumMaximumLevel
0200level 1
201250level 2
251325level 3
326400level 4
401500level 5
501600level 6
601700level 7
701800level 8
8011000level 9
100110000level 10

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>

Thanks
Vince
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Like this?

Excel Workbook
AB
1Daily Occupied Head CountLEVEL
2201level 2
3109level 1
4300level 3
5500level 5
6754level 8
7929level 9
Sheet1



Excel Workbook
ABC
1MinimumMaximumLevel
20200level 1
3201250level 2
4251325level 3
5326400level 4
6401500level 5
7501600level 6
8601700level 7
9701800level 8
108011000level 9
11100110000level 10
Sheet2
 
Upvote 0
LOL. Thanks again

I thought it would be a complicated if statement, but obviously since the range is specifically defined, i can just use the vlookup function using the approx match syntax

Thanks!
Vince

Like this?

Sheet1

*AB
1Daily Occupied
Head Count
LEVEL
2201level 2
3109level 1
4300level 3
5500level 5
6754level 8
7929level 9

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:150px;"><col style="width:93px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B2=VLOOKUP(A2,Sheet2!$A$2:$C$11,3,1)
B3=VLOOKUP(A3,Sheet2!$A$2:$C$11,3,1)
B4=VLOOKUP(A4,Sheet2!$A$2:$C$11,3,1)
B5=VLOOKUP(A5,Sheet2!$A$2:$C$11,3,1)
B6=VLOOKUP(A6,Sheet2!$A$2:$C$11,3,1)
B7=VLOOKUP(A7,Sheet2!$A$2:$C$11,3,1)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie Html" target="_blank"> Excel Jeanie HTML 4


Sheet2

*ABC
1MinimumMaximumLevel
20200level 1
3201250level 2
4251325level 3
5326400level 4
6401500level 5
7501600level 6
8601700level 7
9701800level 8
108011000level 9
11100110000level 10

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:95px;"><col style="width:99px;"><col style="width:86px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie Html" target="_blank"> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,215,537
Messages
6,125,394
Members
449,222
Latest member
taner zz

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