Help me write a formula? IF, AND, MAX/MIN? I can't figure it out.

leahflum

New Member
Joined
May 3, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,
I hope you are well! Would you please help me?
I would like to program the following logic into a cell:
If cell B10 is less than 100, result is "1".
If cell B10 is greater than 100 but less than or equal to 380, result is "2".
If cell B10 is greater than 380 but less than or equal to 1500, result is "4".
If cell B10 if greater than 1500, result is "ERROR".
Is this possible to do in a single cell? Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi & welcome to MrExcel.
How about
Excel Formula:
=if(b10<=100,1,if(b10<=380,2,if(b10<=1500,4,"Error")))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,332
Messages
6,124,314
Members
449,153
Latest member
JazzSingerNL

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