To generate a barcode in excel create two columns in your spreadsheet. Then right-click the column and select Format Cells then choose Text. Enter formula = * &A2& * in the Barcode column. Afterwards, change the font in the Barcode column and enter alphanumeric data.