Hi, my user add a string of 47 numbers reading from codebar. I have to follow a layout and take parts of this string to get the type of information, for instance, the first 3 numbers.
From the 4th to 10th get the amount, from the Xth to Xth character take a date.
What type of column can I use to get these three information and write each one in a column?
Tkx
I think you need to bring that back to the sheet and use Left, Mid & Right functions to separate the string to what you want. It would be the easiest way.
Tkx so much for your prompt reply. I´ve tried it using arrayformula, but it didnt work.
It means that we someone add a new row I have to drag down the formula.
The other digits tell me other info. But yes, the 2 main information are amount and type of record.
In this case, I need to check if this sequence starts with 8 and another check from 5th take seven digits, after from 13th take 4 digits.
in your example 846800000014329502962020006100380002002643171602
8 as first digit OK
the amount will be 132,95
Tkx again! Of course we have many ways to solve and my easier way I copy the formula of the cell above. So I set the Google Sheet formula using MID, Left and now when user add another row I just copy the formula above.
Feel free for sharing another better way (of course).
But your help was amazing!
Oh My! Yesterday everything run fine! Today I just add to “onchange function” the script to copy the formula and nothing happen. I guess my trigger stopped. any tip?
I enabled notification I’m analyzing what´s wrong.
Now I’m receving…
|7/26/20 10:54 PM|onChange|Exception: Cell reference out of range|change|7/26/20 10:54 PM|