Help on IF formula, values from 175-260

Kamato25

New Member
Joined
Jun 18, 2013
Messages
2
I have values in a worksheet that are from 175 - 260 and I want to but a score on them in a separate column (B).

values of >= 260 will be 50, 200-225 will be 45, 175-199 will be 40.

Here is my formula, and it is only putting a value in cells that have 260. everything else is getting 0's. :(
=IF(A2>=260,50,0)+IF(A2>=200<=225,45,0)+IF(A2>=175<=199,40,0)

A B (Score)

260 50
175 0
260 50
225 0
175 0
225 0

Any suggestions?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Welcome to the board.

This should be pretty simple with a Lookup function.
But you need to more clearly define the ranges...

What about 226 to 259 ?
What about Below 175 ?
Will there be 0's and/or negatives ?
 
Upvote 0
try like below

=IF(A2>=260,50,IF(AND(A2>=200,A2<=225),45,IF(AND(A2>=175,A2<=199),40,0)))
 
Upvote 0
I have values in a worksheet that are from 175 - 260 and I want to but a score on them in a separate column (B).

values of >= 260 will be 50, 200-225 will be 45, 175-199 will be 40.

Here is my formula, and it is only putting a value in cells that have 260. everything else is getting 0's. :(
=IF(A2>=260,50,0)+IF(A2>=200<=225,45,0)+IF(A2>=175<=199,40,0)

A B (Score)

260 50
175 0
260 50
225 0
175 0
225 0

Any suggestions?

Welcome to the board.

This should be pretty simple with a Lookup function.
But you need to more clearly define the ranges...

What about 226 to 259 ?
What about Below 175 ?
Will there be 0's and/or negatives ?

The question above needs/deserves an answer though... for something like:

=LOOKUP(A2,{0,175,200,226,260},{0,40,45,0,50})

would be concise and appropriate. Adjust to install the missing/marked criteria and result values.
 
Upvote 0

Forum statistics

Threads
1,215,563
Messages
6,125,565
Members
449,237
Latest member
Chase S

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