IF using greater than or less than

Richtwigg

New Member
Joined
Jun 5, 2014
Messages
1
Hi

i need to create a formula to return the following:

score

0 to .9 result A1.1
1 to 1.9 result A1.2
2 to 2.5 result A2.1
2.6 to 2.9 result A2.2
3 to 3.5 result B1.1

Thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Assuming cell A1 is the input field

=IF(A1<1,"A1.1",IF(A1<2,"A1.2",IF(A1<2.5,"A2.1",IF(A1<3,"A2.2",IF(A1<=3.5,"B1.1")))))
 
Last edited:
Upvote 0
Welcome to the board.

Try
=LOOKUP(A1,{0,1,2,2.6,3},{"A1.1","A1.2","A2.1","A2.2","B1.1"})
 
Upvote 0
Welcome to MrExcel,

Another way:

Code:
=LOOKUP(A2,{0,1,2,2.6,3},{"A1.1","A1.2","A2.1","A2.2","B1.1"})

Matty
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,875
Members
449,476
Latest member
pranjal9

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