+ Reply to Thread
Results 1 to 9 of 9

Beginner help: Add by cost centers

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    Vila Real, Portugal
    MS-Off Ver
    Excel 2016
    Posts
    17

    Question Beginner help: Add by cost centers

    Hey Everyone,
    I`m kinda beginner at Excel and I was looking from some guidance. I have a Excel sheet at my work that we put all the costs by cost centers like this:
    Sem_nome.png

    For now I would like to add the values with the same Cost Center of the same month (Add all my cost Center #1 Structure costs from January)

    Sorry for this terrible way of expressing myself

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Beginner help: Add by cost centers

    Assuming you have Cost Centre in A column Dates are in B column and Values are in C column, drop-down for month in F2 cell and cost drop-down in E2 cell then

    F2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    is result.



    Check the attached file.
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    03-12-2012
    Location
    Vila Real, Portugal
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Beginner help: Add by cost centers

    Quote Originally Posted by shukla.ankur281190 View Post
    Assuming you have Cost Centre in A column Dates are in B column and Values are in C column, drop-down for month in F2 cell and cost drop-down in E2 cell then

    F2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    is result.



    Check the attached file.

    I`m having some difficulties to link this formula to another sheet (Same file, different sheets) can you give me a example? Can the sheet name have spaces?

    Thank you for your help

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Beginner help: Add by cost centers

    There should be no issue in sheet name, when you select ranges in excel itself understood sheet name and yes sheet name can have spaces.


    If you are in trouble please attached your workbook with criteria explanation.

  5. #5
    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,050

    Re: Beginner help: Add by cost centers

    Use SUMIFS instead...
    =sumifs(F:F,C:C,1,A:A,">="&start-date, A:A,"<="&eomonth(start-date))
    where, based on your sample pic, your data starts in column A, and start-date is a cell containing the month you want, in the format mm/dd/yy or dd/mm/yy
    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

  6. #6
    Registered User
    Join Date
    03-12-2012
    Location
    Vila Real, Portugal
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Beginner help: Add by cost centers

    If I want to make this SUMIF in different sheet that the one I have the data, how can I make it?

    Thanks in advance

  7. #7
    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,050

    Re: Beginner help: Add by cost centers

    The exact same way as if the calc was on the same sheet. Just start on the other sheet, and use the mouse to reference the range on the other sheet

  8. #8
    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,050

    Re: Beginner help: Add by cost centers

    Thanks for the feedback

  9. #9
    Registered User
    Join Date
    03-12-2012
    Location
    Vila Real, Portugal
    MS-Off Ver
    Excel 2016
    Posts
    17

    Question Re: Beginner help: Add by cost centers

    So far I managed to understand how SumIf work, I got this formula and its workig.

    Please Login or Register  to view this content.
    Now, if I want to separate my values per month, how can I do it?

    My Data is like this:
    image.png

    How can I divide them by months?
    image.png


    Quote Originally Posted by FDibbins View Post
    Thanks for the feedback
    Quote Originally Posted by shukla.ankur281190 View Post
    There should be no issue in sheet name, when you select ranges in excel itself understood sheet name and yes sheet name can have spaces.


    If you are in trouble please attached your workbook with criteria explanation.
    Last edited by JoaoVr; 05-05-2017 at 04:07 AM.

+ 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] Validating cost centers
    By cathb23 in forum Excel General
    Replies: 2
    Last Post: 12-01-2014, 10:02 PM
  2. Code that Centers Cells - Protected Sheets
    By mariosmk555 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2014, 11:50 AM
  3. Trying to identify date overlaps among multiple centers
    By mtjeerds in forum Excel General
    Replies: 11
    Last Post: 04-21-2014, 06:46 PM
  4. How do I make a master cost sheet talk to all of my existing cost sheets?
    By JeremyGreiner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-24-2013, 09:50 PM
  5. Replies: 0
    Last Post: 12-27-2012, 05:42 AM
  6. Calculating total cost from range of cell tally's by cost of item.
    By patrickdjames in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 11-04-2012, 10:27 AM
  7. Cost Driver calculation - Looking for formula/macro to calculate manpower cost alloca
    By Swastik Banerje in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-30-2009, 11:18 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