You give almost no information with your request, so here is a generic solution.
It's simplest to manually create an arff from a csv file, so convert your xls and xlsx files to csv by using 'save as' from your spreadsheet program.
Open the csv file in a text editor (like notepad, notepad++, etc).
Insert a line at the front of your file to explain the @relation and one line for each @attribute in the file, then a final inserted line that just says @data. The
original csv file lines should then follow from the next line unaltered. For the attributes, you need to understand the data - are the fields numeric or literal.
Here is an example - the schizophrenia arff file.
Note that:
- there is one attribute for each column of the original spreadsheet
- use ? for a missing value
- for a limited number of literal values in a particular field, list them inside the curly brackets like so "@attribute target {CS,PS,TR}"
- the default class attribute for WEKA will always be the last one - here schizophrenic or not.
@relation schizo
@attribute ID numeric
@attribute target {CS,PS,TR}
@attribute gain_ratio_1 numeric
@attribute gain_ratio_2 numeric
@attribute gain_ratio_3 numeric
@attribute gain_ratio_4 numeric
@attribute gain_ratio_5 numeric
@attribute gain_ratio_6 numeric
@attribute gain_ratio_7 numeric
@attribute gain_ratio_8 numeric
@attribute gain_ratio_9 numeric
@attribute gain_ratio_10 numeric
@attribute gain_ratio_11 numeric
@attribute sex {female,male}
@attribute class {non-schizophrenic,schizophrenic}
@data
7,PS,0.935,0.933,0.968,0.92,0.993,0.978,0.974,0.871,0.912,0.92,0.883,female,non-schizophrenic
7,PS,0.909,0.82,0.882,0.884,0.813,0.944,0.892,0.882,0.912,0.881,0.879,female,non-schizophrenic
7,CS,0.86,0.863,0.935,?,0.846,0.91,0.846,0.835,0.719,0.782,0.795,female,non-schizophrenic
7,TR,?,?,0.814,0.783,?,0.768,0.749,0.82,0.76,0.783,0.722,female,non-schizophrenic
7,PS,0.879,0.864,0.804,0.65,0.74,0.766,0.866,0.817,0.879,0.733,0.845,female,non-schizophrenic
19,PS,0.919,0.875,?,0.915,0.883,0.802,0.802,0.77,0.963,0.932,1.01,female,non-schizophrenic
19,PS,0.848,0.786,0.83,0.802,0.865,0.827,?,0.765,0.839,0.798,0.857,female,non-schizophrenic
19,CS,0.925,0.786,0.732,0.77,0.736,0.711,0.653,0.832,0.864,0.868,0.837,female,non-schizophrenic
19,PS,0.813,0.88,0.753,0.87,0.795,0.902,0.889,0.837,0.731,0.808,0.894,female,non-schizophrenic
... etcetera ...