![]() |
#1
|
|||
|
|||
![]() I'm getting an error message saying I have formulas exceeding 8192 characters. How do I get rid of this error message? |
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
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. |
#4
|
||||
|
||||
![]()
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?)
__________________
Using O365 v2503 - 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 |
#5
|
|||
|
|||
![]() Quote:
And thanks for the prompt -- I'll update my profile! I changed it to "2021" but my Excel actually shows "365." |
#6
|
||||
|
||||
![]() Quote:
Good catch. it seems 365 is not available in the User CP. I'll contact a mod about that ![]()
__________________
Using O365 v2503 - 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 |
#7
|
||||
|
||||
![]() |
![]() |
|
![]() |
||||
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 |
![]() |
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 |