+ Reply to Thread
Results 1 to 4 of 4

Text strings with sumif

  1. #1
    Registered User
    Join Date
    07-06-2009
    Location
    Cardiff
    MS-Off Ver
    Excel 2003
    Posts
    2

    Text strings with sumif

    Hi All,

    I have the below formula to help me extract information.

    I have a list of numbered customers that have letter after, the customers are in numerical order.

    The formula picks up training hours based on the first 5 numbers.

    I then have a broken gap and another list below which isn't numerical.

    I want it to say that if Left(E100,5) appears in any cell in a range
    i.e. E1:E1000 then return 0 else the sumif formula

    IF(LEFT(E49,5)=LEFT(E48,5),0,SUMIF('RBS Download'!$AH$4:$AH$8000,LEFT(SWL!E49,5)&"T",'RBS Download'!$P$4:$P$8000))


    Any help would be great.

    Thanks
    Martin

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Text strings with sumif

    maybe

    IF(LEFT(E49,5)=LEFT(E48,5),0,SUMPRODUCT(--('RBS Download'!$AH$4:$AH$8000=LEFT(SWL!E49,5)&"T"),'RBS Download'!$P$4:$P$8000))

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

    Re: Text strings with sumif

    Quote Originally Posted by martinjones23 View Post
    I want it to say that if Left(E100,5) appears in any cell in a range
    i.e. E1:E1000 then return 0 else the sumif formula
    Hello Martin, perhaps you can use COUNTIF for the first part, e.g.

    =IF(COUNTIF(E1:E1000,LEFT(E100,5))>0,0,SUMIF......

  4. #4
    Registered User
    Join Date
    07-06-2009
    Location
    Cardiff
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Re: Text strings with sumif

    Hi Daddy Long Legs,

    The only problem is that;

    "=IF(COUNTIF(E1:E1000,LEFT(E100,5))>0,0,SUMIF...... "

    I need the E1:E1000 to only take the first 5 number as the list is the same format i.e. E100 could have 12345AB where in E1:E1000 there could be another 12345CD

    So the first part needs to only consider 5 numbers.

    Everything I try is struggling with the two left requests any ideas.

    P.S Thanks for the replys

+ 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