Closed 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

    Add an if statement to the formula i have

    Hey guys hello, back again
    The formula I am using =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)) works great, I just need to add if in A column there is a 2 it equals 0. I have added the formula =if(a2=2, 0, "") everywhere in the formula and can not get it to work. Here is the sample worksheet. As always I really appreicate you guys.

    UPLOAD.xlsx

  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

    Unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    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.

Closed 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