Hi, MavMarsh!
First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.
As a starting point I'd recommend you to read the three first green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).
Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.
Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.
And about your question...
If the problem is only that the brackets in the formula disappeared, just edit the formula with F2 and remember that array formulas should be entered with Ctrl-Shift-Enter instead of just Enter (array formulas are those which are embedded within brackets... well, in fact this isn't the definition of array formulas but a simple way to identify them at a glance).
If still couldn't get if working, consider uploading a sample file (including manual examples of desired output), it'd be very useful for those who read this and might be able to help you. Thank you. Give a look at the second green sticky post at this forums main page for uploading guidelines.
Regards!