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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

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,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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