You can create a PivotTable in Excel from an external data source, a table in your worksheet, or a pre-built data model. To access these options, in the Insert tab on the ribbon, click the "PivotTable ...
Excel's VALUE function has only one argument: where a is the value stored as text that you want to convert into a number.