+ Reply to Thread
Results 1 to 2 of 2

COUNTIF and SUMIF Question

  1. #1
    Registered User
    Join Date
    08-01-2006
    Posts
    27

    COUNTIF and SUMIF Question

    Hi all,

    I'm trying to use COUNTIF and SUMIF to count and sum values across an array that are greater than a specific value. My formula looks something like: =SUMIF(A2:H230,">B1"). The issue is that it returns zero. If I reference the value in B1 (i.e. ">104.7"), instead of the cell, it returns the numbers I'm looking for. I have the same issue with the COUNTIF function. All cells are formatted as numbers. Is there anyway to reference the cell in the conditional, instead of having to hard code it's value?

    Thanks for any help!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: COUNTIF and SUMIF Question

    Given B1 is encased in quotations XL treats this as a literal value - given numbers < text this will return 0 (ie 1000000 < "B1")

    You can use & to create the criteria string

    =SUMIF(A2:H230,">"&B1)

    this equates to

    =SUMIF(A2:H230,">104.7")

    if B1 contains 104.7 as value.

+ 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