+ Reply to Thread
Results 1 to 3 of 3

Multi text string single cells how do sumifs

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Multi text string single cells how do sumifs

    Hi Excel Forum.

    Sheet:1:Sample Data:

    A B C D

    Code Date Amount Type
    3100 29/05/2015 1,570.44 351
    3100 29/05/2015 1,945.42 351
    3100 29/05/2015 758.57 351
    3100 29/05/2015 215.4 351
    3100 29/05/2015 787.93 351
    3100 29/05/2015 83.22 351
    3100 29/05/2015 63,096.91 351
    3190 04/05/2015 59.33 351
    3190 04/05/2015 268.52 351
    3190 04/05/2015 53.05 351
    3190 04/05/2015 153.79 351
    3190 04/05/2015 2,066.32 351
    3190 05/05/2015 2,066.32 351
    3190 19/05/2015 41.4 351
    3190 28/05/2015 347.89 351
    3700 23/05/2015 5,466.82 351
    3700 28/05/2015 1,613.87 351
    3700 28/05/2015 4,302.05 351
    4200 02/05/2015 23,904.52 351
    4200 02/05/2015 11,305.39 351
    4200 02/05/2015 5,247.90 351
    4200 02/05/2015 628.03 351
    4200 02/05/2015 684.23 351
    4200 02/05/2015 4,469.13 351
    6500 04/05/2015 145.74 351
    6500 04/05/2015 22,896.22 351
    6500 04/05/2015 1,323.60 351
    6590 04/05/2015 54.06 351
    6590 04/05/2015 1,626.81 351
    6590 04/05/2015 934.47 351

    Sheet:2:Required Format:

    A B

    Code: May-15

    3100-3150-3190-3700 84,897.25

    4200 46,239.20

    6500-6590 26980.9

    D3=SUMIFS(Data!$C:$C,Data!$A:$A,'Req Format'!$A3,Data!$B:$B,">="&EOMONTH('Req Format'!$D$2,-1)+1,Data!$B:$B,"<="&EOMONTH('Req Format'!$D$2,0))

    Am trying to the following formula sumifs corresponding to the criteria range and month against return the value is perfect when sumifs criteria range one

    text string (4200) the same was am apply to another cells return the value is -.when sumifs criteria range multi text string in single cells(3100-3150-3190-

    3700)

    my query is How do sumifs ,multi text string in single cell if possible.please give me the solution.

    file attached.
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Multi text string single cells how do sumifs

    B3=SUMPRODUCT(ISNUMBER(SEARCH(Data!$A$2:$A$45875,$A3))*(Data!$C$2:$C$45875)*(TEXT(Data!$B$2:$B$45875,"MMYY")=TEXT(B$2,"MMYY")))
    Please Login or Register  to view this content.
    OR
    B3=SUMPRODUCT(SUMIFS(Data!$C:$C,Data!$A:$A,INDEX(TRIM(MID(SUBSTITUTE(A3,"-",REPT(" ",LEN(A3))),(ROW(INDIRECT("1:"&LEN(A3)-LEN(SUBSTITUTE(A3,"-",""))+1))-1)*LEN(A3)+1,LEN(A3))),0),Data!$B:$B,">="&EOMONTH('Req Format'!$D$2,-1)+1,Data!$B:$B,"<="&EOMONTH('Req Format'!$D$2,0)))
    Please Login or Register  to view this content.
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Multi text string single cells how do sumifs

    Siva Sir you are amazing and Excellent.both of formulas working is perfect and main thick your second formula was miracle.

+ 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] Sumifs range between multiple text string .
    By Vandini.S in forum Excel General
    Replies: 3
    Last Post: 08-20-2015, 02:25 AM
  2. Sumifs criteria between multiple range in single cells
    By silambarasan.J in forum Excel General
    Replies: 3
    Last Post: 08-18-2015, 05:57 AM
  3. [SOLVED] Sumifs with OR operator text string search in single cell...
    By alphabetboi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2014, 07:26 PM
  4. SUMIFS for Multi set of colums & multi criteria
    By Harish Kumar M in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2014, 10:11 PM
  5. Replies: 19
    Last Post: 10-05-2012, 01:03 PM
  6. From Multi-line to single cells
    By george2064 in forum Excel General
    Replies: 1
    Last Post: 04-20-2011, 12:50 PM
  7. Putting single unit into multi cells
    By landlord in forum Excel General
    Replies: 4
    Last Post: 08-25-2010, 10:50 AM

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