+ Reply to Thread
Results 1 to 8 of 8

Use TEXT function as Criteria on Sumifs to convert month/year to date format

  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    29

    Thumbs up Use TEXT function as Criteria on Sumifs to convert month/year to date format

    Hi,

    How can i combine a TEXT function (or any function) to work with SumIfs, i have
    tried to use ampersand (&) symbol to combine two cells but its not working..

    I want to sum all quantity in another sheet based on 2 criteria (product name) and
    date (i used data validation) w/ text (Month & Year).


    Please help...thanks for looking..


    Chico.
    Attached Files Attached Files
    Last edited by chico.corrales; 11-08-2012 at 06:01 PM. Reason: SOLVED

  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
    52,933

    Re: Use TEXT function as Criteria on Sumifs to convert month/year to date format

    see if the attached gives you what you want?

    I added a helper column on sheet2 column E, and another 1 on sheet3 for the month number
    Attached Files Attached Files
    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
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Use TEXT function as Criteria on Sumifs to convert month/year to date format

    This formula doesn't required any helper column(s), or helper worksheet.

    In C3: =SUMIFS(DataEntry!C$3:C$63, DataEntry!B$3:B$63, A3,DataEntry!D$3:D$63,">="&--(C$1&D$1),DataEntry!D$3:D$63,"<="&--(C$1&" 31, "&D$1))

  4. #4
    Registered User
    Join Date
    11-06-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Use TEXT function as Criteria on Sumifs to convert month/year to date format

    Hi,

    Thanks, but i tried this one it returns zero (0) on C3 value.


    Thanks.

  5. #5
    Registered User
    Join Date
    11-06-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Use TEXT function as Criteria on Sumifs to convert month/year to date format

    Thanks FDibbins,

    it worked !!!
    Chico

  6. #6
    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
    52,933

    Re: Use TEXT function as Criteria on Sumifs to convert month/year to date format

    happy to help, and thanks for the rep

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Use TEXT function as Criteria on Sumifs to convert month/year to date format

    You could use EOMONTH in teethless mama's SUMIFS formula,

    =SUMIFS(DataEntry!C:C,DataEntry!B:B,A3,DataEntry!D:D,">="&C$1&D$1,DataEntry!D:D,"<="&EOMONTH(C$1&D$1,0))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  8. #8
    Registered User
    Join Date
    11-06-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Use TEXT function as Criteria on Sumifs to convert month/year to date format

    Marhaba Haseeb,

    It works !!! thanks also..

+ 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