I am a novice at writing vba code and would appreciate some guidance and help writing a basic macro. I am sorting data by three headings, and then separating the data by insering a blank row for matching values in column "B", starting with row B2 and ending at the last row. The pairs are of a variable quantity i.e. may be none, one, two or three matching values, but I just want to group them and insert a single row beneath the last matching value. Can someone help me please? I am a novice at writing vba code and would app