+ Reply to Thread
Results 1 to 4 of 4

have an array start with a variable

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    Grafton
    MS-Off Ver
    Excel 2010
    Posts
    2

    have an array start with a variable

    im trying to have an array start with a variable that i have already found in an ajacent cell so instead of going F:F go F(G5):F. (G5) Being the cell containing the variable.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: have an array start with a variable

    you can do that with indirect, something like this

    =SUM(INDIRECT("F1:F"&G5))
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    04-03-2012
    Location
    Grafton
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: have an array start with a variable

    Thank you for the quick responce but i can't seem to reverse it i need it to start at F(G5) not end at it i'm sure it's something simple but can't see it

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: have an array start with a variable

    Then perhaps...

    =SUM(INDIRECT("F"&G5&":F100"))

    If the last row is variable as well, replace it too.

    =SUM(INDIRECT("F"&G5&":F"&G6))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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