+ Reply to Thread
Results 1 to 4 of 4

formula vs vba

  1. #1
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    formula vs vba

    This formula works, but I cant get the VBA to work. What am I doing wrong?


    =INDEX(Store!EM17:EY100000,MATCH("01 Total"&"Contracted",INDEX(Store!EP17:EP100000&Store!EN17:EN100000,0),0),MATCH("Moves Out",Store!EM17:EY17,0))


    Please Login or Register  to view this content.

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

    Re: formula vs vba

    You can't concatenate ranges like that in VBA. It would be simpler to just populate the cell with the formula - you can always convert it to a static value afterwards.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: formula vs vba

    Thanks for the response. Is there anyway to do it with out populating the formula?

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

    Re: formula vs vba

    You could use Evaluate and pass your original formula string to it, but I don't really see any benefit.

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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