Set column default value in Google Sheets
You might want to consider an ArrayFormula. Here's a place for getting detail. In your case, the big trick is knowing that you can run the formula through all of Column C using the notation something like C1:C. Doing it this way is far more self documenting than burying it in a Google function and it's way more general.
chazbot7
Freelancer working in graphic/web design and web programming, mainly Magento.
Updated on June 27, 2022Comments
-
chazbot7 almost 2 years
I have a finance tracking worksheet that has a number of formulas for each row. What I'd like to add is have these formulas replicate whenever a new row is inserted (fill it with a "default value").
Sheet before adding the row:
Sheet after adding the row:
I'd like some of these cells (B28 in this case) to contain a formula. for this row the formula is:
=IF(ISBLANK(C27), "", CONCATENATE(YEAR(C27), "-", MONTH(C27)))
-
chazbot7 over 4 yearsThis is a MUCH better way to do this - thanks Mark! Correct answer switched to this.