modify array formula for one without curly brackets

I have had endless problems with Excel crashing or taking an age to calculate. I have just discovered that
it is due to curly bracketed array formulas. My worksheets often contain in excess of 140,000 rows.
Could someone please help me substitute the below formula to one without brackets even if a helper column is required.


Many thanks
Ian BellretiredAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wayne Taylor (webtubbs)Commented:
Try the DSTDEV function, which allows you to set multiple criteria...


This assumes the column headers are in row 1. Cells D1:D2 contain the criteria, with D1 listing the Column header in cell A1 and cell D2 having the criteria.

A good tutorial for the function is available here.

BTW, the move away from array formulas may or may not help with the calculation time. The biggest issue you will face is the 140,000 rows of data.
Ian BellretiredAuthor Commented:
Thanks Wayne, I'll check this out after a sleep.
I was wondering if the AGGREGATE function would work and how to modify that formula I posted.
Wayne Taylor (webtubbs)Commented:
The DSTDEV function was created specifically for instances where conditions are required, as is the case here. Anything else will be sub-optimal.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Rory ArchibaldCommented:
You could certainly use a helper column with a simple formula that returns the cell value if column A matches the criterion and "" otherwise, since STDEV.S will ignore non-numeric values in the range.
Ian BellretiredAuthor Commented:
I've enclosed an attachment if you could kindly insert the formula you recommend.
Many Thanks

Please place formula in column that displays yellow background
Wayne Taylor (webtubbs)Commented:
Ian, no file is attached, but the formula Rory is suggesting is...

=IF(A2=A$2, B2, "")

...and copy down as required. You can then use a non-array formula on that column to calculate the standard deviation...


...assuming column K is where you placed the above formula.
Ian BellretiredAuthor Commented:
Wayne Taylor (webtubbs)Commented:
Ahh, I understand now. As you are calculating the StDev for every row, it looks like you'll need to use the array formula you originally used. A helper column won't help.

Why are you calculating the StDev for every row? Can it not be calculated in a summary Pivot Table as in the attached?
Ian BellretiredAuthor Commented:
I haven't worked with pivot tables and not wanting to go down that route. The Array is not an option. I was hoping helper columns would be a solution but you say not.
Wayne Taylor (webtubbs)Commented:
OK, I guess we can calculate the StDev manually. You'll need 2 helper columns though, using these formula...


See attached.
Ian BellretiredAuthor Commented:
Ok thanks Wayne, I'll have to look at it tomorrow, need sleep
Ian BellretiredAuthor Commented:
Here is what I am trying to achieve (refer to link below)
The only difference is I am trying to copy down 100k+ rows that contain indexed ID's.
In attached sheet I would like to normalise values in column B within their index ranges.
There are a series of steps outlined in the article and I have done the AVERAGE column (C)
I've colour coded index ranges for clarity sake.
Thank you for your continued patience.
Wayne Taylor (webtubbs)Commented:
The attached workbook contains the 2 formula I posted above, which are then used by the STANDARDIZE function.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ian BellretiredAuthor Commented:
Thanks Wayne the formulas are a perfect solution. Thanks also Rory for your comments.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.