+ Reply to Thread
Results 1 to 7 of 7

collecting rows into an array for fasten up array formulas, is it possible?

  1. #1
    Registered User
    Join Date
    12-30-2008
    Location
    Hungary
    MS-Off Ver
    Excel 2003
    Posts
    4

    collecting rows into an array for fasten up array formulas, is it possible?

    Hi all,

    I have a table with 250 rows and columns A-AD. Each row has different types of information about a "bank paper". The table must be unsorted due to several reasons. I have to summarize/count the papers type by type. For example coloumn AD has the information if the paper's type is "NEW" or "DELETED". Also AC has the information if it is paper "Type 1" or paper "Type 2" etc.

    I have to do many counts like this: count how many NEW, Type 1 paper exist in the table. I do this with array formulas since there are many aspects I should "filter", but it is too slow.

    My question is: is it possible to collect the correct rows, for example all "NEW" rows into an array somehow? I want this to fasten up the search, since now the array formulas for finding NEW & Type 1 and NEW & Type 2 searches two times for NEW, what would not be necessary if I could collect all NEW rows somehow into someting like an "array-cell".

    (I tried to do it with OFFSET, MATCH, INDIRECT and Ctrl-Shift-Enter with no luck, also thought about INDEX but I think these formulas are not for this.)

    I have Excel 2003 (and two days ).

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board

    Have you had a look at Pivot Tables?

  3. #3
    Registered User
    Join Date
    12-30-2008
    Location
    Hungary
    MS-Off Ver
    Excel 2003
    Posts
    4
    Hi and thank you!

    To be honest, I am not too familiar with Pivot Tables. However, I tried to use them, but I chosed not to use them becouse it is not guaranteed that the data source's size is constant.

    I also cannot use a named range, becouse I have to create a template, and the user will create worksheets from the template by copying them and renaming it corresponding to the current month. (I do not know how can I create a dynamic named range what also renames itself, without VB code, what I was told not to use.)

    But since I am not into Pivot Tables, I am unsure if I am missing the easier way here. I also have to create datas for the whole year from the individual worksheets. (This is now done by copying the final data with formulas.)

  4. #4
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Great link on pivot tables here:

    http://peltiertech.com/Excel/Pivots/pivottables.htm

    The dynamic named range would exist on the data sheet only so I don't see a problem with using one for the Pivot Table data source. Since you are using xl2003 you might also consider setting the data source as a List (which will expand and contract as data is added).

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  5. #5
    Registered User
    Join Date
    12-30-2008
    Location
    Hungary
    MS-Off Ver
    Excel 2003
    Posts
    4
    Thank you for your help, I will give it a try then!

    For my personal interest, is there such a thing what I tried to use originally?

  6. #6
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    I don't think so I'm afraid - you will always end up evaluating the NEW rows at least twice if you want counts of Type1 and Type2 in separate cells if you use formulas.

  7. #7
    Registered User
    Join Date
    12-30-2008
    Location
    Hungary
    MS-Off Ver
    Excel 2003
    Posts
    4
    Thank you very much for help and information! If that's the case, then I think this thread could be considered as solved with the general solution that one should use Pivot Tables with list as data source. (I don't know how to make a Thread "Solved", so I hope that this is not my duty. )
    Last edited by naxa; 12-30-2008 at 06:55 AM.

+ 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