Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
546 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
The most complicated Excel formula ever? |
---|
While browsing through forums (as one does) we found what must surely be the most complicated Excel formula. At 1,860 characters long - and combining some of the most complicated Excel functions - it's a true Excel monster. Unless you can do better?! |
I'm taking a bit of a risk with this blog, as it's possible that the web page it points to may change, but for the moment if you go to this Microsoft Community Answers page you will see this formula:
1,860 characters of Excel goodness!
Here's the start of the formula (I was going to indent everything, but gave up!):
=IFS(
AND(
OFFSET(
INDIRECT(
ADDRESS(
MATCH(
MAX(
Facility!E$17
Facility!E$21,
Facility!E$25,
Facility!E$29,
Facility!E$33
),
Facility!E$1:Facility!E$33,
0
),
COLUMN(E$1),
2,
1,
"Facility"
)
),
I think this is a textbook example of how not to write a formula! While it may make sense to the author - at the time of writing - I can guarantee that anyone else will take several hours to disentangle it!
It would be much better to divide this up into several steps, particularly as there is a lot of repetition involved. Not only would it make the results easier to understand and to maintain, but I suspect the total length of the combined formulae would be much shorter, as much of the repetition could be stripped out.
This is the single most complicated Excel formula I think I've ever seen. Unless you can do better?
A footnote: by coincidence since writing this blog I've seen a formula in a client's Excel workbook which may even beat the one above (Jane, you know which one I'm talking about!). Please do send your entries in!
Some other pages relevant to the above blog include:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.