+ Reply to Thread
Results 1 to 2 of 2

Can the iif statment have more than 2 outputs?

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Can the iif statment have more than 2 outputs?

    I have the IIF statement you see below & it works fine but I'd like to go an extra step for those that are marked "EOM HIT". If it contains those two words I'd like for it to check the MATURITY_DATE field & if the maturity date is less than the last day of the previous month I would like for it to mark "EOM Matured"... I would like to have it done in the same field...

    EOM FLAG: IIf([Past_due_date]<=DateSerial(Year(Date()),Month(Date()),0),"EOM HIT","")
    Last edited by jgomez; 05-25-2012 at 05:43 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: Can the iif statment have more than 2 outputs?

    Got it... kept running test until BOOM!

    Here is what I did...

    EOM FLAG: IIf([Past_due_date]<=DateSerial(Year(Date()),Month(Date()),0),"" & (IIf([Maturity_date]<=DateSerial(Year(Date()),Month(Date()),0),"EOM Matured","EOM ACTIVE")))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1