Locking the Curly Brackets on an Array formula

cmolson0513

New Member
Joined
Jun 1, 2017
Messages
5
Hello,

I have a spreadsheet that has the electric usage for every hour for the entire year. I am calculating the maximum electric usage for every month and I am using this formula for the month of January (cell K9): {=MAX(IF($C$6:$C$8765=$J9,$G$6:$G$8765))} and then dragging cell K9 down to K20 to autofill the table. This formula calculates the maximum electric value for each month correctly. I tried to recreate the spreadsheet below as a reference. There are 8,760 hours in a year which is how long the selection in for columns C and G.

The problem I am having is that whenever I click any of the cells K9-K20 and click out (without hitting ctrl+Shift+Enter) the brackets go away and the formula no longer works correctly because it is no longer an array formula. Is there a way to lock in those brackets so they don't disappear if I click in and out of the cell without ctrl+shift+enter? This problem isn't really for me, but when other people with less Excel experience try to use my spreadsheet and they are confused when the formula is no longer working. Although this wouldn't be much of an issue for a simple spreadsheet like this example, it has become a common occurrence when sharing much more complicated spreadsheets.

I've tried searching for an answer to this without any luck, so any help would be greatly appreciated!

ABCDEFGHIJK
1
2
3
4Date and TimeMonthDay TypeDayHourkW
5Elec
61/1/2016 1:00JanHol110.8
71/1/2016 2:00JanHol121.2
81/1/2016 3:00JanHol131.2MonthMonthly Maximum (kW)
91/1/2016 4:00JanHol141.5Jan15.0
101/1/2016 5:00JanHol151.0Feb13.0
111/1/2016 6:00JanHol161.0Mar16.6
121/1/2016 7:00JanHol171.0Apr19.1
131/1/2016 8:00JanHol180.4May16.9
141/1/2016 9:00JanHol190.8Jun22.8
151/1/2016 10:00JanHol1100.8Jul35.3
161/1/2016 11:00JanHol1111.2Aug31.1
171/1/2016 12:00JanHol1121.0Sep31.1
181/1/2016 13:00JanHol1131.5Oct17.5
191/1/2016 14:00JanHol1141.5Nov30.7
201/1/2016 15:00JanHol1151.5Dec13.8
211/1/2016 16:00JanHol1161.5
221/1/2016 17:00JanHol1171.2
231/1/2016 18:00JanHol1181.5
241/1/2016 19:00JanHol1191.5
251/1/2016 20:00JanHol1201.5
261/1/2016 21:00JanHol1211.5
271/1/2016 22:00JanHol1221.0
281/1/2016 23:00JanHol1231.8
291/1/2016 0:00JanHol1241.8
301/2/2016 1:00JanHol211.0
311/2/2016 2:00JanHol220.2
321/2/2016 3:00JanHol230.2
331/2/2016 4:00JanHol240.2
341/2/2016 5:00JanHol250.8
351/2/2016 6:00JanHol261.0
361/2/2016 7:00JanHol270.8
....................................
8764
12/31/2016 22:00

<tbody>
</tbody>
DecSun31230.4
8765
12/31/2016 23:00

<tbody>
</tbody>
DecSun31240.6

<colgroup><col span="2"><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
You could easily get away from the Array formula with a pivot Table using its MAX feature too.
 
Upvote 0
If stil not late, and your version of Excel is 2010 or later, you can use:

=AGGREGATE(14,6,($G$5:$G$9000)/($C$5:$C$9000=J8),1)
 
Upvote 0

Forum statistics

Threads
1,217,289
Messages
6,135,651
Members
449,955
Latest member
ysfuyar

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