+ Reply to Thread
Results 1 to 4 of 4

If formula displaying false

  1. #1
    Registered User
    Join Date
    04-26-2007
    Posts
    37

    If formula displaying false

    Hello-
    I am having two problems with a formula. The first being that when the first if condition is not met, it is displaying false. The formula should be set up with multiple if statements and then display 0 if all conditions are false. What am I missing? Why won't it work for all the conditions or display a 0?

    Second problem is that when I try to add the last if formula to accommodate the drop down option of 60 months (5) excel is giving me an error in the formula. It doesn't matter if I type in the if statement or cut and paste. Why won't it work for this option.

    A sample spreadsheet is attached. The formula is cell F6 highlighted in yellow.
    Thanks in advance!
    Attached Files Attached Files
    Last edited by msbing916; 11-30-2009 at 05:56 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If formula displaying false

    Missing closing parentheses after each Index/Match combo.

    Perhaps:

    =IF(C12=2,INDEX(B31:B63,MATCH(B6,C31:C63)),IF(C12=3,INDEX(B31:B63,MATCH(B6,D31:D63)),IF(C12=4,INDEX(B31:B63,MATCH(B6,E31:E63),IF(C12=6,INDEX(B31:B63,MATCH(B6,F31:F63)),0)))))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-26-2007
    Posts
    37

    Re: If formula displaying false

    Wow, two birds with one formula! I figured it had to be something obvious but my experience is limited with both index and matching formulas so I didn't catch it.
    Thanks!!!!!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If formula displaying false

    That last one probable should have be IF(C12=5...)...

    Another shorter way to do the same thing:

    =LOOKUP(9.99999E+307,CHOOSE({1,2},0,INDEX(B31:B63,MATCH(B6,INDEX(C31:F63,0,C12-1)))))

+ 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