+ Reply to Thread
Results 1 to 3 of 3

Instances instead of amounts.

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    40

    Instances instead of amounts.

    I am using the following formula to give me a total dollar amount for gas cards issued: =SUMPRODUCT(--(Consumers!$I$2:$I$997),--(Consumers!$D$2:$D$997=$B17),--(Consumers!$J$2:$J$997>0))
    Column I is filled with the value of the gas card issued (either 0, 10, or 20).
    Column D is the county issued to. B17-B24 refers to the rows for each particular county.
    Column J is my search string helper for the dates I enter to search. EOMONTH kinda stuff.

    What I would like to do is use a variation of this formula to count the instances (instead of total dollar amounts) of any value greater than 0.

    This is different from my last thread from earlier today.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,748

    Re: Instances instead of amounts.

    Just a slight amendment:

    =SUMPRODUCT(--(Consumers!$I$2:$I$997>0),--(Consumers!$D$2:$D$997=$B17),--(Consumers!$J$2:$J$997>0))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-08-2012
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Instances instead of amounts.

    That was it!

    Thanks!

    Dan

+ 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