If statement with multi criteria

zinah

Active Member
Joined
Nov 28, 2018
Messages
368
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have below list and need help with adjusting the current formulas to meet the logic below:

"if any employee received merit or promotion before official date, or received promotion on official date, or merit transaction and increase % is more than budget %, then R, otherwise NR".
Another issue I noticed, with Column G formula, the current formula shows "before" when it's = 4/1/2023 and what I need is = show after if it's after 4/1/2023 and before if it's 4/1/2023, otherwise "official date".

Can anyone help please?

If logic with specific criteria.xlsx
ABCDEFG
1Official Date4/1/2023
2EEIDEffective DateIncrease PercentBudget %Transaction TypeDesignationbefore or after official date
3Employee 14/1/20235.00%4.50%Merit > MeritRbefore
4Employee 24/1/20234.60%4.50%Merit > MeritRbefore
5Employee 34/1/20234.50%4.50%Merit > MeritNRbefore
6Employee 44/1/20234.00%4.50%Merit > MeritNRbefore
7Employee 54/1/20236.00%4.50%Merit > MeritRbefore
8Employee 64/1/202311.00%4.50%PromotionRbefore
9Employee 71/1/202320.00%30.00%ChangeNRbefore
10Employee 77/1/202320.00%30.00%PromotionRafter
11Employee 94/1/202320.00%30.00%Merit > MeritNRbefore
12Employee 101/1/202320.00%30.00%ChangeNRbefore
13Employee 117/1/202320.00%30.00%ChangeRafter
14Employee 124/1/202320.00%30.00%Merit > MeritNRbefore
15Employee 134/1/202310.00%10.00%Merit > MeritNRbefore
16Employee 144/1/202310.00%10.00%Merit > MeritNRbefore
17Employee 154/1/20237.50%4.50%Merit > MeritRbefore
18Employee 164/1/202315.00%10.00%Merit > MeritRbefore
19Employee 174/1/20233.00%4.50%Merit > MeritNRbefore
20Employee 184/1/20234.60%4.50%Merit > MeritRbefore
21Employee 191/1/202320.00%30.00%ChangeNRbefore
22Employee 201/1/202320.00%30.00%ChangeNRbefore
23Employee 217/1/202320.00%30.00%ChangeRafter
24Employee 74/1/202320.00%30.00%Merit > MeritNRbefore
25Employee 231/1/202320.00%30.00%ChangeNRbefore
26Employee 244/1/20234.50%4.50%Merit > MeritNRbefore
27Employee 251/1/202320.00%30.00%ChangeNRbefore
28Employee 267/1/202320.00%30.00%ChangeRafter
29Employee 274/1/202320.00%30.00%Merit > MeritNRbefore
30Employee 281/1/202320.00%30.00%ChangeNRbefore
31Employee 297/1/202320.00%30.00%ChangeRafter
32Employee 304/1/202320.00%30.00%Merit > MeritNRbefore
33Employee 314/1/202310.00%10.00%Merit > MeritNRbefore
34Employee 324/1/20234.70%4.50%Merit > MeritRbefore
35Employee 334/1/20236.00%4.50%Merit > MeritRbefore
36Employee 344/1/20234.50%4.50%Merit > MeritNRbefore
37Employee 354/1/202317.00%10.00%Merit > MeritRbefore
38Employee 364/1/20238.00%10.00%Merit > MeritNRbefore
39Employee 374/1/20233.70%10.00%Merit > MeritNRbefore
40Employee 381/1/20233.70%10.00%PromotionNRbefore
41Employee 394/1/20233.00%4.50%Merit > MeritNRbefore
42Employee 404/1/20234.00%4.50%Merit > MeritNRbefore
43Employee 414/1/20234.55%4.50%Merit > MeritRbefore
44Employee 424/1/20235.00%4.50%Merit > MeritRbefore
45Employee 434/1/20234.50%4.50%Merit > MeritNRbefore
46Employee 444/1/202310.00%5.00%Merit > MeritRbefore
47Employee 454/1/20234.50%4.50%Merit > MeritNRbefore
48Employee 464/1/20233.50%4.50%Merit > MeritNRbefore
49Employee 474/1/20234.75%4.50%Merit > MeritRbefore
50Employee 11/1/20234.75%4.50%PromotionRbefore
51Employee 12/1/20233.00%4.50%ChangeNRbefore
52Employee 104/1/202320.00%30.00%PromotionNRbefore
53Employee 141/1/202315.00%10.00%PromotionRbefore
54Employee 177/1/20232.50%4.50%PromotionRafter
55Employee 287/1/202315.00%30.00%PromotionRafter
Sheet1
Cell Formulas
RangeFormula
F3:F55F3=IF(OR(C3>D3,B3>$C$1),"R", "NR")
G3:G55G3=IF(B3>$C$1,"after","before")
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
For F3
=IF(OR(AND($E3="Merit > Merit",$B3<$C$1),AND($E3="Promotion",$B3<=$C$1),$C3>$D3),"R","NR")

For G3
=IF(B3>=$C$1,"after","before")
 
Upvote 0
Hi,

I have below list and need help with adjusting the current formulas to meet the logic below:

"if any employee received merit or promotion before official date, or received promotion on official date, or merit transaction and increase % is more than budget %, then R, otherwise NR".
Another issue I noticed, with Column G formula, the current formula shows "before" when it's = 4/1/2023 and what I need is = show after if it's after 4/1/2023 and before if it's 4/1/2023, otherwise "official date".

Can anyone help please?

If logic with specific criteria.xlsx
ABCDEFG
1Official Date4/1/2023
2EEIDEffective DateIncrease PercentBudget %Transaction TypeDesignationbefore or after official date
3Employee 14/1/20235.00%4.50%Merit > MeritRbefore
4Employee 24/1/20234.60%4.50%Merit > MeritRbefore
5Employee 34/1/20234.50%4.50%Merit > MeritNRbefore
6Employee 44/1/20234.00%4.50%Merit > MeritNRbefore
7Employee 54/1/20236.00%4.50%Merit > MeritRbefore
8Employee 64/1/202311.00%4.50%PromotionRbefore
9Employee 71/1/202320.00%30.00%ChangeNRbefore
10Employee 77/1/202320.00%30.00%PromotionRafter
11Employee 94/1/202320.00%30.00%Merit > MeritNRbefore
12Employee 101/1/202320.00%30.00%ChangeNRbefore
13Employee 117/1/202320.00%30.00%ChangeRafter
14Employee 124/1/202320.00%30.00%Merit > MeritNRbefore
15Employee 134/1/202310.00%10.00%Merit > MeritNRbefore
16Employee 144/1/202310.00%10.00%Merit > MeritNRbefore
17Employee 154/1/20237.50%4.50%Merit > MeritRbefore
18Employee 164/1/202315.00%10.00%Merit > MeritRbefore
19Employee 174/1/20233.00%4.50%Merit > MeritNRbefore
20Employee 184/1/20234.60%4.50%Merit > MeritRbefore
21Employee 191/1/202320.00%30.00%ChangeNRbefore
22Employee 201/1/202320.00%30.00%ChangeNRbefore
23Employee 217/1/202320.00%30.00%ChangeRafter
24Employee 74/1/202320.00%30.00%Merit > MeritNRbefore
25Employee 231/1/202320.00%30.00%ChangeNRbefore
26Employee 244/1/20234.50%4.50%Merit > MeritNRbefore
27Employee 251/1/202320.00%30.00%ChangeNRbefore
28Employee 267/1/202320.00%30.00%ChangeRafter
29Employee 274/1/202320.00%30.00%Merit > MeritNRbefore
30Employee 281/1/202320.00%30.00%ChangeNRbefore
31Employee 297/1/202320.00%30.00%ChangeRafter
32Employee 304/1/202320.00%30.00%Merit > MeritNRbefore
33Employee 314/1/202310.00%10.00%Merit > MeritNRbefore
34Employee 324/1/20234.70%4.50%Merit > MeritRbefore
35Employee 334/1/20236.00%4.50%Merit > MeritRbefore
36Employee 344/1/20234.50%4.50%Merit > MeritNRbefore
37Employee 354/1/202317.00%10.00%Merit > MeritRbefore
38Employee 364/1/20238.00%10.00%Merit > MeritNRbefore
39Employee 374/1/20233.70%10.00%Merit > MeritNRbefore
40Employee 381/1/20233.70%10.00%PromotionNRbefore
41Employee 394/1/20233.00%4.50%Merit > MeritNRbefore
42Employee 404/1/20234.00%4.50%Merit > MeritNRbefore
43Employee 414/1/20234.55%4.50%Merit > MeritRbefore
44Employee 424/1/20235.00%4.50%Merit > MeritRbefore
45Employee 434/1/20234.50%4.50%Merit > MeritNRbefore
46Employee 444/1/202310.00%5.00%Merit > MeritRbefore
47Employee 454/1/20234.50%4.50%Merit > MeritNRbefore
48Employee 464/1/20233.50%4.50%Merit > MeritNRbefore
49Employee 474/1/20234.75%4.50%Merit > MeritRbefore
50Employee 11/1/20234.75%4.50%PromotionRbefore
51Employee 12/1/20233.00%4.50%ChangeNRbefore
52Employee 104/1/202320.00%30.00%PromotionNRbefore
53Employee 141/1/202315.00%10.00%PromotionRbefore
54Employee 177/1/20232.50%4.50%PromotionRafter
55Employee 287/1/202315.00%30.00%PromotionRafter
Sheet1
Cell Formulas
RangeFormula
F3:F55F3=IF(OR(C3>D3,B3>$C$1),"R", "NR")
G3:G55G3=IF(B3>$C$1,"after","before")
Hi, thanks for your suggestion. How about if I change the logic to be : if any employee received merit or promotion before official date, or received promotion on official date, or received merit on official date that is higher than budget %, or merit transaction and increase % is more than budget %, or promotion that is higher than budget % then R, otherwise NR".

As for suggested formula below, it gave me "after" for any effective date that is = 4/1/2023, which should not be the result, what I need is "after" for any date after this date, and before for any date before this date, maybe "blank" if it's = official date. any suggestion?

For G3
=IF(B3>=$C$1,"after","before")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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