+ Reply to Thread
Results 1 to 9 of 9

Sumifs reference criteria is text but I want to reference cell

Hybrid View

  1. #1
    Registered User
    Join Date
    07-21-2014
    Location
    florida
    MS-Off Ver
    2013
    Posts
    19

    Sumifs reference criteria is text but I want to reference cell

    I am trying to do a sumifs with two criteria but I want the criteria to lookup the text in a cell. I have tried several different things but I cant seem to get the formula to give me anything but 0 unless i type the text in
    Last edited by bbeards2; 11-06-2015 at 04:09 PM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,861

    Re: Sumifs reference criteria is text but I want to reference cell

    Please post a file explaining what you need.

  3. #3
    Registered User
    Join Date
    07-21-2014
    Location
    florida
    MS-Off Ver
    2013
    Posts
    19

    Re: Sumifs reference criteria is text but I want to reference cell

    Here is an example of the issue I am having. Would it make a difference if the the criteria and range were numbers?
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,861

    Re: Sumifs reference criteria is text but I want to reference cell

    Simple error: "bad" in G1 was "bad " - extra blank!

  5. #5
    Registered User
    Join Date
    07-21-2014
    Location
    florida
    MS-Off Ver
    2013
    Posts
    19

    Re: Sumifs reference criteria is text but I want to reference cell

    I want the formula in E2 to work.
    Last edited by bbeards2; 11-06-2015 at 03:48 PM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,861

    Re: Sumifs reference criteria is text but I want to reference cell

    It does work if you change "bad " in G1 to "bad" - remove the blank at the end of "bad" !!! (as per my previous post).

  7. #7
    Registered User
    Join Date
    07-21-2014
    Location
    florida
    MS-Off Ver
    2013
    Posts
    19

    Re: Sumifs reference criteria is text but I want to reference cell

    I have tried removing the space but it is still showing zero. I tried applying the trim formula and still nothing.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,861

    Re: Sumifs reference criteria is text but I want to reference cell

    Formula is ..

    =SUMIFS($A$2:$A$8,$B$2:$B$8,G1,$C$2:$C$8,H1)

    Sorry ... I should have posted this earlier.

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sumifs reference criteria is text but I want to reference cell

    You have your cell references inside quotes therefore excel sees them as text and not as cell references (i.e. it would count how many times H1 appears in B1:B12)

    =SUMIFS($A$2:$A$8,$B$2:$B$8,G1,$C$2:$C$8,H1)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] I want to change a text reference to a cell reference but im getting #N/A
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-28-2015, 12:12 PM
  2. Indirect Sheet reference with cell reference left function and text
    By teststrip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2015, 10:31 AM
  3. [SOLVED] Sumifs using a cell reference
    By rickycr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-23-2014, 07:09 PM
  4. SUMIFS formula with Cell reference
    By sanjeevkumarmc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-15-2012, 09:59 AM
  5. VBA: add SUMIFS formula with cell reference as criteria
    By sepi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2012, 05:57 PM
  6. SUMIFS does not give a value for cell reference
    By inayat in forum Excel General
    Replies: 2
    Last Post: 09-23-2011, 03:02 AM
  7. Text Cell reference and increase the cell reference by step value
    By Supriya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2005, 08:18 AM

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