Hi Guna ,
There are no formulae in column G ; the formulae are in columns H through M , based on a helper column Q.
The formula in column Q is listing the row numbers of the entries in the database columns C through F ; the formulae in columns J through M check whether the entry corresponding to the row number in column Q comes from the columns C through F ; if it comes from column C , then it is put in column J , if it comes from column D , then it is put in column K , and so on.
The date entries are very simple , since if there is an entry in any of the 4 columns , the corresponding date has to be put in.
Narayan