The problem is it’s adding up all the cells in those columns instead of just the ones in each row. How can I fix this so that it works correctly row by row? Any help would be appreciated!
I’ve dealt with a similar issue before, and I found a solution that might work for you. Instead of using SUM, try using SUMIF with a range. Here’s an example:
This formula checks if the value in column A is “online”, and if so, it sums up the values in columns B through F for that specific row. If it’s not “online”, it just returns the value from column B.
The trick is using ROW(B1:F1) as both the criteria and sum range in SUMIF. This ensures that only values from the same row are summed.
Give it a try and see if it solves your problem. Let me know if you need any clarification on how it works.