can any one think of best way to address below problem. I can do it with lots of IFs and FORs but wondering if there is any simple better solution for it.
We have a s