Return range of values

wayne0881

Board Regular
Joined
Nov 2, 2009
Messages
95
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have a value in cell D5 the lowest it will be is 3 and the highest is 20.

In cell D10 I would like to return a value based on the value of cell D5

In D10:

If D5 is between 3-4 I would like D10 to return D5 + 0.05
If D5 is between 4-5 I would like D10 to return D5 + 0.10
If D5 is between 6-10 I would like D10 to return D5 + 0.20
If D5 is above 10 I would like D10 to return D5 + 0.5

Thanks in advance :)
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I made assumptions when it came to whether the cell contained a 4 or 10, with regard to how you wanted the answer as the info you provided was loose.

my answer assumes greater than or equal to 3 and less than 4, greater than or equal to 4 and less than 5, greater than or equal to 5 and less than 10, greater than or equal to 10 and less than or equal to 20, with an error if number does not fall between 3 and 20 inclusive.

=IF(AND(D5>=3,D5<4),D5+0.05,IF(AND(D5>=4,D5<5),D5+0.1,IF(AND(D5>=5,D5<10),D5+0.2,IF(AND(D5>=10,D5<=20),D5+0.5,"Number not between 3 and 20"))))

as a nested formula
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,217
Members
452,619
Latest member
Shiv1198

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