+ Reply to Thread
Results 1 to 6 of 6

EOMONTH Nightmare

  1. #1
    Registered User
    Join Date
    04-01-2021
    Location
    Johannesburg, South Africa
    MS-Off Ver
    365
    Posts
    3

    EOMONTH Nightmare

    Hi All,

    I'm having an issue with the EOMONTH function in a financial model that I've built, and I don't know what I've done wrongly.

    Summary:
    • There is a Summary Tab that contains the bulk of the variable inputs for the model. One of these is the "Start Date" for a cashflow
    • That start date is a general short date format (for example, 30/05/2021)
    • For clarity, let's say that this cell is "Summary Tab C13"
    • In the cashflow tab, I have my first month ("Month 1", let's say that's Cell "C1") is a direct reference to the "Start Date" cell in the summary tab
    • For clarity: In the Cashflow Tab Cell C1 contains "=Summary Tab C13". This references fine, and so the date under "Month 1"/in "Cell C1" reads "30/05/2021"

    The trouble that I am having is that the cashflow is a 10-year cashflow and various other elements of the model refer to specific dates in the cashflow over a 120-month period. For example, the "HLOOKUP" function is used that pulls from the dates. I therefore need the dates to pull through on a monthly basis for 120 months. The way I usually do that is to use the "EOMONTH" function. For example, "=EOMONTH(Start Date;1). This takes the previous month and then adds 1 month onto it. This enables me to be able to change dates in the model dynamically from the Summary Tab. I can change the "Start Date" and then all of the dates in the spreadsheet amend themselves based upon that.

    This usually pulls through fine, and it was pulling through fine in this model. However, I have gone into the summary tab and changed the "Start Date" and now all of my "EOMONTH" functions just say "Value!".

    For example:
    • "Cashflow Tab Cell C1" (="Summary Tab C13") and reflects the correct date: 30/05/2021
    • "Cashflow Tab D1" (=EOMONTH(C1;1) and when I press enter it says "Value!"

    I have checked the date formatting, ensuring that that all matches up, etc, but it still won't work.

    I would love it if someone out there on the Excel Forum could come to my aid and help a frustrated analyst before he either:

    1) get's fired for not delivering the model on time; or
    2) throws his computer out of the window and runs into the wilderness for a life of more simplicity.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: EOMONTH Nightmare

    Attach a sample workbook (not image).so that we do not have to manually key in your data to do any testing.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: EOMONTH Nightmare

    What is the actual formula that you have in C1? The one that you quote as your example is not syntactically correct to return the value from that cell, and with you showing quotes then it would just return the string.

    If you are getting a #VALUE error, then you probably have a text value that just looks like a date.

    Hope this helps.

    Pete

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: EOMONTH Nightmare

    In the cashflow tab, I have my first month ("Month 1", let's say that's Cell "C1") is a direct reference to the "Start Date" cell in the summary tab
    The two red parts are confusing me.
    Was it text string "Month 1" or a formula = 'Sumary Tab'!C3?
    If text, i cause #VALUE if any EOMONTH function refer to it
    In attachment, sheet Cashflow, is isllutration of text and formula scenarios
    Sheet Cashflow sample is my suggestion for a standard cashflow format.

    Best wishes to your chair and your computer ! )
    Attached Files Attached Files
    Quang PT

  5. #5
    Registered User
    Join Date
    04-01-2021
    Location
    Johannesburg, South Africa
    MS-Off Ver
    365
    Posts
    3

    Re: EOMONTH Nightmare

    Hi All,

    I apologise for not responding to any of the messages on my thread - as it turned out, there was a tiny issue embedded in one of the EOMONTH functions in part of the model, which threw everything off.

    As it turns out, it's often helpful to go to bed and then look at it again in the morning with fresh eyes!

    Thanks for all the help and suggestions - some of it was very useful in me tracking down the culprit!

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

    Re: EOMONTH Nightmare

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. CSV File Nightmare
    By tazmiffy in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-03-2013, 04:45 PM
  2. [SOLVED] Vlookup nightmare!
    By Sph01 in forum Excel General
    Replies: 6
    Last Post: 06-20-2012, 12:17 PM
  3. equation nightmare
    By percentache in forum Excel General
    Replies: 1
    Last Post: 09-14-2009, 03:22 PM
  4. Vba nightmare
    By JAMES BROADBENT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2008, 10:22 AM
  5. Charting Nightmare!!!!
    By gazzafm in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-21-2008, 08:43 AM
  6. Macro Nightmare (for me anyway!!!)
    By jsb1976 in forum ExcelTip.com Feedback / Comments / Suggestions
    Replies: 19
    Last Post: 10-20-2008, 04:00 PM
  7. !! this is a nightmare need help
    By khalid79m in forum Excel General
    Replies: 3
    Last Post: 12-21-2006, 12:31 PM

Tags for this Thread

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