czar86

New Member
Joined
Apr 9, 2012
Messages
4
Hi everybody im new here and I already have a question for you guys

So I gotta find mif a cell is between a range of numbers

Something like IF a1>=100 but <400 then 50, if a1<400 but <600 then 100, if a1 <600 but >800 then 150

Hope you guys understand I just need that Excel give me a number if "a1" its between 100 and 400 or 400 and 600

Thanx
 

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.
Try

=IF(AND(A1>=100,A1<400),50,IF(AND(A1>=400,A1<600),100,IF(AND(A1>=600,A1<800),150,"NONE")))
 
Upvote 0
Thanx for the response but sends me an error here 100,A1

You mean if A1=100 you get an error? I can't seem to reproduce that: this is a fairly simple IF statement, and it should return 50 when A1=100. If no matches are found it will return "NONE".
 
Upvote 0
You mean if A1=100 you get an error? I can't seem to reproduce that: this is a fairly simple IF statement, and it should return 50 when A1=100. If no matches are found it will return "NONE".

Actually excel says my formula is wrong and I cant even use it, when the error shows the cursors highlight that part of the formula
 
Upvote 0
Actually excel says my formula is wrong and I cant even use it, when the error shows the cursors highlight that part of the formula

Make sure to copy the entire formula:
Code:
=IF(AND(A1>=100,A1<400),50,IF(AND(A1>=400,A1<600),100,IF(AND(A1>=600,A1<800),150,"NONE")))
Select B1, hit F2 to enter edit mode, and hit CTRL+V.
 
Upvote 0
Ok I was able to sort it out it was my mistake, but thanx for the help that solve my problem
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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