0

I have the feeling I'm missing something important.

What I'm trying to do should be simple.

I have calculations on rows for 31 days. I'm using array formula on each row to do a 'baby lock', so that user can't overwrite single formula, but has to either change the whole row or nothing.

For some reason, I'm not able to SUM() only current column for each day.

This is what I'm trying to achieve, row 5 should be array from day 1st to ...:

Table draft: https://drive.google.com/open?id=1l2rGi-56YoU6ddGX2GgnS3RwMPETl-FZ

I tried:

  • SUM(2:3) entire row (no columns)
  • SUM(B2:E3) the range of columns equal to the array formula columns
  • SUM(B2:B3) rows in current column
8
  • put =SUM(B2:B3) in B5 and drag/copy it over the other columns. Commented Jan 18, 2019 at 16:05
  • @ScottCraner Scott, this does work, but it doesn't protect the row as a whole, single array formula - I was aiming for either edit all or none, on a per-row basis, with no sheet protection or macro (keeping it as simple as possible). Many thanks Commented Jan 18, 2019 at 16:15
  • You can't in Excel with a formula. Each cell that returns a value must have a formula in it. You can use vba that will take the formula in A5 and apply it to the whole range and protect it using a worksheet change event. But formulas will not get you what you want. Commented Jan 18, 2019 at 16:19
  • Well you can highlight B5:E5, put =INDEX(B2:E2+B3:E3,) in the formula bar and hit Ctrl-Shift-Enter. Commented Jan 18, 2019 at 16:23
  • Scott, apologies if I'm not expressing myself properly. I'm trying to use multi-range array formula: Commented Jan 18, 2019 at 16:27

1 Answer 1

2

I have solved the problem.

Formula for below table in A4 looks like this:

={A2:C2+A3:C3}

(Ctrl+Shift+Enter of course)

Table

I think SUM() doesn't work because it already treats it's input as an array, but I'm not certain.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.