Ruby Excel datatable fundtions would help in managing the excel and also it has beautiful feature to retrive the column value with the Column name and Row numbers.
Below is the sampel code and usage of datatable functions.
require "C:/Azzi-Cdrive/Azzi/Datatable/ExcelDatatableGem/ExcelDataTable.rb"
path = "C:/Azzi-Cdrive/Azzi/Datatable/Input.xlsx"
index=1
@pDatatable = ExcelDataTable.new(path,index)
iRow_Count=@pDatatable.rowCount() puts iRow_Count
icol_Count=@pDatatable.colCount() puts icol_Count
puts @pDatatable.getValue("Username",1) puts @pDatatable.getValue("Password",1)
@pDatatable.writeValue("Username",2,"updateduserid")
@pDatatable.close()