I need a cell to return a value if another cell is with a certain range

Priceman99

New Member
Joined
Oct 24, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,

Could someone please help,

I would like column M in the attached picture to return a value if a cell within column D is within the value ranges shown on the bottom of the page. Can this be done?

1729774920835.png
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Welcome to the Board!

Check out the "What is approximate match in VLOOKUP and how to use it" section of this link here: VLOOKUP Exact Match & Approximate Match

The way you have set-up your lookup table is good, and you should be able to match on column B and get the result you desire.
 
Upvote 0
In M118. Change the ranges as required.
Excel Formula:
=LET(a,IFERROR(VALUE(B242:E264),0),b,D118:D226,IF(b="","",VLOOKUP(b,a,3,1)))
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

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