+ Reply to Thread
Results 1 to 8 of 8

How to calculate data by month.

  1. #1
    Registered User
    Join Date
    12-09-2020
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    13

    How to calculate data by month.

    Good morning,

    I once again seek the assistance of this forum (I swear you're not doing my job for me). Thanks to your help in completing my last project I am now looked upon as some sort of Excel guru...if only they knew the truth

    Please see the attached spreadsheet.

    Basically, several depots through the country receive regular deliveries of a product. Depending on usage they can get several deliveries of stock per month. What I am trying to achieve is when entering a delivery date and the amount of product delivered it shows a summarised version on another sheet.

    So Sheet 1 shows a list of dates and the volume of product delivered. Sheet 2 should just show Month (A2 to L2) and the total delivered in that month under the appropriate column. This data will be ever changing as more deliveries are made throughout the year.

    I tried using the IFS command as it worked previously for me but there was less data to work with that time and therefore less confusing.

    My thanks in advance for any assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,598

    Re: How to calculate data by month.

    Hi
    why not use a simple Pivot Table ?
    I changed your data layout a bit and added a PT on sheet2
    (I made your data an Excel Table
    Attached Files Attached Files

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,186

    Re: How to calculate data by month.

    I've converted the month names to proper dates with custom formatting (first of the month with "mmm" as the format), then used this:

    =SUMIFS(Sheet1!$B$3:$B$10,Sheet1!$A$3:$A$10,">="&A$2,Sheet1!$A$3:$A$10,"<"&EDATE(A$2,1))

    I swear you're not doing my job for me
    As long as you can explain it all to the powers that be ...

    Administrative Note:

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    12-09-2020
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    13

    Re: How to calculate data by month.

    Thank you Pepe and AliGW.

    I couldn't get your attachment to download AliGW, but I got the jist of your comment and formula and got it working.

    Thanks you very much :D

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,598

    Re: How to calculate data by month.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,186

    Re: How to calculate data by month.

    I couldn't get your attachment to download AliGW
    Weird - that's NEVER happened before. Something at your end, I'm afraid. It was just your own workbook with my solution applied.

    Please follow Pepe's instructions to mark the thread as solved, etc. Thanks.

  7. #7
    Registered User
    Join Date
    12-09-2020
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    13

    Re: How to calculate data by month.

    Not solved yet

    Please see the attached spreadsheet.

    Apparently manually entering the info is too much of a task for some

    As you can see I had a go using the IFS instruction again. The information on the Delivery tab will be copied and pasted from a report, it will follow the same layout every time. What I was hoping would happen was that the information in the Summary tab would auto-populate so that it would show the total value of the product under each period (1 - 12) respectively. I have the IFS formula working fine on a very similar spreadsheet and assumed that changing the formula to match the new sheet names would be a doddle. More fool me.

    Again, any help is much appreciated.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-09-2020
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    13

    Re: How to calculate data by month.

    Forget that last post. About 30 seconds after posting i realised the error of my formula.

    Consider it solved

+ 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. Replies: 1
    Last Post: 04-25-2021, 05:50 AM
  2. [SOLVED] Trying to create formula to calculate spend per week from a month of data.
    By bosy9989 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-16-2020, 06:54 AM
  3. Help to calculate values depending of month data
    By MariaSeabra in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-31-2017, 04:38 AM
  4. Calculate data from selected month only
    By hugokan in forum Excel General
    Replies: 3
    Last Post: 08-04-2015, 08:30 AM
  5. [SOLVED] how to write a macro coding to calculate data from the last month data??
    By mastercl90 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-21-2014, 06:39 AM
  6. [SOLVED] Monthly Data, but calculate something every third month?
    By ps65 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2013, 08:38 AM
  7. Replies: 2
    Last Post: 06-16-2012, 02:38 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