Break up Total Calculation - VBA

GGnore1990

New Member
Joined
Sep 19, 2022
Messages
1
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Hi everyone. I'm a noob excel user seeking a solution for my cost calculation file.

Basically, I have 4 sheets (A, B, C, D).
- The sheet D is used to contain the copied data exported from other software.
- Sheets B and C contain formulas (using SUMIFs) to calculate cost from the data of sheet D.
- Sheet A is the total cost, based on the results of sheets B, C.

Sometimes I have to provide break-up costs for different sections based on customer requirements. I just think of an idea: adding a blank row after each section in sheet D, but I got stuck since I have no idea how SUMIFS could work with the row numbers criteria (I wrote a formula to determine the row range for each section). Could anyone provide any idea for this problem, since I have >100 cells using SUMIFS atm? Would be much appreciated if we can have a VBA solution to determine/calculate/record results for each section.

Thank you so much for reading, please have a nice day :)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Welcome to the Board!

In cases like this, it is often best if you can show us examples of your data structure in each section, and your desired results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top