Stumped on IF and VLOOKUP

Adnil

New Member
Joined
Aug 11, 2011
Messages
11
Hi All

I am having one of those days... This formula worked yesterday... today it doesnt and I cant see what I have done.:confused:

=IF(C32,(VLOOKUP(E6,'Annuity Tables'!$A:$F,2,0)),(0))=IF(E32,(VLOOKUP(E6,'Annuity Tables'!$A:$F,3,0)),(0))=IF('Data Sheet'!G32,(VLOOKUP(E6,'Annuity Tables'!$A:$F,4,0)),(0))=IF('Data Sheet'!I32,(VLOOKUP(E6,'Annuity Tables'!$A:$F,5,0)),(0))

It jsut wont work! the cells C32, E32, G32 and I32 all have either True or false in them (from check boxes)

I tried this section of the formula and it works perfectly.
=IF(E32,(VLOOKUP(E6,'Annuity Tables'!$A:$F,2)))

But as soon as I put the others in it displays "False"

I just cant see the problem anymore. Any help is greatly appreciated.

Thanks :biggrin:

<TABLE style="WIDTH: 77pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=102 border=0 x:str><COLGROUP><COL style="WIDTH: 77pt; mso-width-source: userset; mso-width-alt: 3730" width=102><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl25 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 77pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=middle width=102 height=17 x:bool="FALSE">
</TD></TR></TBODY></TABLE>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe:

=IF(C32,VLOOKUP(E6,'Annuity Tables'!$A:$F,2,0),IF(E32,VLOOKUP(E6,'Annuity Tables'!$A:$F,3,0),IF(G32,VLOOKUP(E6,'Annuity Tables'!$A:$F,4,0),IF(I32,VLOOKUP(E6,'Annuity Tables'!$A:$F,5,0),0))))
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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