Write a Google Sheet function that fills in this pattern: Column A: 19795 19807 20014…
- User
Write a Google Sheet function that fills in this pattern:
Column A: 19795 19807 20014 20083
Column J: https://vha.usc.edu/testimony/19795?from=search https://vha.usc.edu/testimony/19807?from=search https://vha.usc.edu/testimony/20014?from=search https://vha.usc.edu/testimony/20083?from=search
- Assistant
You can generate column J automatically from column A with a simple Google Sheets formula. In cell J1, enter: excelCopyEdit=ARRAYFORMULA(IF(A1:A="", "", "https://vha.usc.edu/testimony/" & A1:A & "?from=search"))
Explanation:
ARRAYFORMULA → applies the formula down the whole column.
IF(A1:A="", "", … ) → leaves column J blank if column A is blank.
"https://vha.usc.edu/testimony/" & A1:A & "?from=search" → builds the URL by concatenating the fixed URL with the number from column A.
So if column A has: CopyEdit19795 19807 20014 20083
Column J will show: sqlCopyEdithttps://vha.usc.edu/testimony/19795?from=search https://vha.usc.edu/testimony/19807?from=search https://vha.usc.edu/testimony/20014?from=search https://vha.usc.edu/testimony/20083?from=search
Do you want this formula to auto-fill column J as you add new numbers in A, or just to populate the existing rows?