+ Reply to Thread
Results 1 to 5 of 5

Change current formula to exlude row if not savings is associated with it.

  1. #1
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Change current formula to exlude row if not savings is associated with it.

    =IF(COUNTIFS($L$4:$L$13,$L10,$K$4:$K$13,">0")>0,"Savings","")

    The current formula Captures all the rows if there is a savings. I only want it to caputre the first line that includes the search term, the Base item (column I), and the savings potential (+ number in column K). I don't want it to include the rows that have no savings.

    If you look at the document. I do not want it to say savings for row 13 because there is no savings assiocated with the line.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Change current formula to exlude row if not savings is associated with it.

    In Row 4

    =IF(AND(K4>0,COUNTIF($L$4:$L$13,$L4)),"Savings","")

    copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Change current formula to exlude row if not savings is associated with it.

    Please Login or Register  to view this content.
    How would that translate to a code?

  4. #4
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Change current formula to exlude row if not savings is associated with it.

    Actually, that only works if K > 0. That is not what I need. Refer to attached sheet.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Change current formula to exlude row if not savings is associated with it.

    I think I got the formula. =IF(SUMIFS($K$4:$K$20001,$L$4:$L$20001,$L4,$K$4:$K$20001,">0")>0,"Savings","").

+ 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