+ Reply to Thread
Results 1 to 4 of 4

Is it possible to have a Variable within a Formula

  1. #1
    Forum Contributor
    Join Date
    10-29-2009
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    125

    Is it possible to have a Variable within a Formula

    Hi all,

    I am getting a syntax error and I am not sure where :-/ I thought perhaps, maybe, Variables not allowed?

    Having difficulty inserting a formula using VBA. My Range (Rng) always changes so using .End(xlDown)

    This is my code :-
    Please Login or Register  to view this content.
    Many thanks in advance or your help!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Is it possible to have a Variable within a Formula

    Try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Is it possible to have a Variable within a Formula

    Maybe this?

    Please Login or Register  to view this content.
    Martin

  4. #4
    Forum Contributor
    Join Date
    10-29-2009
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Is it possible to have a Variable within a Formula

    Thanks!

    Please may you tell me why this isn't working?
    Much appreciated

    Please Login or Register  to view this content.
    Thanks again and a very Happy New Year

+ 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. Changing column variable on a copied formula instead of row variable
    By dsw283 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2014, 04:13 PM
  2. Replies: 4
    Last Post: 07-12-2013, 12:14 PM
  3. formula max variable
    By ilkamalo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2009, 08:50 AM
  4. How to Use a Variable in a Formula
    By thundermocos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2007, 01:56 PM
  5. Replies: 1
    Last Post: 10-31-2006, 08:34 AM

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