Help in correcting excel formula

baidya91

Board Regular
Joined
Jun 1, 2016
Messages
147
Can anyone help me correct the following formula:
Code:
=IF(C2>100,IF(T2="Change of Ropa",ROUNDUP(VLOOKUP(DATE(2006,1,1),$Q$2:$R$28,2,0)*1.86,-1)+G2),IF(C2>100,IF(OR(T2={"Superannuation","Appointment","Annual Increment","Enhancement of Qualification","10 Years' Benefit","18 Years' Benefit","20 Years' Benefit"}),CEILING(INT((R2-1)*1.03),10))))

When separated each of the following formulas work:
1
Code:
=IF(C2>100,IF(T2="Change of Ropa",ROUNDUP(VLOOKUP(DATE(2006,1,1),$Q$2:$R$28,2,0)*1.86,-1)+G2))
2
Code:
=IF(C2>100,IF(OR(T2={"Superannuation","Appointment","Annual Increment","Enhancement of Qualification","10 Years' Benefit","18 Years' Benefit","20 Years' Benefit"}),CEILING(INT(R1*1.03),10)))

But when combined, the first works but the second does not. Please help me.
 
Last edited by a moderator:
Sorry to note that I cannot quote the first part completely:

Just to help, below is the complete first part :biggrin:

IF(C2<=100,IF(OR(T2={"Appointment","Enhancement of Qualification","10 Years' Benefit","18 Years' Benefit","20 Years' Benefit","Change of Ropa"}),E2,IF(T2="Annual Increment",IF(R1<G1,MIN(G1,SUM(R1+F1)),IF(R1<I1,MIN(I1,SUM(R1+H1)),IF(R1<K1,MIN(K1,SUM(R1+J1)),IF(R1<M1,MIN(M1,SUM(R1+L1)),IF(AF5<O1,MIN(O1,SUM(R1+N1)),IF(R1<P1,MIN(,SUM(R1+O1))))))))))))))

where C2 = 81 or 90 or 98 (<100)
 
Last edited:
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I don't see how you can combine them as they are contradictory.
1 formula is saying if T2= "Appointment" then return E2
the other is saying to return the result of the CEILING formula
 
Upvote 0
Sir, don't mind if I am really bothering you.

I am again encroaching upon your valuable time by asking you:
My formula has two parts:
Part-I =IF(C2<=100,IF(OR(T2={"Appointment","Enhancement of Qualification","10 Years' Benefit","18 Years' Benefit","20 Years' Benefit","Change of Ropa"}),E2,IF(T2="Annual Increment",IF(R1< g1,min(g1,sum(r1+f1)),if(r1< i1,min(i1,sum(r1+h1)),if(r1< k1,min(k1,sum(r1+j1)),if(r1< m1,min(m1,sum(r1+l1)),if(af5< o1,min(o1,sum(r1+n1)),if(r1< p1,min(,sum(r1+o1)))))))))))))), where="" c2="81/90/98" (<100)


Part-II = IF(C2<=100,"",IF(T2="Change of Ropa",ROUNDUP(VLOOKUP(DATE(2006,1,1),$Q$2:$R$28,2,0)*1.86,-1)+G2,IF(OR(T2={"Superannuation","Appointment","Annual Increment","Enhancement of Qualification","10 Years' Benefit","18 Years' Benefit","20 Years' Benefit"}),CEILING(INT(R1*1.03),10)))), where C2 = 2009 in reality

I want to combine the parts into one formula but I cannot find way.

Please help me by giving a working solution.
Thanks in advance........

This is correct input.......
 
Upvote 0
I don't see how you can combine them as they are contradictory.
1 formula is saying if T2= "Appointment" then return E2
the other is saying to return the result of the CEILING formula

Sir, I have eliminated the option of returning to E2 and revised the parts as follows:
Part - I:= <g1,min(g1,sum(r1+f1)),if(r1<i1,min(i1,sum(r1+h1)),if(r1<k1,min(k1,sum(r1+j1)),if(r1<m1,min(m1,sum(r1+l1)),if(af5<o1,min(o1,sum(r1+n1)),if(r1<p1,min(,sum(r1+o1)
IF(OR($C$1&" "&C2={"ROPA 81","ROPA 90","ROPA 98"}),IF(OR(T2={"Annual Increment","10 Years' Benefit","18 Years' Benefit","20 Years' Benefit"}),IF(R1<G1,MIN(G1,SUM(R1+F1))...IF(R1<P1,MIN(,SUM(R1+O1)

Part - II:= <g1,min(g1,sum(r1+f1)),if(r1<i1,min(i1,sum(r1+h1)),if(r1<k1,min(k1,sum(r1+j1)),if(r1<m1,min(m1,sum(r1+l1)),if(af5<o1,min(o1,sum(r1+n1)),if(r1
IF($C$1&" "&C2<>"ROPA 2009","",IF(T2="Change of Ropa",ROUNDUP(VLOOKUP(DATE(2006,1,1),$Q$2:$R$28,2,0)*1.86,-1)+G2,IF(OR(T2={"Superannuation","Appointment","Annual Increment","10 Years' Benefit","18 Years' Benefit","20 Years' Benefit"}),CEILING(INT(R1*1.03),10))))))))))))).

But still it does not work with the second part. Can you sort out the problem?</g1,min(g1,sum(r1+f1)),if(r1<i1,min(i1,sum(r1+h1)),if(r1<k1,min(k1,sum(r1+j1)),if(r1<m1,min(m1,sum(r1+l1)),if(af5<o1,min(o1,sum(r1+n1)),if(r1
</g1,min(g1,sum(r1+f1)),if(r1<i1,min(i1,sum(r1+h1)),if(r1<k1,min(k1,sum(r1+j1)),if(r1<m1,min(m1,sum(r1+l1)),if(af5<o1,min(o1,sum(r1+n1)),if(r1<p1,min(,sum(r1+o1)
 
Last edited:
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