+ Reply to Thread
Results 1 to 5 of 5

MONTH function returning #REF error

  1. #1
    Forum Contributor
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    MS Office: Excel 365
    Posts
    163

    MONTH function returning #REF error

    Hi,

    In one of my files, the MONTH function is returning a #REF error.
    I've even tried simplifying it to '=MONTH(A1)' -- with A1 just being 1/1/2016 and still get the #REF
    (when I try it in a new workbook, i get the correct result (1), leading me to believe it's an issue w/ my original file

    Has anyone experienced this?

    Would be great if you could assist

    Thanks!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: MONTH function returning #REF error

    You'll get the #REF! error if you ever delete rows/columns that a formula references.

    Maybe this...

    =MONTH(INDIRECT("A1"))

    That formula will ALWAYS refer to cell A1.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    MS Office: Excel 365
    Posts
    163

    Re: MONTH function returning #REF error

    Quote Originally Posted by Tony Valko View Post
    You'll get the #REF! error if you ever delete rows/columns that a formula references.

    Maybe this...

    =MONTH(INDIRECT("A1"))

    That formula will ALWAYS refer to cell A1.
    no, that doesn't seem to be the issue (nothing ha been deleted, and the indirect didn't help)
    this is weird, i consider myself pretty well versed at excel, but i've never experienced this before

  4. #4
    Forum Contributor
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    MS Office: Excel 365
    Posts
    163

    Re: MONTH function returning #REF error

    Quote Originally Posted by Tony Valko View Post
    You'll get the #REF! error if you ever delete rows/columns that a formula references.

    Maybe this...

    =MONTH(INDIRECT("A1"))

    That formula will ALWAYS refer to cell A1.
    FOUND IT!
    I had a table w/ the name "MONTH" so when i was putting in the month function, Excel was assuming i was refering to the table, and since that syntax wouldn't make sense, i was getting an error
    Once I changed the name of the table to MONTH_TBL the issue was resolved

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: MONTH function returning #REF error

    Good deal. Thanks for the feedback!

+ 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] IF function returning a #value error
    By ids in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2014, 06:11 AM
  2. Do Until Function returning Sub or Function not defined error
    By Rokn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2013, 01:57 PM
  3. VBA Function Returning #VALUE! Error
    By GazB in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-23-2013, 04:16 PM
  4. Find Function returning error
    By duckboy1981 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2009, 09:59 AM
  5. Function returning error
    By duckboy1981 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-16-2009, 05:15 AM
  6. Mid function returning #value error
    By mrmag2000 in forum Excel General
    Replies: 4
    Last Post: 01-24-2008, 08:10 PM
  7. public function returning value error
    By quant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2007, 01:34 AM
  8. Custom function returning VALUE error
    By alex.k in forum Excel General
    Replies: 6
    Last Post: 09-26-2005, 11:05 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