In VBA Excel, I can choose cells based if they have formulas or values.
Sub ColorCells()
Dim rng As Range
Set rng = ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants)
rng.Interior.Color = RGB(200, 200, 200)
Set rng = ActiveSheet.UsedRange.SpecialCells(xlCellTypeFormulas)
rng.Interior.Color = RGB(0, 200, 1)
End Sub
Also, I can specify if I want to get only text values, numbers, errors and/or booleans.
How can I do that with Excel JavaScript API? It is a pretty important method. Currently, I'm looping all the worksheet's used range rectangle to get the values, and my loops spend a lot of time in blank cells.