+ Reply to Thread
Results 1 to 3 of 3

Macros for sumif and changing range

  1. #1
    csimont
    Guest

    Macros for sumif and changing range

    I hope someone out there can help!
    I want to write a macro that performs the sumif function on files in which
    the range changes from worksheet to worksheet. Each worksheet that contains a
    variable number of rows. At the end of the worksheet, I would like to have a
    macro to sumif column L through column Z (dependent on column A). One
    worksheet might have 15 rows and another might have 300 rows. The criteria in
    column A is text and column L through column Z is numerical : it is the
    number of rows that change.



  2. #2
    csimont
    Guest

    RE: Macros for sumif and changing range

    Can anyone help write the macro to accomplish this task?

    "csimont" wrote:

    > I hope someone out there can help!
    > I want to write a macro that performs the sumif function on files in which
    > the range changes from worksheet to worksheet. Each worksheet that contains a
    > variable number of rows. At the end of the worksheet, I would like to have a
    > macro to sumif column L through column Z (dependent on column A). One
    > worksheet might have 15 rows and another might have 300 rows. The criteria in
    > column A is text and column L through column Z is numerical : it is the
    > number of rows that change.
    >
    >


  3. #3
    Dave Peterson
    Guest

    Re: Macros for sumif and changing range

    Why not just use the whole column?

    And if you put the totals at the top (row 1), you can use row 2 to 65536.


    csimont wrote:
    >
    > I hope someone out there can help!
    > I want to write a macro that performs the sumif function on files in which
    > the range changes from worksheet to worksheet. Each worksheet that contains a
    > variable number of rows. At the end of the worksheet, I would like to have a
    > macro to sumif column L through column Z (dependent on column A). One
    > worksheet might have 15 rows and another might have 300 rows. The criteria in
    > column A is text and column L through column Z is numerical : it is the
    > number of rows that change.


    --

    Dave Peterson

+ 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