How to use multiple if function on my example

Joko Purnomo

Board Regular
Joined
Jul 14, 2008
Messages
62
Office Version
  1. 2016
Platform
  1. Windows
Dear all,

Help me, for my dificult, how to use the multiple if formula between both column example A, and column example C, so that the result is in the result example column. Details explanation on column "range A and range B", include illustration formula. I say thank you for helping.

Best Regard,

Range AFormula Range ARange BFormula Range BResult CExample AExample BResult Example
0= 0"" = blankICP/RRD/Exp/Inv0ICP/RRD/Exp/Inv
0= 00= 0Current00Current
0= 01 - 30>= 1 and <= 30Roll to 1 - 3000Roll to 1 - 30
1 - 30>= 1 and <= 30"" = blankICP/RRD/Exp/Inv10ICP/RRD/Exp/Inv
1 - 30>= 1 and <= 300= 0Bact to Current110Bact to Current
1 - 30>= 1 and <= 301 - 30>= 1 and <= 30Same Aging1213Same Aging
1 - 30>= 1 and <= 3031 - 60>= 31 and <= 60Roll to 30+1335Roll to 30+
31 - 60>= 31 and <= 60"" = blankICP/RRD/Exp/Inv55ICP/RRD/Exp/Inv
31 - 60>= 31 and <= 600= 0Bact to Current560Bact to Current
31 - 60>= 31 and <= 601 - 30>= 1 and <= 30Roll Back to 1 - 305711Roll Back to 1 - 30
31 - 60>= 31 and <= 6031 - 60>= 31 and <= 60Same Aging5857Same Aging
31 - 60>= 31 and <= 6061 - 90>= 61 and <= 90Roll to 60+5963Roll to 60+
61 - 90>= 61 and <= 90"" = blankICP/RRD/Exp/Inv77ICP/RRD/Exp/Inv
61 - 90>= 61 and <= 900= 0Bact to Current780Bact to Current
61 - 90>= 61 and <= 901 - 30>= 1 and <= 30Roll Back to 1 - 307912Roll Back to 1 - 30
61 - 90>= 61 and <= 9031 - 60>= 31 and <= 60Roll Back to 31 - 608031Roll Back to 31 - 60
61 - 90>= 61 and <= 9061 - 90>= 61 and <= 90Same Aging8186Same Aging
61 - 90>= 61 and <= 9091 - 180>= 91 and <= 180Roll to 90+8293Roll to 90+
91 - 180>= 91 and <= 180"" = blankICP/RRD/Exp/Inv92ICP/RRD/Exp/Inv
91 - 180>= 91 and <= 1800= 0Bact to Current930Bact to Current
91 - 180>= 91 and <= 1801 - 30>= 1 and <= 30Roll Back to 1 - 309415Roll Back to 1 - 30
91 - 180>= 91 and <= 18031 - 60>= 31 and <= 60Roll Back to 31 - 609536Roll Back to 31 - 60
91 - 180>= 91 and <= 18061 - 90>= 61 and <= 90Roll Back to 61 - 909667Roll Back to 61 - 90
91 - 180>= 91 and <= 18091 - 180>= 91 and <= 180Same Aging97100Same Aging
91 - 180>= 91 and <= 180181 - 210>= 181 and <= 210Roll to 180+98192Roll to 180+
181 - 210>= 181 and <= 210"" = blankICP/RRD/Exp/Inv185ICP/RRD/Exp/Inv
181 - 210>= 181 and <= 2100= 0Bact to Current1860Bact to Current
181 - 210>= 181 and <= 2101 - 30>= 1 and <= 30Roll Back to 1 - 3018717Roll Back to 1 - 30
181 - 210>= 181 and <= 21031 - 60>= 31 and <= 60Roll Back to 31 - 6018839Roll Back to 31 - 60
181 - 210>= 181 and <= 21061 - 90>= 61 and <= 90Roll Back to 61 - 9018989Roll Back to 61 - 90
181 - 210>= 181 and <= 21091 - 180>= 91 and <= 180Roll Back to 91 - 18019098Roll Back to 91 - 180
181 - 210>= 181 and <= 210181 - 210>= 181 and <= 210Same Aging191200Same Aging
181 - 210>= 181 and <= 210> 210> 210Roll to WO192215Roll to WO
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Will this work for you? There appears to be an error in your example as highlighted below.

**Edited reply, formula changed to work with blank or empty cells**
Book1
ABCDEFGHI
1Start AEnd AStart BEnd BResult CExample AExample BResult ExampleFormula result
200ICP/RRD/Exp/Inv0ICP/RRD/Exp/InvICP/RRD/Exp/Inv
30000Current00CurrentCurrent
400130Roll to 1 - 3000Roll to 1 - 30Current
5130ICP/RRD/Exp/Inv10ICP/RRD/Exp/InvICP/RRD/Exp/Inv
613000Bact to Current110Bact to CurrentBact to Current
7130130Same Aging1213Same AgingSame Aging
81303160Roll to 30+1335Roll to 30+Roll to 30+
93160ICP/RRD/Exp/Inv55ICP/RRD/Exp/InvICP/RRD/Exp/Inv
10316000Bact to Current560Bact to CurrentBact to Current
113160130Roll Back to 1 - 305711Roll Back to 1 - 30Roll Back to 1 - 30
1231603160Same Aging5857Same AgingSame Aging
1331606190Roll to 60+5963Roll to 60+Roll to 60+
146190ICP/RRD/Exp/Inv77ICP/RRD/Exp/InvICP/RRD/Exp/Inv
15619000Bact to Current780Bact to CurrentBact to Current
166190130Roll Back to 1 - 307912Roll Back to 1 - 30Roll Back to 1 - 30
1761903160Roll Back to 31 - 608031Roll Back to 31 - 60Roll Back to 31 - 60
1861906190Same Aging8186Same AgingSame Aging
19619091180Roll to 90+8293Roll to 90+Roll to 90+
2091180ICP/RRD/Exp/Inv92ICP/RRD/Exp/InvICP/RRD/Exp/Inv
219118000Bact to Current930Bact to CurrentBact to Current
2291180130Roll Back to 1 - 309415Roll Back to 1 - 30Roll Back to 1 - 30
23911803160Roll Back to 31 - 609536Roll Back to 31 - 60Roll Back to 31 - 60
24911806190Roll Back to 61 - 909667Roll Back to 61 - 90Roll Back to 61 - 90
259118091180Same Aging97100Same AgingSame Aging
2691180181210Roll to 180+98192Roll to 180+Roll to 180+
27181210ICP/RRD/Exp/Inv185ICP/RRD/Exp/InvICP/RRD/Exp/Inv
2818121000Bact to Current1860Bact to CurrentBact to Current
29181210130Roll Back to 1 - 3018717Roll Back to 1 - 30Roll Back to 1 - 30
301812103160Roll Back to 31 - 6018839Roll Back to 31 - 60Roll Back to 31 - 60
311812106190Roll Back to 61 - 9018989Roll Back to 61 - 90Roll Back to 61 - 90
3218121091180Roll Back to 91 - 18019098Roll Back to 91 - 180Roll Back to 91 - 180
33181210181210Same Aging191200Same AgingSame Aging
341812102101.00E+100Roll to WO192215Roll to WORoll to WO
Sheet5
Cell Formulas
RangeFormula
I2:I34I2=LOOKUP(2,1/($A$2:$A$34<=F2)/($B$2:$B$34>=F2)/IF(G2="",$C$2:$C$34="",$C$2:$C$34<=G2)/IF(G2="",$C$2:$C$34="",$D$2:$D$34>=G2),$E$2:$E$34)
 
Last edited:
Upvote 0
Will this work for you? There appears to be an error in your example as highlighted below.

**Edited reply, formula changed to work with blank or empty cells**
Book1
ABCDEFGHI
1Start AEnd AStart BEnd BResult CExample AExample BResult ExampleFormula result
200ICP/RRD/Exp/Inv0ICP/RRD/Exp/InvICP/RRD/Exp/Inv
30000Current00CurrentCurrent
400130Roll to 1 - 3000Roll to 1 - 30Current
5130ICP/RRD/Exp/Inv10ICP/RRD/Exp/InvICP/RRD/Exp/Inv
613000Bact to Current110Bact to CurrentBact to Current
7130130Same Aging1213Same AgingSame Aging
81303160Roll to 30+1335Roll to 30+Roll to 30+
93160ICP/RRD/Exp/Inv55ICP/RRD/Exp/InvICP/RRD/Exp/Inv
10316000Bact to Current560Bact to CurrentBact to Current
113160130Roll Back to 1 - 305711Roll Back to 1 - 30Roll Back to 1 - 30
1231603160Same Aging5857Same AgingSame Aging
1331606190Roll to 60+5963Roll to 60+Roll to 60+
146190ICP/RRD/Exp/Inv77ICP/RRD/Exp/InvICP/RRD/Exp/Inv
15619000Bact to Current780Bact to CurrentBact to Current
166190130Roll Back to 1 - 307912Roll Back to 1 - 30Roll Back to 1 - 30
1761903160Roll Back to 31 - 608031Roll Back to 31 - 60Roll Back to 31 - 60
1861906190Same Aging8186Same AgingSame Aging
19619091180Roll to 90+8293Roll to 90+Roll to 90+
2091180ICP/RRD/Exp/Inv92ICP/RRD/Exp/InvICP/RRD/Exp/Inv
219118000Bact to Current930Bact to CurrentBact to Current
2291180130Roll Back to 1 - 309415Roll Back to 1 - 30Roll Back to 1 - 30
23911803160Roll Back to 31 - 609536Roll Back to 31 - 60Roll Back to 31 - 60
24911806190Roll Back to 61 - 909667Roll Back to 61 - 90Roll Back to 61 - 90
259118091180Same Aging97100Same AgingSame Aging
2691180181210Roll to 180+98192Roll to 180+Roll to 180+
27181210ICP/RRD/Exp/Inv185ICP/RRD/Exp/InvICP/RRD/Exp/Inv
2818121000Bact to Current1860Bact to CurrentBact to Current
29181210130Roll Back to 1 - 3018717Roll Back to 1 - 30Roll Back to 1 - 30
301812103160Roll Back to 31 - 6018839Roll Back to 31 - 60Roll Back to 31 - 60
311812106190Roll Back to 61 - 9018989Roll Back to 61 - 90Roll Back to 61 - 90
3218121091180Roll Back to 91 - 18019098Roll Back to 91 - 180Roll Back to 91 - 180
33181210181210Same Aging191200Same AgingSame Aging
341812102101.00E+100Roll to WO192215Roll to WORoll to WO
Sheet5
Cell Formulas
RangeFormula
I2:I34I2=LOOKUP(2,1/($A$2:$A$34<=F2)/($B$2:$B$34>=F2)/IF(G2="",$C$2:$C$34="",$C$2:$C$34<=G2)/IF(G2="",$C$2:$C$34="",$D$2:$D$34>=G2),$E$2:$E$34)
I mean like this :

This is only the full classification :



Classification AClassification BResult C
0ICP/RRD/Exp/Inv
00Current
01 - 30Roll to 1 - 30
1 - 30ICP/RRD/Exp/Inv
1 - 300Bact to Current
1 - 301 - 30Same Aging
1 - 3031 - 60Roll to 30+
31 - 60ICP/RRD/Exp/Inv
31 - 600Bact to Current
31 - 601 - 30Roll Back to 1 - 30
31 - 6031 - 60Same Aging
31 - 6061 - 90Roll to 60+
61 - 90ICP/RRD/Exp/Inv
61 - 900Bact to Current
61 - 901 - 30Roll Back to 1 - 30
61 - 9031 - 60Roll Back to 31 - 60
61 - 9061 - 90Same Aging
61 - 9091 - 180Roll to 90+
91 - 180ICP/RRD/Exp/Inv
91 - 1800Bact to Current
91 - 1801 - 30Roll Back to 1 - 30
91 - 18031 - 60Roll Back to 31 - 60
91 - 18061 - 90Roll Back to 61 - 90
91 - 18091 - 180Same Aging
91 - 180181 - 210Roll to 180+
181 - 210ICP/RRD/Exp/Inv
181 - 2100Bact to Current
181 - 2101 - 30Roll Back to 1 - 30
181 - 21031 - 60Roll Back to 31 - 60
181 - 21061 - 90Roll Back to 61 - 90
181 - 21091 - 180Roll Back to 91 - 180
181 - 210181 - 210Same Aging
181 - 210> 210Roll to WO


And the case i want to know from the classification above :


column A
column BResult Example
0ICP/RRD/Exp/Inv
00Current
012Roll to 1 - 30
10ICP/RRD/Exp/Inv
110Bact to Current
1213Same Aging
1335Roll to 30+
55ICP/RRD/Exp/Inv
560Bact to Current
5711Roll Back to 1 - 30
5857Same Aging
5963Roll to 60+
77ICP/RRD/Exp/Inv
780Bact to Current
7912Roll Back to 1 - 30
8031Roll Back to 31 - 60
8186Same Aging
8293Roll to 90+
92ICP/RRD/Exp/Inv
930Bact to Current
9415Roll Back to 1 - 30
9536Roll Back to 31 - 60
9667Roll Back to 61 - 90
97100Same Aging
98192Roll to 180+
185ICP/RRD/Exp/Inv
1860Bact to Current
18717Roll Back to 1 - 30
18839Roll Back to 31 - 60
18989Roll Back to 61 - 90
19098Roll Back to 91 - 180
191200Same Aging
192215Roll to WO

=IF(AND(A2>=0;B2="");"ICP/RRD/Exp/Inv";IF(AND(A2=0;B2=0);"Current";IF(AND(A2>0;B2>1*B2<=30);"Roll to 1 - 30", i mean like this but I am confused to continue with mutliple IF, with the full classification above.
 
Upvote 0
Multiple IF's are the wrong way to go about it.

There is nothing in your reply to say that my suggestion does not / will not work as required.

Column A contains the lower limit for classification A, column B contains the upper limit. Columns C and D are the same for classification B.
For an equal criteria (blank or 0) both columns must contain the same value.

Columns F and G replicate columns A and B in your lower table with the formula (and results) in column I.
Column H can be removed, I just left it in there with your original results to compare.
 
Upvote 0
Multiple IF's are the wrong way to go about it.

There is nothing in your reply to say that my suggestion does not / will not work as required.

Column A contains the lower limit for classification A, column B contains the upper limit. Columns C and D are the same for classification B.
For an equal criteria (blank or 0) both columns must contain the same value.

Columns F and G replicate columns A and B in your lower table with the formula (and results) in column I.
Column H can be removed, I just left it in there with your original results to compare.
Thank you for the help, Is there another way that is simpler, without creating additional columns lower and upper limit. Just look at this example, an the result are like this. Helm me for the formula. Thank you very much. (y)???

column Acolumn BResult Example
0ICP/RRD/Exp/Inv
00Current
012Roll to 1 - 30
10ICP/RRD/Exp/Inv
110Bact to Current
1213Same Aging
1335Roll to 30+
55ICP/RRD/Exp/Inv
560Bact to Current
5711Roll Back to 1 - 30
5857Same Aging
5963Roll to 60+
77ICP/RRD/Exp/Inv
780Bact to Current
7912Roll Back to 1 - 30
8031Roll Back to 31 - 60
8186Same Aging
8293Roll to 90+
92ICP/RRD/Exp/Inv
930Bact to Current
9415Roll Back to 1 - 30
9536Roll Back to 31 - 60
9667Roll Back to 61 - 90
97100Same Aging
98192Roll to 180+
185ICP/RRD/Exp/Inv
1860Bact to Current
18717Roll Back to 1 - 30
18839Roll Back to 31 - 60
18989Roll Back to 61 - 90
19098Roll Back to 91 - 180
191200Same Aging
192215Roll to WO
 
Upvote 0
That is a contradiction in terms. Without the additional columns it will be much more complicated.
Start AEnd AStart BEnd BResult CExample AExample BResult ExampleFormula result
0​
0​
ICP/RRD/Exp/Inv
0​
ICP/RRD/Exp/InvRoll to 1 - 30
0​
0​
0​
0​
Current
0​
0​
CurrentRoll to 1 - 30
0​
0​
1​
30​
Roll to 1 - 30
0​
0​
Roll to 1 - 30#N/A
1​
30​
ICP/RRD/Exp/Inv
10​
ICP/RRD/Exp/InvRoll to 30+
1​
30​
0​
0​
Bact to Current
11​
0​
Bact to CurrentRoll to 30+
1​
30​
1​
30​
Same Aging
12​
13​
Same AgingRoll to 30+
1​
30​
31​
60​
Roll to 30+
13​
35​
Roll to 30+Roll to 30+
31​
60​
ICP/RRD/Exp/Inv
55​
ICP/RRD/Exp/InvRoll to 60+
31​
60​
0​
0​
Bact to Current
56​
0​
Bact to CurrentRoll to 60+
31​
60​
1​
30​
Roll Back to 1 - 30
57​
11​
Roll Back to 1 - 30Roll to 60+
31​
60​
31​
60​
Same Aging
58​
57​
Same AgingRoll to 60+
31​
60​
61​
90​
Roll to 60+
59​
63​
Roll to 60+Roll to 60+
61​
90​
ICP/RRD/Exp/Inv
77​
ICP/RRD/Exp/InvRoll to 90+
61​
90​
0​
0​
Bact to Current
78​
0​
Bact to CurrentRoll to 90+
61​
90​
1​
30​
Roll Back to 1 - 30
79​
12​
Roll Back to 1 - 30Roll to 90+
61​
90​
31​
60​
Roll Back to 31 - 60
80​
31​
Roll Back to 31 - 60Roll to 90+
61​
90​
61​
90​
Same Aging
81​
86​
Same AgingRoll to 90+
61​
90​
91​
180​
Roll to 90+
82​
93​
Roll to 90+Roll to 90+
91​
180​
ICP/RRD/Exp/Inv
92​
ICP/RRD/Exp/InvRoll to 180+
91​
180​
0​
0​
Bact to Current
93​
0​
Bact to CurrentRoll to 180+
91​
180​
1​
30​
Roll Back to 1 - 30
94​
15​
Roll Back to 1 - 30Roll to 180+
91​
180​
31​
60​
Roll Back to 31 - 60
95​
36​
Roll Back to 31 - 60Roll to 180+
91​
180​
61​
90​
Roll Back to 61 - 90
96​
67​
Roll Back to 61 - 90Roll to 180+
91​
180​
91​
180​
Same Aging
97​
100​
Same AgingRoll to 180+
91​
180​
181​
210​
Roll to 180+
98​
192​
Roll to 180+Roll to 180+
181​
210​
ICP/RRD/Exp/Inv
185​
ICP/RRD/Exp/InvRoll to WO
181​
210​
0​
0​
Bact to Current
186​
0​
Bact to CurrentRoll to WO
181​
210​
1​
30​
Roll Back to 1 - 30
187​
17​
Roll Back to 1 - 30Roll to WO
181​
210​
31​
60​
Roll Back to 31 - 60
188​
39​
Roll Back to 31 - 60Roll to WO
181​
210​
61​
90​
Roll Back to 61 - 90
189​
89​
Roll Back to 61 - 90Roll to WO
181​
210​
91​
180​
Roll Back to 91 - 180
190​
98​
Roll Back to 91 - 180Roll to WO
181​
210​
181​
210​
Same Aging
191​
200​
Same AgingRoll to WO
181​
210​
210​
1.00E+100​
Roll to WO
192​
215​
Roll to WORoll to WO

i have try your solution, but it's not right.

May be my other friends can help me?

Thank you
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,504
Members
452,917
Latest member
MrsMSalt

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