Skip to content

Instantly share code, notes, and snippets.

@iconifyit
Last active November 26, 2016 01:46
Show Gist options
  • Save iconifyit/ab3f14338fe8528e930b34fedd00aa87 to your computer and use it in GitHub Desktop.
Save iconifyit/ab3f14338fe8528e930b34fedd00aa87 to your computer and use it in GitHub Desktop.
Auto-generate a custom field name using the value of a column and auto-incremented value (Ex: 1.1.001, 1.1.002)
=(CONCAT(
INDIRECT("E" & ROW()) ,
CONCAT(
IF (COUNTIF(
INDIRECT("E2:E" & (ROW())),
INDIRECT("E" & ROW())
) > 99, ".0",
IF (COUNTIF(
INDIRECT("E2:E" & (ROW())),
INDIRECT("E" & ROW())
) < 9, ".00", ".0"
)
),
COUNTIF(
INDIRECT("E2:E" & (ROW())),
INDIRECT("E" & ROW())
)
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment