0

I want to use and Excel formula, not VBA, to create an array with the following values: enter image description here The formula must allow the range to grow dynamically as a copy it down horizontally and vertically.

There are a number of solutions using VBA, but I wonder if it can be achieved using hstack etc.

1 Answer 1

0

1.First, in cell A1, enter the following formula:

=IF(COLUMN()-1<=ROW()-1,1,0)

2.Drag this formula across 5 columns (A to E) and down 5 rows. You can do this by selecting cell E1, then dragging the fill handle (the small square at the bottom-right corner of the cell) down to cell E5

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.