+ Reply to Thread
Results 1 to 3 of 3

COUNTIFS with a variable condition

  1. #1
    Registered User
    Join Date
    04-29-2008
    Posts
    44

    COUNTIFS with a variable condition

    I am using COUNTIFS to work a formula for finding an average of a SUMPRODUCT. Formula:

    Please Login or Register  to view this content.
    This takes place on sheet '2008 Cost by Variety', and takes cost by packing style by ranch block by variety and sums together the appropriate style selection on that row, then divides by the number of selections added, in order to get an accurate average for what I need. In this format, the formula works. However, when I attempt to change "APRICOT" or "2L" in the COUNTIFS formula to the cell number so that I can change the control without changing the formula, it returns a #VALUE. Is there a way to use "=B3" or "=C3" in place of APRICOT and 2L?
    Last edited by cjsec9; 04-01-2009 at 02:52 PM. Reason: [SOLVED]

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: COUNTIFS with a variable condition

    Have you tried AVERAGEIFS?

    e.g.

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-29-2008
    Posts
    44

    Re: COUNTIFS with a variable condition

    That works perfectly, thanks. My mind was so stuck on SUMPRODUCT that I just kept making it more and more complicated than it needed to be.

    Thanks!

+ 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