Hi all,
I’m looking to automate a totals column for my spreadsheet and need a little guidance. I’m trying to get a cell at the far right of the sheet to provide a total of the cells within that row until a set criteria is met, the cell in the next column then needs to calculate the total until the criteria is met again and so on.
An image of what I’m trying to explain is below: (I have changed the information/style for confidential reasons)
Picture1.png
The highlighted columns are where I need the calculations to take place.
The criteria is based on the comments for each build with calculations being made for builds if a possible 5 comments are present (in this example Cracked 1, cracked 2, cracked 3, cracked 4 and cracked 5).
The first product (ABC for this example) has ‘Cracked 2’ on the 2nd build, so the 1st and 2nd build hours need to be added together in ‘Total 1’ column (for this example it totals 195 hours).
The ‘total 2’ column then needs to calculate the next hours until the criteria is met again. For ABC this is on the 3rd build and so the total hours in ‘Total 2’ is 100 hours.
Currently the calculation is manually changed when new data is entered, but as we increase our products it is harder to track any changes and would make the process easier.
I’m not sure if this will be better with formulas in the sheet or with vba? If anybody could help, it is greatly appreciated.
Please let me know if you need any further information.
Thank you
Bookmarks