Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2022, 09:23 AM
JHalter JHalter is offline Windows 10 Office 2019
Advanced Beginner
Formulas exceeding 8192 characters
 
Join Date: Nov 2021
Posts: 46
JHalter is on a distinguished road
Default Formulas exceeding 8192 characters


I'm getting an error message saying I have formulas exceeding 8192 characters. How do I get rid of this error message?
Reply With Quote
  #2  
Old 11-10-2022, 10:17 AM
ArviLaanemets ArviLaanemets is offline Formulas exceeding 8192 characters Windows 8 Formulas exceeding 8192 characters Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Make the formula shorter!

In Excel, 8192 is maximum number of characters the formula can be composed of (google for "Excel specifications and limits" for more info).

Ways to get shorter formulas:
1. Try to avoid using spaces in your formula whenever it's possible;
2. Use defined Tables, and Table formula syntax, with keeping Table and column names as short as possible (e.g. you can get the formula in format like =SUM(tbl1.[fld1]) much shorter as the same formula in format =SUM(Sheetname!$AAA$2:$AAA$9999);
3. Use helper columns to get intermediate results for your formula, and refer to them further instead writing the whole formula into single cell;
4. Use [dynamic] names as intermediate sources for your formula.

Having a good night of sleep, I can continue...
5. Use better design of your workbook. Usually having such long formulas is a sure indicator of poor design! Mostly this is caused by entries of same type divided between many worksheets, or many columns. E.g. you have an Excel app where you enter purchase info. Often users design this exactly in same way, like someone in year 1700+ in some paper notebook, e.g. separate columns for different purchased articles in same table, or separate tables (i.e. data on separate sheets in your excel) for different suppliers, or for purchases in different months, etc. This means you get very long and unhandly formulas whenewer there will be need to calculate any totals. An additional downside is, you have to redesign your workbook, whenever a new month is starting, or when a new supplier must be added, etc. When you keep all this info in single table, a single column for every type of data, all such calculations are reduced to using simple SUM(), COUNT(), SUMIFS() and COUNTIFS() formulas. And in case you really need to visually present e.g. data for single supplier, or single month, or single year, you create report sheets (a single report sheet for certain conditions set, e.g. a single Monthly report), where you select report conditions, and report table reads info matching those conditions from data entry table. With such design, you can use your workbook for years without any need for any redesign!

Last edited by ArviLaanemets; 11-11-2022 at 12:47 AM.
Reply With Quote
  #3  
Old 11-10-2022, 02:27 PM
Steve Kunkel Steve Kunkel is offline Formulas exceeding 8192 characters Windows 10 Formulas exceeding 8192 characters Office 2019
Advanced Beginner
 
Join Date: May 2019
Location: Seattle area
Posts: 78
Steve Kunkel is on a distinguished road
Default

Re #4: I make extensive use of helper columns. Some of my workbooks have entire "helper sheets" that stay hidden.

Another idea for shortening formulas: If there are a bunch of repetitive parts, you might be able to make use of the =LET() function.
Reply With Quote
  #4  
Old 11-11-2022, 01:39 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now Formulas exceeding 8192 characters Windows 10 Formulas exceeding 8192 characters Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,768
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Why not post your formula ( or part of it ) so we can see what seems to be the problem ?
@Steve
As the OP's profile indicates he is using XL 2019 the LET function is not available (and your profile states the same?)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 11-11-2022, 08:00 AM
Steve Kunkel Steve Kunkel is offline Formulas exceeding 8192 characters Windows 10 Formulas exceeding 8192 characters Office 2019
Advanced Beginner
 
Join Date: May 2019
Location: Seattle area
Posts: 78
Steve Kunkel is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Why not post your formula ( or part of it ) so we can see what seems to be the problem ?
@Steve
As the OP's profile indicates he is using XL 2019 the LET function is not available (and your profile states the same?)
Good catch -- I didn't notice that.
And thanks for the prompt -- I'll update my profile!

I changed it to "2021" but my Excel actually shows "365."
Reply With Quote
  #6  
Old 11-12-2022, 12:57 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now Formulas exceeding 8192 characters Windows 10 Formulas exceeding 8192 characters Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,768
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
Originally Posted by Steve Kunkel View Post
Good catch -- I didn't notice that.
And thanks for the prompt -- I'll update my profile!

I changed it to "2021" but my Excel actually shows "365."

Good catch. it seems 365 is not available in the User CP. I'll contact a mod about that
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 11-12-2022, 02:53 AM
Matrix's Avatar
Matrix Matrix is offline Formulas exceeding 8192 characters Windows 10 Formulas exceeding 8192 characters Office 2010
Admin
 
Join Date: Jan 2005
Posts: 429
Matrix is on a distinguished road
Default

Please see https://www.msofficeforums.com/forum...-profiles.html
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Characters appear when selecting SHOW ALL NON PRINTING CHARACTERS ann Amber Word 1 08-01-2015 08:06 PM
formulas MSA5455 Excel 3 12-19-2014 01:50 AM
start and finish dates exceeding duration joday48 Project 0 06-27-2012 04:55 AM
Formulas exceeding 8192 characters IF Formulas mizzamzz Excel 1 07-08-2010 02:32 AM
Junk characters (box-like characters) in Word file Sashikala Word 1 04-20-2010 02:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft