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:

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
What doesn't work? Have you tried stepping through it? Besides omitting your false statements, it looks syntactically correct. :confused:
 
Upvote 0
The combined formula will only move to the 2nd formula if C2 <= 100, but the 2nd formula starts with If(C2>100 which it never will be, hence you get false returned.
 
Upvote 0
The combined formula will only move to the 2nd formula if C2 <= 100, but the 2nd formula starts with If(C2>100 which it never will be, hence you get false returned.

How shall I have to combine the formula if I want to use C2>100 (it may any other value, i.e, C2 = "Revise"/or "Correction") as a common part of the two formulas?
 
Upvote 0
Maybe
=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))))

But I don't understand why you are checking if C2 > 100 if it can be any value
 
Upvote 0
Maybe
=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))))

But I don't understand why you are checking if C2 > 100 if it can be any value

Sir, I want to use a particular figure in place of 'C2<=100" and that is "$C$1&" "&C2 = "ROPA 2009". How can I put that?
 
Upvote 0
Just replace the C2<=100 with your criteria, except change the = to <>
 
Upvote 0
Just replace the C2<=100 with your criteria, except change the = to <>

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........ </k1,min(k1,sum(r1+j1)),if(r1<>
 
Last edited by a moderator:
Upvote 0
Sorry to note that I cannot quote the first part completely:


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

Please send your mail id so that I can send it completely....<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
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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