+ Reply to Thread
Results 1 to 4 of 4

Sumifs and countifs

  1. #1
    Registered User
    Join Date
    01-31-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    12

    Sumifs and countifs

    Can you use a cell reference with the SUMIFS and COUNTIFS formulas and Defined Names?

    To clarify, I'm wondering if you can do this the following.

    Create a Defined Name of SalesRegion (Northeast, Southeast...etc.) & Sales (SalesNumber1....SalesNumbern).

    I know you can =SUMIFS(Sales, SalesRegion, "="&"Southeast")

    If you had the words "SalesRegion", "Sales" in cells A1 and A2, respectively, could I do this? (I know you can put "Southeast" in a cell A3 and it works.)

    =SUMIFS(A2,A1,"="&A3)

    If I can do this, what am I doing wrong to not achieve the correct result?
    Last edited by NBVC; 02-03-2011 at 05:47 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Sumifs and countifs

    Perhaps something like this...(untested):
    Please Login or Register  to view this content.
    Does that work?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

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

    Re: Sumifs and countifs

    You need to include the INDIRECT function then...

    =SUMIFS(INDIRECT(A2),INDIRECT(A1),A3)
    Last edited by NBVC; 02-03-2011 at 05:17 PM. Reason: removed "="... not needed.
    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.

  4. #4
    Registered User
    Join Date
    01-31-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Sumifs and countifs

    You guys just saved me a ton of time!!! Thank you!!! It worked like a charm!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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