Multiple conditions

jemimapuddleduck

New Member
Joined
Dec 10, 2018
Messages
6
Hi all,

I'm creating a 'rewards' spreadsheet and have nailed all of the formulas I need, apart from one :(


I'm getting confused with the multiple conditions I need, and how to put it into a formula.


[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]Rubies Earned[/TD]
[TD="align: center"]1250[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Minimum Tasks Required[/TD]
[TD]Number of Tasks Completed[/TD]
[TD]Structure Level[/TD]
[TD]Rubies Reward[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]9[/TD]
[TD]12[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]9[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]10[/TD]
[TD]17[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]



What I want to be able to calculate is this:




If Structure Level is '5', Reward = 0
If Number of Tasks Completed < minimum tasks required, reward=0
If Number of Tasks Completed > Minimum Tasks Required, Reward = Total Earned as a Team/Number of remaining cases




Hope that makes sense. Can anyone advise, please?


Thanks :)
 
Last edited by a moderator:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Re: Multiple conditions help please

what does this mean
Total Earned as a Team/Number of remaining cases
where is that on the example ?
 
Upvote 0
Re: Multiple conditions help please

Where is the number of remaining cases?
 
Upvote 0
Re: Multiple conditions help please

It would be any that aren't excluded based on the first two conditions

So, in order to receive a reward, they would need to meet all conditions, but conditions 1 and 2 should exclude some

I'm not convinced it can be done as one formula, but thought I'd try my luck!
 
Upvote 0
Re: Multiple conditions help please

Not 100% clear on what is needed here but this is my guess?

=IF(OR(C3=5, B3 < A3), 0, ($D$1/COUNT($A$3:$A$7)))

If not then as fluff said below please.<a3), 0,="" ($d$1="" count($a$3:$a$7)))<="" html=""></a3),>
 
Last edited:
Upvote 0
Re: Multiple conditions help please

Still not with you, can you show expected results, along with how you calculated them?
 
Upvote 0
These are the results I calculated manually:


[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]Rubies Earned[/TD]
[TD="align: center"]1250[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Minimum Tasks Required[/TD]
[TD]Number of Tasks Completed[/TD]
[TD]Structure Level[/TD]
[TD]Rubies Reward[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]4[/TD]
[TD]625[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]9[/TD]
[TD]12[/TD]
[TD]4[/TD]
[TD]625[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]9[/TD]
[TD]0[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]10[/TD]
[TD]17[/TD]
[TD]5[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]


Member on row 5 was not entitled to rewards as:

Number of Tasks Completed < Minimum Tasks Required

Member on row 6 was not entitled to rewards as:

Structure Level = 5

Member on row 7 was not entitled to rewards as:

Number of Tasks Completed < Minimum Tasks Required
 
Upvote 0
In that case try

Excel 2013/2016
ABCD
1Rubies Earned1250
2Minimum Tasks RequiredNumber of Tasks CompletedStructure LevelRubies Reward
3994625.0
49124625.0
59040.0
6101750.0
78230.0
search
Cell Formulas
RangeFormula
D3=IF(OR(C3=5,B3),0,D$1/COUNTIFS($C$3:$C$7,"<>"&5,$B$3:$B$7,"<"&$A$3:$A$7))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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