+ Reply to Thread
Results 1 to 2 of 2

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
    21

    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 04:33 PM. Reason: Solved per Rep Comments

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

    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)))
    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.

+ 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