[mso] Mixed IF and VLOOKUP

I'm trying to add another dimension to my commission problem. For example,
if the boss says that he will override the commission table, then I will
put his info in column I would then make the year =0 (the info in column
D). I tried to add another if statement as follows:

IF(D25=0,I25,FALSE),
IF(D25=1,(VLOOKUP(F25,commissions,2,FALSE)),IF(D25=2,(VLOOKUP(F25,commissi
ons,3,FALSE)),IF(D25=3,(VLOOKUP(F25,commissions,4,FALSE)),"")))

However, I get #VALUE!. Can anyone see what I'm doing wrong?

Thanks,

Michele B. Wong
Reliable Cyber Solutions, LLC
"We're only a click away!"
http://www.reliablecyber.com
michele@xxxxxxxxxxxxxxxxx
425.488.8078 phone
206.683.0624 mobile
775.245.3291 fax



-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf
Of Linda F. Johnson
Sent: Monday, November 24, 2003 7:50 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Performing Calculations Using IF or VLOOKUP


Ok Michele..I received your file and mailed it back to you
privately...basically it's an IF statement with three nested ifs that use
vlookups if the number in the year column is 1, 2, or 3...I'm replying
here
so people can benefit from this

I named your table on sheet two "commissions" so the formula looks like
this:

=IF(C3=1,(VLOOKUP(E3,commissions,2,FALSE)),IF(C3=2,(VLOOKUP(E3,commissions
,4
,FALSE)),IF(C3=3,(VLOOKUP(E3,commissions,6,FALSE)),"")))


Linda F. Johnson, M.A., MOS
Linda's Computer Stop
http://personal-computer-tutor.com
Free e-Books, Newsletter, and tutorials


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: