Results 1 to 9 of 9

Setting up a dynamically generated range reference

Threaded View

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Varna, Bulgaria
    MS-Off Ver
    Excel 2007
    Posts
    7

    Setting up a dynamically generated range reference

    Hi everyone,


    I am trying to adjust a dynamically generated range reference formula to integrate later in a SUMIF function.

    INDIRECT(CONCATENATE("AG","6:","AM","6"), where

    *"AG" & "AM" are dynamically generated column references and
    6 is a static row number that I want to make dynamic as well by replacing it with ROW() function as follows:

    INDIRECT(CONCATENATE("AG","6:","AM",ROW())

    The problem comes with the first number (6). It gives an error when trying to replace it with the ROW() function. Removing the quotes around it also doesn't help as it seems to break the consistency of the formula and it can't work without it.

    The thing is that I want to copy the SUMIF formula down and the row number to change according to the Row where the cell is situated.

    Row6: SUMIF($AG$5:$AM$5,"ITF",INDIRECT(CONCATENATE("AG","6:","AM","6")))
    Row7: SUMIF($AG$5:$AM$5,"ITF",INDIRECT(CONCATENATE("AG","7:","AM","7")))
    Row8: SUMIF($AG$5:$AM$5,"ITF",INDIRECT(CONCATENATE("AG","8:","AM","8")))

    Copy paste doesn't work, so I am looking for a workaround solution to make the static row number dynamic.
    Any suggestions outside the VBA functions will be appreciated. Maybe an alternative formula?

    Thanks,

    Cvetan
    Last edited by cveetan; 03-01-2012 at 12:48 PM.

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