The following approach will get you the indices of the missing column from the excel file:
Use the Read Range activity to read the header row into an array of strings called headerRow.
Create a new array of strings called expectedHeaders that contains all the column headers, including the missing columns.
Use a For Each activity to loop through the expectedHeaders array.
Inside the loop, use the “Index Of” function to find the index of the current header in the headerRow array. If the “Index Of” function returns -1, that means the header was not found in the headerRow array and its index is missing. Add the missing index to a new array.
After the loop is complete, the new array or list will contain the indices of the missing columns.