+ Reply to Thread
Results 1 to 5 of 5

Thread: Used Sumif and <> now need to add another <> and can not figure out

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

    Red face Used Sumif and <> now need to add another <> and can not figure out

    I will post the time sheet on here, the formula works great but of course they throw more codes in I have a <> 1, need to add <>2 as well and make the codes in column one keep their format as 0001 instead of 1. Here is the spread sheet.

    =IF(A2<>1,G2,80-SUMPRODUCT(($A$2:$A$572<>1)*($B$2:$B$572=$B2),$G$2:$G$572)) is the formula and works great, but I can not get the other <>, I tried and but must have done something wrong cause it did not work. Thanks
    Attached Files Attached Files
    Last edited by patsyhixon; 02-10-2012 at 11:34 AM.

  2. #2
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,398

    Re: Used Sumif and <> now need to add another <> and can not figure out

    Hi Patsyhixon,

    To change the format of 1 to 001 in column A, just custom format the cell as 000. To do this, press Ctrl +1 on the cell and go to custom and add format as 000. Now copy -paste this format to all cells in column A.

    To add <>2 into the criteria, I did not found 2 in the column A, would suggest you to post the correct worksheet with samples. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +919810929744
    dilipandey@gmail.com

  3. #3
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,398

    Re: Used Sumif and <> now need to add another <> and can not figure out

    Hi Patsyhixon,

    I found out 2s as well later..
    You can use following formula to achieve the desired results:-

    
    =IF(AND(A2<>1,A2<>2),G2,80-SUMPRODUCT(($A$2:$A$572<>1)*($B$2:$B$572=$B2),$G$2:$G$572))]
    Sample file is also attached

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey
    +919810929744
    dilipandey@gmail.com

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

    Re: Used Sumif and <> now need to add another <> and can not figure out

    thank you I did not realize I had not marked solved and given you a star.

  5. #5
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,398

    Re: Used Sumif and <> now need to add another <> and can not figure out

    You are welcome patsyhixon..

    and thanks for the 'star' .. cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +919810929744
    dilipandey@gmail.com

+ 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