+ Reply to Thread
Results 1 to 6 of 6

Total based on column text code

  1. #1
    Registered User
    Join Date
    03-17-2011
    Location
    Boise, ID
    MS-Off Ver
    2007
    Posts
    4

    Total based on column text code

    I have a 50 row account sheet and I would like to total amounts based on a column code. For example sum amounts in column "D" if column "C" has code = "W". Is there a way to do this without using a "if" condition for every row?

    Please Login or Register  to view this content.
    Thanks for the help jz
    Last edited by jwzumwalt; 03-18-2011 at 03:07 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Total based on column text code

    Hello jwzumwalt,

    Are you familiar with the SumIf worksheet function?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-17-2011
    Location
    Boise, ID
    MS-Off Ver
    2007
    Posts
    4

    Re: Total based on column text code

    I am not familure with "SumIf"... Thanks, I'll take a look at it!

  4. #4
    Registered User
    Join Date
    03-17-2011
    Location
    Boise, ID
    MS-Off Ver
    2007
    Posts
    4

    Re: Total based on column text code

    Thanks for the help, the sumif WORKED!
    I have one more tweak I need....

    How do I get text to show up before and after the formula?

    I tried ="text", SUMIF(F7:F53,"W",G7:G53), "more text"
    but it did not work.
    Thanks - JZ

  5. #5
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Total based on column text code

    Please Login or Register  to view this content.
    Last edited by barryleajo; 03-18-2011 at 02:30 PM. Reason: Forgot code tags

  6. #6
    Registered User
    Join Date
    03-17-2011
    Location
    Boise, ID
    MS-Off Ver
    2007
    Posts
    4

    Re: Total based on column text code

    How do I mark this post as Solved?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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