Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIf Function- either or 3

Status
Not open for further replies.

Fredgarner

Technical User
Jul 21, 2005
29
GB
I am trying to use the 'IIf' function to do the following: display $ if a share class is a $ share class; £ if it is a £ share class; and € if it is a € share class. at hte moment I can make it display a $ sign if it is a $ share class, by using the formula:

=IIf([Class]="Class A (USD)","$")

However, I do not know how to go on and make this display the other currencies if their conditions are met (ie, either £ or € is present in the 'Class' field), because the IIf function only seems to allow for 2 possibilities.
 
Hi
You can nest ifs, something like:
[tt]=IIf([Class]="Class A (USD)","$",IIf([Class]="Class B (EUR)","€","£"))[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top