+ Reply to Thread
Results 1 to 7 of 7

SUMIF - Text & Values

Hybrid View

  1. #1
    Registered User
    Join Date
    07-24-2009
    Location
    Illinois
    MS-Off Ver
    Excel 2007
    Posts
    4

    SUMIF - Text & Values

    I've created an example of what I'm working on since it involves personal information. See Attachment...
    ExampleExcel.xlsx

    I need to use 2 criteria to determine the Sum value for A2 thru A5. The Account# and the Type# below row 7 need to be the same as those listed to the right of the Sum column (A2:A5). I can change the Account# and Type# to text, but the Sum Range needs to be numbers.

    I was able to Sum based on the Account range (=SUMIF(Account,B2,Sum), but I still need to make the Type range part of the criteria.

    As you can see in the attachment, A2 = 8 when it should = 2 (as seen in row 8 under Sum Range).
    Last edited by REL; 07-24-2009 at 12:03 PM. Reason: Solved!

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

    Re: SUMIF - Text & Values

    Given you're using XL2007 you can use SUMIFS function (not available pre XL2007)

    A2: =SUMIFS(Sum,Account,B2,Type,C2)

  3. #3
    Registered User
    Join Date
    07-24-2009
    Location
    Illinois
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: SUMIF - Text & Values

    This works fine in my example attachment, but on the orginal spreadsheet I'm working on it gives me a #VALUE! error that says "A value used in the formula is of the wrong data type." I even made sure to format the Account and Type range as "text" and the Sum range as "accounting."

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

    Re: SUMIF - Text & Values

    I suspect it would be best to post a sample reflective of your real data

  5. #5
    Registered User
    Join Date
    07-24-2009
    Location
    Illinois
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: SUMIF - Text & Values

    Here's a closer example of what I'm working on and the error I received.
    ExampleExcel2.xlsx

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

    Re: SUMIF - Text & Values

    Your Account Named Range encompasses two columns whereas in fact it should include D (see Notes)... revise the RefersTo range and the formula will work.

    NOTE:

    Merged Cells are horrendous and should be avoided whenever possible ... you can achieve the same effect on horizontal ranges by using "Centre Across Selection".

    With Merged Cells the values within exist only in the left most (or in vertical merge the top most) cell in the range... ie even with D&E merged the values exist only in D.

  7. #7
    Registered User
    Join Date
    07-24-2009
    Location
    Illinois
    MS-Off Ver
    Excel 2007
    Posts
    4

    Talking Re: SUMIF - Text & Values

    IT WORKS!!! Thank you so much! I figured it was something simple, but I just couldn't figure it out.

    For others who may view this post, I unmerged my columns.

+ 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