+ Reply to Thread
Results 1 to 2 of 2

Thread: Add an if statement to the formula i have

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    Oak Ridge TN
    MS-Off Ver
    Excel 2007
    Posts
    19

    Wink Add an if statement to the formula i have

    I have this formula =IF(AND(A2<>1,A2<>2),C2,80-SUMPRODUCT(($A$2:$A$572<>1)*($A$2:$A$572<>2)*($B$2:$B$572=$B2),$C$2:$C$572)) that works great on my worksheet, the only thing I have tried to add =IF(A2=2,0,"") but can not get it to work. Any suggestions, I love this site you guys save hours of time plus I am learning so much by taking the formula apart and seeing how they work.
    Attached Files Attached Files
    Last edited by NBVC; 02-10-2012 at 03:33 PM. Reason: Solved per Rep Comments

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

    Re: Add an if statement to the formula i have

    Do you mean?

    =IF(A2=2,0,IF(A2<>1,C2,80-SUMPRODUCT(($A$2:$A$572<>1)*($A$2:$A$572<>2)*($B$2:$B$572=$B2),$C$2:$C$572)))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0