+ Reply to Thread
Results 1 to 5 of 5

Sumif criteria - text strings?

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Sumif criteria - text strings?

    How to sum values in Col B between two different text strings in Col A?
    Thank you!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sumif criteria - text strings?

    if you mean something like...sum between "start" and "finish", no, sumif() doesnt work that way.

    as an example, would "nearly" be before "start", after "start, before "finish" or after "finish"?

    you would need to somehow convert your text strings to a value for that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Sumif criteria - text strings?

    What if I "start" and "finish" are always just that ... just the number of rows between will vary?
    Thanks .....

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,696

    Re: Sumif criteria - text strings?

    You can use a formula like this

    =SUM(INDEX(B:B,MATCH("Start",A:A,0)):INDEX(B:B,MATCH("Finish",A:A,0)))
    Audere est facere

  5. #5
    Registered User
    Join Date
    12-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Sumif criteria - text strings?

    Got it now, thank yoy

+ 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