+ Reply to Thread
Results 1 to 4 of 4

How do you, Sum text fields together if a certain criteria is TRUE.

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    United States
    MS-Off Ver
    Excel Mac 2011
    Posts
    5

    How do you, Sum text fields together if a certain criteria is TRUE.

    Hey guys!

    I'm trying to add a column of text values together if a certain condition is true. For example, if Client = Red, than the Output Cell = Output 1; Output 2; Output 3; Output 4.

    I tried using sumif and a combination of Vlookup, but can't get it to sum text. Any help would be greatly appreciated.

    -Thank you!

    I manually outputted a table "Results Example" to show what the final table should look like, with the Output cells as B18, B19, and B20.


    Screen Shot 2016-05-10 at 6.40.54 PM.png

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How do you, Sum text fields together if a certain criteria is TRUE.

    One approach

    In D3 enter

    =IF(A3<>A2,C3,D2&"; "&C3)

    Copy this down and copy the last D cell in each client number and Paste Special Values.

    You could use a helper column to identify the last row in each block, e.g. =IF(A3<>A4,"Last","") and filter this column so that you can copy all the last cells in each block in one go.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: How do you, Sum text fields together if a certain criteria is TRUE.

    Another option could be to use this Function from post #7
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    10-17-2013
    Location
    United States
    MS-Off Ver
    Excel Mac 2011
    Posts
    5

    Re: How do you, Sum text fields together if a certain criteria is TRUE.

    Thanks guys, this really helped!

+ 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] Copy various fields from one workbook to various fields in another by criteria
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 04-26-2016, 03:55 PM
  2. [SOLVED] Multiple fields and want only 1 answer = TRUE or = FALSE
    By edanielqsf in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-23-2014, 08:10 PM
  3. [SOLVED] Return Text if True based on multiple criteria
    By JonnyMa in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-21-2013, 06:57 PM
  4. sum product if three fields are true
    By 00Able in forum Excel General
    Replies: 6
    Last Post: 01-12-2011, 07:36 PM
  5. Changing numbes in text fields into numbers in number fields
    By freaksareus in forum Excel General
    Replies: 4
    Last Post: 10-23-2008, 05:47 AM
  6. [SOLVED] Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS!
    By PSSSD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2006, 04:35 PM
  7. [SOLVED] How do I count something that has two fields that must be true
    By Charles in forum Excel General
    Replies: 1
    Last Post: 08-25-2005, 01:05 PM

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