HOW TO - generate the Manual Transaction ID

@randy provided a great tip under Adding & Reconciling Manual Transactions on generating a unique manual transaction ID here:

But I had no idea HOW TO do this. Made a quick inquiry to MS CoPilot AI, and the instructions on HOW are shown below! For the newbies to Google Sheets, like me, I hope you find this useful. Instructions were easy to follow and worked great!


image

1 Like

Thanks for sharing this, @RonH. I think some users might find this manual-transaction-id creation script helpful.

2 Likes

I just wanted to add a different method for people who are not comfortable working with scripts. With this method, you generate a unique value using a formula, then overwrite the formula with the value. There are 4 separate HEX values generated at random and put together, so there should be next to no chance that the same one would duplicate twice.

Paste this formula into the cell you wish to hold the manual transaction ID:

="manual:" & LOWER(DEC2HEX(RANDBETWEEN(0, 4294967295), 8)) & "-" & LOWER(DEC2HEX(RANDBETWEEN(0, 65535), 4)) & "-" & LOWER(DEC2HEX(RANDBETWEEN(0, 65535), 4)) & "-" & LOWER(DEC2HEX(RANDBETWEEN(0, 4294967295), 8))

Then, once the value is there, highlight the cell and press CTRL+C to copy the cell contents, then CTRL+Shift+V to replace the formula with the value. You can also right-click and choose Paste Special > Values only to replace the formula. If you don’t replace the formula with the value, it will update with a new ID every time you refresh.

You can generate IDs for multiple rows at a time, as well. Just highlight them all and do the same thing described above.

1 Like