If number is between formula?

themightyreds

Board Regular
Joined
May 3, 2007
Messages
60
In column A I have weights ranging from 1 - 1500.

In Column B I what to return the whether the weight is -100, +100, +300, +500 or +1000.

is it possible to write an If formula using between?

All help appreciated!!

Matt
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Yes, you would so something like:

=if(and(x > y, x < z),"x is between y and z","x is not between y and z")

Hope that helps.
 
Upvote 0
erm he says scratching his head? no I'm still struggling.


=if(and(x > y, x < z),"x is between y and z","x is not between y and z")

I can't seem to make that fit?
 
Upvote 0
I'm not really sure what you are asking in your original question or what makes the results return? Can you provide any sample data and expected results?
 
Upvote 0
Try this
Code:
=IF(A1<100,"Less than 100",IF(A1<300,"Between 100 & 300",IF(A1<500,"Between 300 & 500",IF(A1<1000,"Between 500 & 1000","Greater than 1000"))))

lenze
 
Upvote 0
Thanks Lenze works exactly as I need it to. I was thinking that I needed to find a formula which uses between you have shown me that by not meeting the conditions of the first IF it automatically creates the between situation for me! Genius!
 
Upvote 0
I'm glad you caught on. I've found that one of the hardest concepts of IF to get across. I have, in fact, run into college profs teaching Excel who do not grasp it!!
lenze
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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