Help With An IF Statement

EYEMDABEST

New Member
Joined
Oct 6, 2005
Messages
27
I have an IF statement that I wrote. When I try to apply the formula I get the error message

"Your formula is missing a parenthesis--) or (. Check the formula, and then add the parenthesis in the appropriate place."

I have looked at this for several hours and can't find what is missing could you please look this over and offer some assistance please.

IF(A2=Shrews,(ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB3!$A$3:$B$3000,2,0)/7),(K3/7)),0),IF(A2=Park,ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB!$E$3:$F$3000,2,0)/7),(K3/7)),0),IF(A2=MTGAY,ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB!$I$3:$J$3000,2,0)/7),(K3/7)),0),IF(A2=Buck,ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB!$M$3:$N$3000,2,0)/7),(K3/7)),0),IF(A2=Beck,ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB!$Q$3:$R$3000,2,0)/7),(K3/7)),0),0)
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi

Not sure if this is what your after but it seems like you might have got confused at some point while trying to get it to work;

Code:
=IF(A2="Shrews",ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB3!$A$3:$B$3000,2,FALSE)/7),(K3/7)),0),IF(A2="Park",ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB!$E$3:$F$3000,2,FALSE)/7),(K3/7)),0),IF(A2="MTGAY",ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB!$I$3:$J$3000,2,FALSE)/7),(K3/7)),0),IF(A2="Buck",ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB!$M$3:$N$3000,2,FALSE)/7),(K3/7)),0),IF(A2="Beck",ROUNDUP(IF(K3<1,(VLOOKUP(C3,WHB!$Q$3:$R$3000,2,FALSE)/7),(K3/7)),0),0)))))

(I also assumed that it was text values in A2 to avoid a #NAME error, you might want to change it back if thats not the case)

HTH

:)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,671
Members
452,937
Latest member
Bhg1984

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