Im tasked to use OPEN XML SDK 2.0 and had encountered this problem. Is it possible to have different styles for a single CellValue inside a cell something like the picture below:

A: The plain text
B: Bold and Underlined
NOTE: I need both in a single cell only thanks 🙂
Yes that is possible. One way is to format the value that will be inserted into the
SharedStringTable. This snippet will create your example above:You can insert that into the
SharedStringTableand then set the cell value to be the index in theSharedStringTablewhere this was inserted.There might be some other references that I forgot to include that might be defined in the
StylesPart. I recommend creating this example in a blank Excel document and then using the Open XML Productivity Tool to look at the XML. The tool will also supply you with the code I provided you above. It should give you a general direction on where to go next.