This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I think we do not need to build a macro. A combination of append, multiple-row formula, sort and sample tools can achieve requirement #1 while a combination of append, formula and summarise tools can achieve requirement #2 and #3: