Help with IF formula

WillM66

New Member
Joined
Jul 15, 2010
Messages
10
Hello,

My partner has asked me to help with a spreadsheet she uses in her role as a Teaching Assistant. The spreadsheet is used to calculate 'points' for good work/behaviour which are then converted to a cash value (which can be redeemed for various awards/prizes).

The formula they are using is as follows:

=(IF(AND(D51>=0,D51<=25),0,IF(AND(D51>=26,D51<=30),1,IF(AND(D51>=31,D51<=34),3,IF(AND(D51>=35,D51<=100),5,"")))))+E51+F51+G51

D51 is the total points awarded for a student in that week.

What they have, however, is 2 groups of students where the parameters are different. These are 'TEC1' and 'TEC2' (these are listed in Column C in the spreadsheet). They will be awarded £1 if they get between 30-35 points and £3 if they get between 35-39 points.

Essentailly she needs a formala which says IF its TEC1 or TEC2 the rules are x , if not the rules are y.

Thanks in advance.

Will M
 
Another option
=IF(OR(B3={"TEC1","TEC2"}),3,2)
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,214,808
Messages
6,121,684
Members
449,048
Latest member
81jamesacct

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