If cell is between two values, then output text

raikks

Board Regular
Joined
Feb 23, 2020
Messages
53
Office Version
  1. 2019
Platform
  1. Windows
Book1
ABCDE
18.5215A
2610B
3B1115C
Sheet1



I need a formula for cell A3 that should output:
* value from E1 - if A1 is less than D1 and greater than C1;
* value from E2 - if A1 is less than D2 and greater than C2;
* value from E3 - if A1 is less than D3 and greater than C3;

Ex:
* if A1=8.5, then A3=B
* if A1=3.1, then A3=A
--and so on.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Formula for A3:

= IF(AND(A1 < D1,A1 > C1),E1,IF(AND(A1 < D2,A1 > C2),E2,IF(AND(A1 < D3,A1 > C3),E3,"")))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,387
Messages
6,119,208
Members
448,874
Latest member
Lancelots

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