+ Reply to Thread
Results 1 to 3 of 3

Syntax error

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    87

    Syntax error

    I have the following code for a monthly report, which works as intended:

    Please Login or Register  to view this content.
    $C$3 represents the month of the report, in text form (January, February, etc.). I would like to add another column with data from the month prior. So, if $C$3 is February, I want the match lookup_value in the new string to be January. The following formula returns 'January' if the value in C3 is February:
    Please Login or Register  to view this content.
    I've tried inserting this formula in the following code:

    Please Login or Register  to view this content.
    However, I'm now getting a syntax error. I'm thinking that it has to do with the quotations around "mmmm", but I'm not entirely certain. If this is the problem, how do I work around this? Any other ideas?

    Thanks.

    Adam
    Last edited by hektisk; 04-06-2011 at 10:00 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Resolving a syntax error

    try ""mmmm""
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-13-2011
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Resolving a syntax error

    How wonderfully simple of a solution. Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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