Sorry, I got distracted for around an hour between first reading your post and commenting, and mixed up your intent in my head. There is actually a lookup script, found here . Also written by TheAaron. To return the nth row of table TableName, just enter: !lookup TableName n Caveat: the output is always the same format in chat, and so not compatible with additional text (or templates) in macros as in your OP, but wanted to share in case it helped for some cases, at least.