+ Reply to Thread
Results 1 to 12 of 12

Excel for Mac giving me #VALUE! for everything

  1. #1
    Registered User
    Join Date
    06-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    5

    Excel for Mac giving me #VALUE! for everything

    Hi guys,

    I have a spreadsheet that was originally made for PC's (I'm assuming) and I'm trying to use it on a Mac. Thing is, the sheet uses a custom function and some of the formulas are kind of complicated. I've attached the worksheet below.

    Two examples are:

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    Could it be that the formulas are supposed to be written differently on a Mac vs. a PC? If so, could someone point me in the right direction? If these are written incorrectly, how would I change them to make them valid for Excel on Mac?

    Thank you,

    Brandon
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,438

    Re: Excel for Mac giving me #VALUE! for everything

    I don't know anything about Excel on a MAC but the spreadsheet you have provided has no VBA code in it, hence no custom function ... hence NAME and VALUE errors.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    5

    Re: Excel for Mac giving me #VALUE! for everything

    Quote Originally Posted by TMShucks View Post
    I don't know anything about Excel on a MAC but the spreadsheet you have provided has no VBA code in it, hence no custom function ... hence NAME and VALUE errors.

    Regards
    Well, that was just one sheet of the original file. I've attached the original file this time. Note that it requires Credentials on the second sheet, which are not provided. But even when I enter the correct credentials, I get the same error. I'm pretty sure it's something to do with the way the formulas are written, and how they differ on a Mac vs. a PC. I just don't know how to correctly write them for Macs.
    Attached Files Attached Files

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

    Re: Excel for Mac giving me #VALUE! for everything

    its the code the formula bit works fine if you type something in that it can find
    put
    y"us"ah,oo.com
    in b10 and c10 returns "h"
    "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

  5. #5
    Registered User
    Join Date
    06-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    5

    Re: Excel for Mac giving me #VALUE! for everything

    Quote Originally Posted by martindwilson View Post
    its the code the formula bit works fine if you type something in that it can find
    put
    y"us"ah,oo.com
    in b10 and c10 returns "h"
    I don't understand your suggestion. I need to check for the site "yahoo.com." Why can't I just enter yahoo.com normally in A10?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,438

    Re: Excel for Mac giving me #VALUE! for everything

    I think what Martin is explaining is that the formula is fine. You are getting #VALUE! errors because the UDF has not been executed, hence the formula is not finding what it is looking for in the cell (B10, etc). If you put in something that "looks like" the output from the UDF, then the formula extracts what it wants, whether that's "us" or whatever.

    My understanding is that not all versions of Excel for MAC support macros so it may be that you cannot use this workbook on your MAC

  7. #7
    Registered User
    Join Date
    06-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    5

    Re: Excel for Mac giving me #VALUE! for everything

    Quote Originally Posted by TMShucks View Post
    I think what Martin is explaining is that the formula is fine. You are getting #VALUE! errors because the UDF has not been executed, hence the formula is not finding what it is looking for in the cell (B10, etc). If you put in something that "looks like" the output from the UDF, then the formula extracts what it wants, whether that's "us" or whatever.

    My understanding is that not all versions of Excel for MAC support macros so it may be that you cannot use this workbook on your MAC
    Well, when I open the file, Excel asks me whether I want to enable macros and I select Yes. I'm assuming that means my version of Excel is compatible with macros.

    And the only input the user is supposed to enter is the URLs in column A. There should be no tinkering with column B. I just don't know why the URLs aren't triggering a response in column B.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,438

    Re: Excel for Mac giving me #VALUE! for everything

    Have you input the credentials on the Credentials sheet?

    *After entering credentials, Press Ctrl+Alt+F9 to refresh all formulas.
    Regards

  9. #9
    Registered User
    Join Date
    06-12-2011
    Location
    New York
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    5

    Re: Excel for Mac giving me #VALUE! for everything

    Quote Originally Posted by TMShucks View Post
    Have you input the credentials on the Credentials sheet?



    Regards
    Yes.

    I'm almost positive the problem is either with this code:

    Please Login or Register  to view this content.
    Or that Excel isn't properly reading the VBA code.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,438

    Re: Excel for Mac giving me #VALUE! for everything

    What value is displayed in cells B10 down?

    For me, it is:

    "unauthorized", no quotes from executing the formula/function:

    =GetURLmetrics(A10,TRUE)


    in the VBA, this is from:

    Please Login or Register  to view this content.

    The cells C10, D10, etc., all show #VALUE! because the value in cell B10 does not have "us", "pda", etc., in it.

    I don't have SEOMoz credentials to test this any further.

    The macro/function appears to be working on Windows 7 / Excel 2007 as it *is* returning the word "unauthorized".


    Regards

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

    Re: Excel for Mac giving me #VALUE! for everything

    same here i get unauthorised, but also have a problem with the
    Please Login or Register  to view this content.
    i have to rem those out just to get to unauthorised if i try to extend the formula down
    Last edited by martindwilson; 06-13-2011 at 05:24 PM.

  12. #12
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Excel for Mac giving me #VALUE! for everything

    The CreateObject code won't work on a Mac, so I think you are out of luck.
    Remember what the dormouse said
    Feed your head

+ 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