One cell populates with a # when an adjacent cell falls between two numbers

whattruck

New Member
Joined
Oct 3, 2017
Messages
2
Hello. This is my first post on the forum. I am attempting to create a formula where a cell will populate with a certain number when an adjacent cell is between two numbers. In plain language B2 will fill with "1" when C2's data falls between 0 and 14. I have four additional number ranges: B2 will fill with "2" when C2's data falls between 15 and 31; B2 will fill with "3L" when C2's data falls between 32 and 45; B2 will fill with "3H" when C2's data falls between 46 and 60; B2 will fill with "4" when C2's data falls between 61 and 67; B2 will fill with "5" when C2's data falls between 68 and 90.

The number ranges are weather data that dictate staffing levels (B2).

Here is a screenshot:

my-drive

https://drive.google.com/drive/u/1/folders/0Bx98SOpH4kJKVUpnS2g5cUU4MHM

Weather data ranges are on bottom right.

Please let me know if I can flesh out my question anymore.

Thank you for your assistance.

William
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Book1
BC
211
3215
43L37
53H46
6467
7585
Sheet3
Cell Formulas
RangeFormula
B2=VLOOKUP($C2,{0,"1";15,"2";32,"3L";46,"3H";61,"4";68,"5"},2,TRUE)


WBD
 
Upvote 0
WBD,
This worked brilliantly. Thank you for your very quick response. It was a lifesaver and game changer!

W
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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