### Excel CONVERT Function

This Excel Tutorial demonstrates how to use the Excel CONVERT Function in Excel to convert a number from one unit to another, with formula examples.

## CONVERT Function Description:

The CONVERT Function Converts a number from one measurement unit to another.

## Formula Examples: Example Formula Result
Ounces to Grams =CONVERT(C5,D5,E5) 28.349523125
Grams to Ounces =CONVERT(C6,D6,E6) 1.0000168212706

## Syntax and Arguments:

The Syntax for the CONVERT Formula is:

### Function Arguments ( Inputs ):

number – Number of units.

from_unit – The original measurement units.

to_unit – The converted measurement units.

Simply enter the number of units, the previous units of measurement, and the desired units of measurement.

## CONVERT Examples in VBA

You can also use the CONVERT function in VBA. Type:
`application.worksheetfunction.convert(number,from_unit,to_unit)`
For the function arguments (number, etc.), you can either enter them directly into the function, or define variables to use instead.

`=AND(`  