I need a simple formula to add corresponding cell values between unmerged and merged cells

I’m making a chart to track how many resources I need to collect in order to enhance the armors in The Legend of Zelda: Tears of the Kingdom. However, I am completely stuck on automating the formula for calculating the total amount of each resource needed across all armor sets that have not yet been enhanced.

Legend of Zelda Tears of the Kingdom Armor Enhancement Chart

In the above linked image, we see the spreadsheet in question. Down the left side, we see ingredients listed. Along the right, we see each armor set at each level, and which armor slot has been enhanced in this set per each level. Enhancement starts at level 0 and maxes out at level 4. Armor comes in three slots: Head, torso, and legs. Note that not all armor sets have equipment for each slot. The row of X marks indicate whether a piece of armor has been enhanced to that level yet. For most armor sets, the same exact ingredients are required for each equipment slot at a given level; therefore it was redundant to not merge the cells in these cases. The “Total” column should list how many of each ingredient is still required across all armor set levels to which have not been enhanced.

The problem is that I don’t know what I would be looking for to slot in the formula that would perform these calculations. Basically, if there isn’t an X in a slot in the row above, the Total column should be counting the quantity values per each ingredient for that armor set level. This tells the player how many of an item they need to acquire. Because there are NN-B columns, going through each and every column is not the computer way to solve this issue, and only results in more work. I don’t have an idea what function command I’m looking for, so I don’t even know what it is that I need to look up on site.

Hello @Zetawilk would it be possible to post the file?

Is there anything you need me to add to the file to highlight in addition to the link that was posted in the topic post? Because it won’t be there. I have no formulas. The link above literally has everything there is to see right now. So I’ll need to add something to the file that you’ll be looking for in order to assist you, and before I can do that, I’ll need to know what that specific something is.

With a file, instead of a picture one can test, if his/her idea of a formula would work. Usually more efficient, than explain something and often getting back a “don’t work” because threadstarter made an error, but thats up to you.
.
My only idea would be to calculate the colum-numbers, as it seems you always have groups of 3 columns merged. Then there are functions like INDIRECT() and OFFSET() to get to values. But I wouldn’t say the formulas are “easy” then. (Imho you left easy behind when merging cells.)
.

No, it is your question. Good luck with solving this…

Wait, it only seems like they’re merged? They should be merged. Otherwise there’d be a redundancy in three columns with the same exact numbers over and over.

So you’re saying “INDIRECT()” and “OFFSET()” are the formula commands needed. Hopefully this will work, as the question was indeed, “What commands should I look for?” Thanks for the help.

I’ve seen a picture, therefore “it seems”.

A formula such as

A1: =SUMPRODUCT(B1:G1;MOD(COLUMN(B1:G1)+1;3)=0)

sum the values on the columns 2,5,8,11…