I don't know how exactly to post the query. So here is what data looks like.
Excel-Query2.jpg
Incase image doesnt show up, View it here
This is basically a regular updating salary register. And for printing purpose I am expecting result like this.
Excel-Query2a.jpg
Incase image doesnt show up, View it here
As you can see, Unit name as Heading and whoever worked in that unit should be in that list then another heading of another Unit and whoever worked there.
Header Row (Sr,Name, Bank & Acc No, etc etc) is not important. I could put this row at top and repeat it with print tiles.
Space of 2 blank rows between two unit tables should be there.
Somehow I managed to achieve expected results by making helper sheet (where i assumed that maximum names in that unit would be 55) and then another worksheet with auto-filter remove blanks VBA. Its complicated.
I want some kind of formula based OR power query based solution for this. Its regular updating sheet, Units can increase or decrease, Number of names can increase or decrease every other month.
I understand, I wasn't able to describe my query perfectly but you will get a rough idea by looking at given images.
I am using office 365 (monthly targeted) fully updated version so all the dynamic array formulas available with me.
Feel free to play with sample sheet. Download Sample Sheet From Here
I think POWER QUERY can do this, but i dont know how.
Thanks
Bookmarks