Increase the number of custom formats

GuusKoppes

New Member
Joined
Apr 14, 2020
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am working on an excel tool for the calculation of ship weights using weight ratiocination.
I am trying to show text in a pivot table using the custom number format by applying custom formats like below to a cell in my pivot table.
[=100]"Hull structure, general"
The creation and application of these formats works fine using a macro but in my worksheet I am limited to adding 206 custom formats while i would like to add about 700.
If I try to add an additional format I get the error message "No more custom number formats can be added." I tried it on two different laptops one using Office 365 ProPlus and one using Office Professional Plus 2016

Is there a way to increase the number of custom formats that you can create?

PS. I know that it is possible to add the data to a data model and create a measure with the DAX formula concatenatex to show text in pivot table. But, it is sort of an interactive sheet, as a result it needs to be refreshed frequently and using the data model turned out to increase the refresh time very much.
 
As it is represented in the pivot picture, I'm wondering why you do not simply "lookup" the value and add description?
I thought when reading your thread the first time around, those "numbers" were sitting in the value area, now I'm not so sure any more.

Question is rather why this is needed like jkpieterse already suggested.
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
As it is represented in the pivot picture, I'm wondering why you do not simply "lookup" the value and add description?
I thought when reading your thread the first time around, those "numbers" were sitting in the value area, now I'm not so sure any more.

Question is rather why this is needed like jkpieterse already suggested.

There is more data in the pivot table, primarely weight data of different ships in different columns. This is a snapshot of the first two columns to show What i am trying to achieve
 
Upvote 0
@GuusKoppes you asked about memory limits Excel 32 bits is 3GB,, Excel 64 bit is far greater, you also need to be on a 64 bit operating system

64-bit environment imposes no hard limits on file size. Workbook size is limited only by available memory and system resources.


Beginning with Excel 2016, Large Address Aware functionality lets 32-bit Excel consume twice the memory when users work on a 64-bit Windows operating system. For more information, see Large Address Aware capability change for Excel.
 
Upvote 0
There is more data in the pivot table, primarely weight data of different ships in different columns. This is a snapshot of the first two columns to show What i am trying to achieve

Hi, I got that, but question remains why you need those custom formats to start with. Sounds like a label through a lookup could do, and if the lookup table is sorted (which it seems to be) a double binary lookup will be lightning fast and perhaps save you from the headache you're developing.

Putting it differently (because I can't see your file obviously), do you have all these "columns" generated with values only, or are the fields sitting in the row section as well? That label you need, can it be a field in the row section or not?
 
Upvote 0
Hi, I got that, but question remains why you need those custom formats to start with. Sounds like a label through a lookup could do, and if the lookup table is sorted (which it seems to be) a double binary lookup will be lightning fast and perhaps save you from the headache you're developing.

Putting it differently (because I can't see your file obviously), do you have all these "columns" generated with values only, or are the fields sitting in the row section as well? That label you need, can it be a field in the row section or not?
I think a lookup is not possible because I can't change the values in the pivottable. One solution I found that is partly working for me is using the number formats, by using these I do not change the values in the pivottable but only their appearance.
The first column is generated using rows, the other columns are all generated using values. I don't think it can be a row, or at least not in the way I am building the pivot table now.
I created an example with random numbers of a sheet in my workbook, in total i have 7 of these for the different main SWBS(ship work breakdown structures) groups but the sheets are identical in format and formulas etc.

I hope this example will make more clear what I am trying to achieve. The goal is to estimate the weight of a new vessel based on main parameters such as length etc. Each SWBS number, 111, 112 etc has a ratio that will be multiplied with the weight data of an existing ship. For each SWBS number the user can choose a reference ship that compares best to the new ship. This way a weight estimation can be created using existing weight data and different reference ships. In the reference column the user can choose a reference vessels for that SWBS number and add some delta if it is known that the weight data under or overestimates that part.

So the top part of the sheet with the table allows the user to make choices, the bottom part is the pivot table that is used to create an overview and a pivot chart will also be added to give more insights in the weight data etc. The data in the top table is used as input for the pivottable below.

Finally the tool is "dynamic" I made different macros so that different reference ships can be chosen and in the future new weight data and ships can be easily added.

A pretty long story but i hope this will give some more insight in the problem, please ask questions if something is unclear! And again thanks everyone for thinking with me in this.

Test_sheet_weights_estimation_screenshot_version.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
2Parent ship weightsRatiosNew ship weights
3SWBS1SWBS2SWBS3SWBSTitleRatioRefDeltaNew shipship1ship2ship3ship4ship5ship1ship2ship3ship4ship5ship1ship2ship3ship4ship51DigitSWBS2DigitSWBS3DigitSWBS
4100  100HULL STRUCTURE, GENERAL ship18540.0017084514222211945655.003.001.002.005.008540.001353.004222.004238.0022825.00100100100
5 110 110SHELL AND SUPPORTING STRUCTURE ship150.0016815.00335321764377239519925.003.000.004.003.0016765.006528.000.009580.005976.00100110110
6  111111SHELL PLATING, SURFACE SHIP AND SUBMARINE PRESSURE HULL(B+2*D)*Lship20.0043287704578195810363.000.001.004.005.0012984.000.004578.007832.005180.00100110111
7  114114SHELL APPENDAGESL*B*D/100ship2350.001086.0027687363101416920970.001.002.004.001.000.00736.006202.0016676.002097.00100110114
8 120 120HULL STRUCTURAL BULKHEADS ship111740.00234838903852472015535.001.002.003.001.0011740.003890.007704.0014160.001553.00100120120
9  121121LONGITUDINAL STRUCTURAL BULKHEADSL*D^2ship125.004949.00492436004424317029701.005.003.003.002.004924.0018000.0013272.009510.005940.00100120121
10 150 150DECK HOUSE STRUCTURE ship16560.00164030061322288518404.004.001.004.000.006560.0012024.001322.0011540.000.00100150150
11 160 160SPECIAL STRUCTURES ship175.0075.00412334501746116838360.000.002.004.004.000.000.003492.004672.0015344.00100160160
12  161161STRUCTURAL CASTINGS, FORGINGS, AND EQUIV. WELDMENTSL*B*D/100ship10.00234541833847348547030.001.004.001.005.000.004183.0015388.003485.0023515.00100160161
13  163163SEA CHESTS(0,5+0,5*SHP)ship1120.007832.0038561104291642618422.004.005.001.004.007712.004416.0014580.004261.003368.00100160163
14  167167HULL STRUCTURAL CLOSURESL*Dship10.002131611018232910430.002.001.005.004.000.00122.001018.0011645.004172.00100160167
15  168168DECKHOUSE STRUCTURAL CLOSURESL*Dship124190.004838395982122110525.005.002.001.002.0024190.0019795.00164.001221.002104.00100160168
16  169169SPECIAL PURPOSE CLOSURES AND STRUCTURESL*B*Dship37743.0039442602581115543545.000.003.005.000.0019720.000.007743.005775.000.00100160169
17 170 170MASTS, KINGPOSTS, AND SERVICE PLATFORMS ship130.009357.0031094181397277922153.001.003.001.001.009327.00418.004191.002779.002215.00100170170
18  171171MASTS, TOWERS, TETRAPODSL*B*Dship15595.001119356365972938285.005.001.001.001.005595.001780.003659.00729.003828.00100170171
19 180 180FOUNDATIONS ship510332.0089812662903394134441.001.001.003.003.00898.001266.002903.0011823.0010332.00100180180
20  181181HULL STRUCTURE FOUNDATIONSGroup_1_new/Group_1_parentship1424.004244264950328149281.004.004.002.002.00424.001704.0019800.006562.009856.00100180181
21  182182PROPULSION PLANT FOUNDATIONSGroup_2_new/Group_2_parentship111262.00375415514697292426053.005.004.002.005.0011262.007755.0018788.005848.0013025.00100180182
22  183183ELECTRIC PLANT FOUNDATIONSGroup_3_new/Group_3_parentship145.001619.007872770181059142072.001.002.005.000.001574.002770.003620.002955.000.00100180183
23  184184COMMAND AND SURVEILLANCE FOUNDATIONSGroup_4_new/Group_4_parentship19490.00474516044091403135282.000.005.005.002.009490.000.0020455.0020155.007056.00100180184
24  185185AUXILIARY SYSTEMS FOUNDATIONSGroup_5_new/Group_5_parentship46978.002121649291123267304.000.003.003.003.00848.000.008733.006978.002190.00100180185
25  186186OUTFIT AND FURNISHINGS FOUNDATIONSGroup_6_new/Group_6_parentship10.0081948902134462417760.001.002.004.001.000.004890.004268.0018496.001776.00100180186
26  187187ARMAMENT FOUNDATIONSGroup_7_new/Group_7_parentship11874.0093743833488237127292.005.001.005.003.001874.0021915.003488.0011855.008187.00100180187
27 190 190SPECIAL PURPOSE SYSTEMS ship415355.00420146353591307121960.001.004.005.003.000.004635.0014364.0015355.006588.00100190190
28  196196WELD TOLERANCE ship13442.00344234564578209942961.005.004.005.003.003442.0017280.0018312.0010495.0012888.00100190196
29  197197MATERIAL TOLERANCE2,5%_Group_1ship16114.00203835431335225540053.004.001.003.000.006114.0014172.001335.006765.000.00100190197
30
31RijlabelsSWBS DescriptionRefsRatiosDeltasShip weights of New shipSom van ship1Som van ship2Som van ship3Som van ship4Som van ship5
32100HULL STRUCTURE, GENERAL1185401708451422221194565
33100HULL STRUCTURE, GENERAL1185401708451422221194565
34110110332179011044936821205685225125
351101101111681533532176437723951992
36111SHELL PLATING, SURFACE SHIP AND SUBMARINE PRESSURE HULL1104328770457819581036
37114SHELL APPENDAGES11110862768736310141692097
381201202211668972727490827678904523
39120120111174023483890385247201553
40121LONGITUDINAL STRUCTURAL BULKHEADS111494949243600442431702970
41150DECK HOUSE STRUCTURE11656016403006132228851840
42150DECK HOUSE STRUCTURE11656016403006132228851840
43160SPECIAL STRUCTURES662398402123713017121901361915830
44160SPECIAL STRUCTURES1117541233450174611683836
45161STRUCTURAL CASTINGS, FORGINGS, AND EQUIV. WELDMENTS11023454183384734854703
46163SEA CHESTS11178323856110429164261842
47167HULL STRUCTURAL CLOSURES110213161101823291043
48168DECKHOUSE STRUCTURAL CLOSURES1124190483839598212211052
49169SPECIAL PURPOSE CLOSURES AND STRUCTURES1177433944260258111554354
50170MASTS, KINGPOSTS, AND SERVICE PLATFORMS221149524228774505635086043
51170MASTS, KINGPOSTS, AND SERVICE PLATFORMS11193573109418139727792215
52171MASTS, TOWERS, TETRAPODS115595111935636597293828
53180FOUNDATIONS881419791257618539269842408923947
54180FOUNDATIONS11103328981266290339413444
55181HULL STRUCTURE FOUNDATIONS11424424426495032814928
56182PROPULSION PLANT FOUNDATIONS111126237541551469729242605
57183ELECTRIC PLANT FOUNDATIONS1111619787277018105914207
58184COMMAND AND SURVEILLANCE FOUNDATIONS11949047451604409140313528
59185AUXILIARY SYSTEMS FOUNDATIONS116978212164929112326730
60186OUTFIT AND FURNISHINGS FOUNDATIONS1108194890213446241776
61187ARMAMENT FOUNDATIONS1118749374383348823712729
62190SPECIAL PURPOSE SYSTEMS33249119681116349504742510497
63190SPECIAL PURPOSE SYSTEMS111535542014635359130712196
64196WELD TOLERANCE11344234423456457820994296
65197MATERIAL TOLERANCE11611420383543133522554005
66Eindtotaal100262671713726879158593796107005772370
SWBS100
Cell Formulas
RangeFormula
A4:A29A4=IFERROR(IF(VALUE(RIGHT(D4,2))<>0," ",D4)," ")
B4:B29B4=IFERROR(IF(VALUE(RIGHT(D4,2))<>0,IF(VALUE(RIGHT(D4,1))<>0,"",D4),""),"")
C4:C29C4=IFERROR(IF(VALUE(RIGHT(D4,1))<>0,D4,""),"")
E4:E29E4=INDEX(New_ship_weights!$F:$F,MATCH(D4,New_ship_weights!$A:$A,0),1)
F4:F29F4=INDEX(New_ship_weights!$G:$G,MATCH(D4,New_ship_weights!$A:$A,0),1)
I4:I29I4=IFERROR(INDEX($T4:$X4,1,MATCH($G4,$T$3:$X$3,0)),0)+$H4
J4:N29J4=RANDBETWEEN(50,5000)
O4:S29O4=RANDBETWEEN(0,5)
T4:X29T4=O4*J4
Y4:Y29Y4=LEFT($D4,1)&"00"
Z4:Z29Z4=LEFT($D4,2)&"0"
AA4:AA29AA4=$D4
Named Ranges
NameRefers ToCells
New_ship_weights!_FilterDatabase=New_ship_weights!$A$3:$EX$660E4:F29
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O4:S29Other TypeDataBarNO
Cells with Data Validation
CellAllowCriteria
G3List=Start_sheet!$F$3:$F$5
 
Upvote 0
"Rijlables", then we can continue in Dutch, GuusKoppes :-).

What strikes me is that you have SWBS and Title in your data, and Title seems to be the label you want in your pivot. Or am I really that wrong? So why don't you add that Title in your row section. If you make the pivot lay-out tabular, both "row labels" show up nicely in 2 columns. And btw, Title is a lookup through an INDEX+MATCH combo.
Also for having those groups and groups of groups (the bold lines), that is achievable with grouping in Pivot as well (a bit tedious because of your 700+labels, but a one-time set-up and a macro genious can probably make such a code in a blink of eye based on your definition table).
 
Upvote 0
"Rijlables", then we can continue in Dutch, GuusKoppes :-).

What strikes me is that you have SWBS and Title in your data, and Title seems to be the label you want in your pivot. Or am I really that wrong? So why don't you add that Title in your row section. If you make the pivot lay-out tabular, both "row labels" show up nicely in 2 columns. And btw, Title is a lookup through an INDEX+MATCH combo.
Also for having those groups and groups of groups (the bold lines), that is achievable with grouping in Pivot as well (a bit tedious because of your 700+labels, but a one-time set-up and a macro genious can probably make such a code in a blink of eye based on your definition table).
Haha, normally still work in the english excel but I am dutch indeed;)

Wow, feeling a bit stupid now, never realised text would just show up in rows. But glad that you pointed that out! Works perfectly for me.
Added a screenshot of how it looks now. The grouping is working fine as it is now i think but good to keep that in mind!

Still wondering why i couldn't add more than 206 custom formats though but will leave that for myself to figure if I have some spare time.
Thanks everyone for your fast replies and helping me to reach a solution!
 

Attachments

  • Annotation 2020-04-16 140657.png
    Annotation 2020-04-16 140657.png
    31.3 KB · Views: 11
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top