+ Reply to Thread
Results 1 to 5 of 5

Sumif returns text

  1. #1
    Registered User
    Join Date
    09-19-2008
    Location
    maryland
    Posts
    23

    Sumif returns text

    I"m trying to get a sumif to return a result from a group of text items based on what is selected in another cell. The Pull down for selecting an account code is cell "E10" (Pull down for the Range called "CAM_CODE") and I want cell "g10" to return the corresponding text description found in the range called "Description"

    Thanks in advance and sample spreadsheet attached.
    Attached Files Attached Files
    Last edited by edbhome; 04-21-2020 at 08:12 AM. Reason: Resolved

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Sumif returns text

    What on Earth does this have to do with SUMIF???

    I believe a simple lookup formula will do it:

    =IFNA(VLOOKUP(E10,$M$9:$N$33,2,0),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,733

    Re: Sumif returns text

    try
    =IFERROR(INDEX($N$9:$N$32,MATCH(E10,$M$9:$M$32,0)),"")
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    09-19-2008
    Location
    maryland
    Posts
    23

    Re: Sumif returns text

    I'm not a pro so I thought using sumif might be the way to go. Obviously I was wrong and many thanks for giving me a solution.

    Be safe and be well,

    Ed

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Sumif returns text

    No worries.

    The clue is in the name, really: SUMIF will sum a range of numbers if a criterion in that column or in another column is met.

+ 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. Can I make a sumif formula that returns a 1 or 0 value
    By blkthirt33n in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-16-2019, 09:34 PM
  2. Replies: 2
    Last Post: 06-21-2017, 06:32 PM
  3. Sumif returns 0
    By EXCELsior44 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-14-2016, 12:00 PM
  4. Sumif returns #VALUE error
    By iblameluck78 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-10-2012, 05:43 PM
  5. Sumif Returns 0
    By JAC_01 in forum Excel General
    Replies: 4
    Last Post: 06-17-2012, 02:29 PM
  6. [SOLVED] Sumif function returns a #Value! error
    By Kalts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2012, 07:50 AM
  7. [SOLVED] sumif formula returns incorrect value
    By modular_brian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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