Tarkemelion
New Member
- Joined
- Jun 28, 2022
- Messages
- 21
- Office Version
- 365
- Platform
- Windows
Hi Team,
I have an Excel template which itemises a list of items. The numbering of each item is what makes this task particularly challenging. Depending on the column that the item is sitting in determines the numbering increment. A picture is worth 1000 words so I'll show the general gist of it below:
As you can see, the numbering scheme is a little complex. The formula adjacent to the "Sports" item is:
This effectively searches for how many main headings are in Column C (i.e. Sports, Jobs etc.), and the rest of it tries to determine the step that needs to be expressed by looking at the number immediately above.
It seems effective and I'm happy with it.
To the problem: I noticed that my template was freezing when I added in new rows, particularly deep into the template (i.e. row 200-300+). By screen freeze, I mean that nothing on the screen would update. However, I could interact with ribbon buttons, such as the save icon, and could see the sheet execute after the supposed button press. Visually, the buttons would not react at all, but the excel sheet was working. Closing and reopening (after a save) would carry through the changes so the sheet was working, just not visually.
When I switched the sheet to manual calculations, added a new row and the corresponding data and then copied the formula into the numbering cell, everything was fine. As soon as I updated the sheet calculation (F9), it would freeze, leading me to believe that this is the trigger point of the problem.
I will note that there is also some conditional formatting associate with the row which formats each row depending on where the data is sitting (fairly simple things, like bold text with a light grey fill if it's a title, underlined text if it's a subtitle etc.).
Has anyone had this issue before, and know how to solve it? My formula doesn't use anything particularly volatile, so my expectation is that it isn't particularly calculation-heavy.
I want to avoid having to calculate things in a macro, but if I need to do that and then copy the results (value-only) into the numbering column to remove updating formulas from the actual sheet, then so be it.
Any and all thoughts are appreciated.
Cheers!
I have an Excel template which itemises a list of items. The numbering of each item is what makes this task particularly challenging. Depending on the column that the item is sitting in determines the numbering increment. A picture is worth 1000 words so I'll show the general gist of it below:
1 | Sports | ||||
1.1 | Ball Games | ||||
1.1.1 | Soccer | ||||
1.1.2 | Football | ||||
1.1.2.1 | Touch | ||||
1.1.2.2 | Gridiron | ||||
1.1.3 | Basketball | ||||
1.2 | Racquet Games | ||||
1.2.1 | Tennis | ||||
1.2.2 | Badminton | ||||
1.3 | Other | ||||
1.3.1 | Archery | ||||
2 | Jobs | ||||
2.1 | Medicine | ||||
2.1.1 | GP | ||||
2.1.2 | Surgeon | ||||
2.2 | Law | ||||
2.2.1 | Solicitor | ||||
2.2.2 | Prosecutor | ||||
2.3 | Engineering | ||||
2.3.1 | Civil | ||||
2.3.2 | Mechanical | ||||
2.3.3 | Electrical |
As you can see, the numbering scheme is a little complex. The formula adjacent to the "Sports" item is:
Excel Formula:
=IF(C2="",IFERROR(LET(d,".",c,XMATCH("*",C2:F2,2),p,A1&d&0,TEXTBEFORE(p,d,c-1)&d&(INDEX(TEXTSPLIT(p,d),c)+1)),0),COUNTA(C$2:C2))
This effectively searches for how many main headings are in Column C (i.e. Sports, Jobs etc.), and the rest of it tries to determine the step that needs to be expressed by looking at the number immediately above.
It seems effective and I'm happy with it.
To the problem: I noticed that my template was freezing when I added in new rows, particularly deep into the template (i.e. row 200-300+). By screen freeze, I mean that nothing on the screen would update. However, I could interact with ribbon buttons, such as the save icon, and could see the sheet execute after the supposed button press. Visually, the buttons would not react at all, but the excel sheet was working. Closing and reopening (after a save) would carry through the changes so the sheet was working, just not visually.
When I switched the sheet to manual calculations, added a new row and the corresponding data and then copied the formula into the numbering cell, everything was fine. As soon as I updated the sheet calculation (F9), it would freeze, leading me to believe that this is the trigger point of the problem.
I will note that there is also some conditional formatting associate with the row which formats each row depending on where the data is sitting (fairly simple things, like bold text with a light grey fill if it's a title, underlined text if it's a subtitle etc.).
Has anyone had this issue before, and know how to solve it? My formula doesn't use anything particularly volatile, so my expectation is that it isn't particularly calculation-heavy.
I want to avoid having to calculate things in a macro, but if I need to do that and then copy the results (value-only) into the numbering column to remove updating formulas from the actual sheet, then so be it.
Any and all thoughts are appreciated.
Cheers!