It is easier to use software. However, regarding your case,
1. If bending moments on your flange due to pipeline thermal expansion,this load causes the bolt stresses to be over the allowable per Div. 1 Table UCS-23, then refer to Division 2, Appendix 4 Section 4-141 and it states that we can go to 2x the allowable for a combination of preload, pressure and thermal expansion...this section does not specifically address external loading but it does indicate that this is the maximum allowable service stress in the bolts
2. Calculate the bolt loading due to the internal pressure and external loading based on division 2 calculations. In doing this, it will allow you to use the 2x allowable criteria.
3. Expansion stresses give rise to secondary stresses and these are not required to be accounted for in Div.1 (this is by the way the main and very basic difference between Div.1 and Div.2): se also below, however.
4. As your expansion stresses seem a bit high you can check them, still staying within the frame of Div.1, hence using Div.1 allowable, but going to Div.2 for the checking method, as Div.1 doesn't provide one.
5. App.3 of Div.2 is of no use here: it is in fact the same as App.2 of Div.1 and uses the same type of loads (pressure only).
6. Check also App.4 of Div.2, and with 4-141 you should be OK. However note that the service stress in bolts should be determined including the effect of preload (of course by accounting also the effect of preload stress going towards zero under flange loads) and the effect of torsion in tightening if any.