+ Reply to Thread
Results 1 to 7 of 7

Pop-up message if value for sum of cells exceeds a predefined number - Multiple sums

  1. #1
    Registered User
    Join Date
    03-25-2015
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2013
    Posts
    43

    Pop-up message if value for sum of cells exceeds a predefined number - Multiple sums

    Hello,

    I have posted a couple of days ago the same question and @xladept helped me out with this VBA code. (Link to initial thread - https://www.excelforum.com/excel-pro...ed-number.html)

    The problem i am now facing is the fact that i would like to have the same code upgraded for the sum of multiple months, not just one.

    So we have the following information:

    - months sheet - columns E and F show the months for the sums (for example the sum for each row in the DATA sheet coresponding to month January to April should not exceed 105, for months Febraury to May should not exceed 105 and so on)

    - DATA sheet - for each name in the B column, the sum mentioned above will be calculated between the months that are in the H:NH columns.

    Below you can find the attached document along with the code from @xladept.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-25-2015
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2013
    Posts
    43

    Re: Pop-up message if value for sum of cells exceeds a predefined number - Multiple sums

    bump .... 123

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Pop-up message if value for sum of cells exceeds a predefined number - Multiple sums

    Well. I'm having trouble reconciling the fact that you have a four-month tally but are calling for a three month tally and there is no data planned for the next year
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    03-25-2015
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2013
    Posts
    43

    Re: Pop-up message if value for sum of cells exceeds a predefined number - Multiple sums

    Hello xladept.

    It is true, i have nothing planned for next year.

    The thing is that i will use the document for the next years by changing the dates from the DATA sheet.

    And you are correct regarding the months, i wrote them wrong. Changed the document please find attached.

    Although i don`t have anything planned for them 4 months in the 2019 year the sum from 1-Oct-18 to 31-Jan-18 should only be calculated between 1-Oct-18 to 31-Dec-18, the sum of 1-Nov-18 to 28-Feb-19 should only be calculated between 1-Nov-18 to 31-Dec-18 and so on.

    Thanks,
    -Alex
    Attached Files Attached Files

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Pop-up message if value for sum of cells exceeds a predefined number - Multiple sums

    Here's a routine for just those fields:

    Please Login or Register  to view this content.
    Last edited by xladept; 06-03-2018 at 07:28 PM.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Pop-up message if value for sum of cells exceeds a predefined number - Multiple sums

    @ xladept,

    Never knew you could count.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Pop-up message if value for sum of cells exceeds a predefined number - Multiple sums

    @ Winon - What makes you think I can count?

+ 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] Pop-up message if value for sum of cells exceeds a predefined number
    By dLhx in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-24-2018, 10:58 PM
  2. [SOLVED] Multiple Sums/Subtotal with changing number of cells between
    By woodrrow in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-11-2017, 07:52 PM
  3. [SOLVED] UDF for concatenate predefined number of cells
    By jessko in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-12-2016, 02:08 PM
  4. [SOLVED] Copy Rows To Predefined Sheet Based on Date Range Using Form or Message Box
    By Isacc in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 02-06-2013, 09:25 AM
  5. Display a message when a Cell value exceeds 75% of the total allowed expenditure
    By chamdan in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-15-2011, 12:38 AM
  6. message box if the sums of couple of cells dont equal with the sum of others cel
    By ss_bb_24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2008, 02:06 AM
  7. [SOLVED] multiple entries-sums to different cells
    By Jeff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 09:00 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