+ Reply to Thread
Results 1 to 5 of 5

Thread: how should i combine named formulas with a macro

  1. #1
    Valued Forum Contributor GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2007/2010/2011
    Posts
    310

    Red face how should i combine named formulas with a macro

    Hello fellow lovers of excel, attached file is supposed to do the following:

    THe macro AddReport:
    --creates new sheet for report (works)
    --initialize data on new sheet (works)
    --create a new named formula for the data on the page (works)
    --updates a cummulative named formula to combine all the ranges togeter (nope, don't work)

    I'm just not sure how to combine named ranges (formulas). I have 2 tables in the attachment and want the named formula for CUmmTable to be the "combined table" from Ptable1 and Ptable2

    By combined i mean i want all the rows treated as if they were part of one table.

    How do you combine 2 tables defined similar to this: =$A$2:INDEX($1:$1048576,counta($A:$A),counta($1:$1))

    Thank you
    Attached Files Attached Files
    Last edited by GeneralDisarray; 01-26-2012 at 02:22 PM. Reason: forgot attachment
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  2. #2
    Valued Forum Contributor GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2007/2010/2011
    Posts
    310

    Re: how should i combine named formulas with a macro

    >>bump bump bump<<
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Valued Forum Contributor GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2007/2010/2011
    Posts
    310

    Re: how should i combine named formulas with a macro

    >>hello again<<
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Guru
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    5,359

    Re: how should i combine named formulas with a macro

    Hi

    so what output are you expecting to see? The sum of the 2 values? Or a matrix of all the specific types?

    rylo

  5. #5
    Valued Forum Contributor GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2007/2010/2011
    Posts
    310

    Re: how should i combine named formulas with a macro

    To get a feel for what I want assume one named formula (PTable1) represents 3 rows of data and another named formula represents 2 rows of data. I'm looking for a way to combine them to a table with 5 rows of data.


    PTable1
    A B C
    E F G
    H I J

    PTable2
    1 2 3
    4 5 6

    Ptable1 "+" Ptable2

    A B C
    E F G
    H I J
    1 2 3
    4 5 6

    -------

    Example attached.


    --------

    Usually i macro summaries and I'm just playing with the idea of collecting together named ranges to somehow to allow a summary table to auto-update w/o the need for a macro.
    Attached Files Attached Files
    Last edited by GeneralDisarray; 01-27-2012 at 07:14 AM. Reason: further explanation
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

+ 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.2.0