Need help to solve this with a formula for drag and drop

dupp

New Member
Joined
Jan 1, 2025
Messages
4
Office Version
  1. 2019
Platform
  1. MacOS
Hey there guys, need some help with a formula.

Column A has a total of Column B, C, D and E.

Column B = Column F, Column C = Column G, Column D = Column H, Column E = Column I.

Everytime in a new row, Column B, C, D or E will get +1, there is always two changes every row.

If there is a change in for example in Column I, then Column E gets +1

Column I = +10 (always positive)

Column H = +20(max negative -50, max positive 10), if Column I gets +10, Column H will get -50

Column G = +30(max negative -100, max positive 20), if Column H gets +20, Column G will get -100

Column F = +40(max negative -150, max positive 30), if Column G gets +30, Column F will get -150

It should always start checking Column I first, if adding +10 to Column I, then it needs to check Column H previous row, if previous row is for example -20 then adding another -50, it ends at -70, will go over the maximum negative, example for maximum positive is starting from 30 adding -50, it ends at 20, it goes over the maximum, so Column I will not add +10 and neither +1 to Column E. Doing the same for Column H, G and F. Add +20 to Column H means -100 to Column G.

I need a formula to check everytime if it went over the maximum, for example column H -60 and 20 is over maximum, so it will not add anything, starting from Column I, working from right to left, if so go to the next column and then add the rest of the Columns accordingly.

Column A stopped at a total of 2187, i want to drag and drop to go further with all the Columns.

See spreadsheet here:

https://docs.google.com/spreadsheets/d/1CknLQyH-pG6ZmCOB2VLvEdHk8IuYmVvDS4Nuu0TAVKs/edit?usp=sharing
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi dupp,

Could you give access to your sheet to everybody in order to help you.

Thanks,

Vincent
 
Upvote 0

Forum statistics

Threads
1,225,294
Messages
6,184,118
Members
453,214
Latest member
map_ninja

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