+ Reply to Thread
Results 1 to 2 of 2

Using variables in formulas/ranges

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    SLC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Using variables in formulas/ranges

    Note: I am pretty new to this, so forgive my mistakes.

    I have a worksheet that changes every month. New rows are added or subtracted, so I need to use variables to select ranges.

    I have been trying to use variables to select a certain range in another worksheet so I can use it in another worksheet. The code is below. I am getting errors at these two spots:

    Please Login or Register  to view this content.
    Any help is appreciated.

    Please Login or Register  to view this content.
    Last edited by lfmaykot; 05-21-2013 at 02:47 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Using variables in formulas/ranges

    aren't you going to want this to be dynamic so you can make it work for jan, feb...dec? or do you only want to sum net incom (loss) for january?

    it is best to post a sample workbook, but take out any sensitive info and replace it with dummy data, hit the go advanced button and click the paperclip to attach a file

    try something like the following which asks the user to input the month to be summed with an input box, then uses the search function to search for the appropriate month and sums the Net Income (Loss)

    here's a copy of the workbook with the macro and a form button to run it NIL example.xlsm

    HTML Code: 
    Last edited by scott.s.fower; 05-21-2013 at 06:54 PM.

+ 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