Forum Discussion

sbast22's avatar
sbast22
Copper Contributor
Sep 30, 2021

using VBA to copy formulas down as well as across and keeping the ranges variable.

Hello, I've got a large workbook of projects and several lines of funding for each project. at the base of each chunk of said project's funding there is a sum total. I'm wondering if it's possible to then drag each of those sum total formulas across the 3 columns to the right so that right next to the funding totals I can also total up some other datapoints. each project has different amounts of funding lines and so I need the formula to be smart enough to detect the sum totals to drag across and to apply this down the entire sheet of data. Is this possible and how can I achieve this?
Thank you in advance for all your help!

6 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    sbast22 I may not have a clear picture in my mind of what you are dealing with, but is seems unwise to maintain a large list of funding information and then insert totals by project in the same list. Better to summarise the "funding data base" in a pivot table.

    • sbast22's avatar
      sbast22
      Copper Contributor
      let's say that the totals to the right of each funding line is what's being billed against said project for billing period 1 ... then billing period 2 and so on. If I cannot figure out a way to sum across using vba then i have to manually do it to learn for each new billing period what the total billed will be. then verify that against my invoice.
      • Riny_van_Eekelen's avatar
        Riny_van_Eekelen
        Platinum Contributor

        sbast22 Can you upload a file with some made-up data for three or four projects and visualise what you want to achieve.

Resources