+ Reply to Thread
Results 1 to 6 of 6

Formula not working

  1. #1
    Registered User
    Join Date
    08-17-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007
    Posts
    61

    Thumbs up Formula not working

    I'm using the below to code to insert a formula in cell E1, what am i doing wrong here, please help

    Please Login or Register  to view this content.
    Last edited by raghunaik; 09-02-2009 at 10:55 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula not working

    Not an ideal thread title but...

    when using " in literal sense in VBA you must double-up, ie:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Formula not working

    Why are you referencing the entire column?
    VLOOKUP(E2,Roles!$B:$C,2,FALSE)

    Excel 2007 has more than 1-million rows. It would be much more efficient to use a dynamic named range in the formula. The dynamic named range will expand down the column to account for new data.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula not working

    That's an interesting one ... I agree in principle but wonder if given the fact VLOOKUP is in general a pretty efficient function limiting the range would make that great deal of difference (less so if used in TRUE mode and/or used range is small (ie limited recalc impact)) ... also it's worth remembering that named ranges can also impact performance if over used given they are evaluated when called (see: http://www.decisionmodels.com/calcsecretsb.htm)

    My own interpretation based on my own (very) limited knowledge on this subject is that DNR's are especially useful when using very expensive formulae like CSE Arrays / Sumproduct and poss also when using the likes of INDEX and LOOKUP(2,1/(Boolean)) functions given these are also I'm led to believe quite slow... for most formulae I wouldn't use DNR's... there's also the age-old debate whether DNR's are good bad in general... I don't like them as I find it actually makes auditing more difficult but plenty have the complete opposite opinion to me - no change there then

  5. #5
    Registered User
    Join Date
    08-17-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007
    Posts
    61

    Thumbs up Re: Formula not working

    thanks for all the replies, formula is working for me now
    i think i should have used a better title.

    thanks
    ~Raghu

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula not working

    i think i should have used a better title.
    Yes, you should. That's your one free bad title.
    Entia non sunt multiplicanda sine necessitate

+ 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