Results 1 to 5 of 5

Problem with minusing 2 from an if formula

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Problem with minusing 2 from an if formula

    Hi everyone,

    I have the following formula:

    =COUNTIF('CORE Data Quarter'!$A:$A,'Trending Data'!A92&"*")

    What I want to do, is that if A92 = "RR001" then COUNTIF('CORE Data Quarter'!$A:$A,'Trending Data'!A92&"*")-2 should result, otherwise COUNTIF('CORE Data Quarter'!$A:$A,'Trending Data'!A92&"*") should calculate normally (without the -2). I have tried this:

    =IF('Trending Data'!A92="RR001",COUNTIF('CORE Data Quarter'!$A:$A,'Trending Data'!A92&"*"-2),COUNTIF('CORE Data Quarter'!$A:$A,'Trending Data'!A92&"*"))

    But i keep getting an 0 answer where as the answer should be 48. If i change 'Trending Data'!A92="RR001" to left(A10)="RR001" i get an answer of 50.

    Likewise, I have another formula on the same sheet:

    =SUMPRODUCT((LEFT('CORE Data Quarter'!A2:A3000,LEN('Trending Data'!A92))='Trending Data'!A92)*('CORE Data Quarter'!F2:F3000<80))

    Same thing with this one, if A92 = RR001 then the results should be SUMPRODUCT((LEFT('CORE Data Quarter'!A2:A3000,LEN('Trending Data'!A92))='Trending Data'!A92)*('CORE Data Quarter'!F2:F3000<80))-2, otherwise

    SUMPRODUCT((LEFT('CORE Data Quarter'!A2:A3000,LEN('Trending Data'!A92))='Trending Data'!A92)*('CORE Data Quarter'!F2:F3000<80))

    Any ideas, folks?

    Thanks!!
    Last edited by Groovicles; 01-21-2014 at 09:36 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  2. [SOLVED] Count C6:N6 minusing if a WS or HS are in those cells
    By summer2010 in forum Excel General
    Replies: 5
    Last Post: 04-25-2012, 06:14 AM
  3. Minusing a negative in an excel formula
    By JasonTurbo in forum Excel General
    Replies: 2
    Last Post: 09-14-2011, 05:41 PM
  4. adding and minusing at the same time
    By arada in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-16-2010, 06:02 AM
  5. minusing time
    By Crasher in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2006, 03:58 PM

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