+ Reply to Thread
Results 1 to 4 of 4

SUMIF based on adjacent text value

  1. #1
    Registered User
    Join Date
    01-10-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    SUMIF based on adjacent text value

    Hi all,

    I'm new to this forum although back in the day I was part of the old excel-l and excel-g mailing lists...I guess so will a lot of you have been??

    Anyway, I'm a bit rusty these days and I'm trying to find a way to sum the values in one column, based on a text qualifier in the adjacent column.

    My data rows have number values and a text value (a classification, "c" or "s"). I want to separately sum the values for all the c's and all the s's.

    Any ideas?

    Kind regards
    Greg

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Text values in column A, numeric in column B:

    =sumif(a2:a20,"c",b2:b20)

    =sumif(a2:a20,"s",b2:b20)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-10-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2
    ahhhhhh - "I see", said the blind man!! That's what the third argument is for.

    Many thanks!!

    Cheers
    Greg

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Yeah, I feel that way all the time...

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

+ 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