Forum Discussion

rshenk3's avatar
rshenk3
Copper Contributor
Oct 05, 2023
Solved

Automatic Carton Numbering

Hello and thank you,   So here's the deal.  I have a spreadsheet with the entire selection of possible products ordered from us by a customer.  I would like to be able to receive a PO from the cust...
  • Patrick2788's avatar
    Patrick2788
    Oct 07, 2023

    rshenk3 
    Like this?

     

    If that's the case, then we change the initial value in SCAN from 1 to 0:

     

    =LET(
        carton_numbering, LAMBDA(a, v,
            IF(
                v = "",
                TEXTAFTER(a, ",", -1, , , a),
                TEXTJOIN(",", , SEQUENCE(v, , a + 1))
            )
        ),
        SCAN(0, boxes, carton_numbering)
    )

     

     

Resources