Search code examples
imagegoogle-sheetsgoogle-sheets-formulaqr-coderepeat

How to repeat a image from IMAGE formula for N times by rows in google sheets


I want to repeat a qr code generated from web by for n times enter image description here

when I enter 3 in C2 i need to get 3 barcodes in D2:D4 as shown in the above image

sheet link


Solution

  • try:

    =INDEX(IMAGE(QUERY(FLATTEN(SPLIT(REPT(
     "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl="&
     ENCODEURL(A2)&"​", C2), "​")), "where Col1 is not null", )))
    

    enter image description here