Sheets Tip 254: Different ways to multiply a column. How many do you know?



Hi Reader,

Welcome to the Google Sheets Tips newsletter #254, your Monday morning espresso, in spreadsheet form!

➜ News

Lots of news coming out of the Google I/O conference last week!

I.
​
Here's the session from I/O about how to extend Google Workspace with APIs, Apps, and AI.

​Watch the session here​

II.
​
One of the most exciting announcements for Sheets users at Google I/O was Duet AI. It's a generative AI tool for Workspace apps. For Sheets, it will help with data classification and document generation.

​Check out Duet AI​

III.
​
Google showcased Simple ML at the I/O conference. Simple ML is a Google Sheets addon (from Google) that allows you to do machine learning inside your Sheets without coding.

​Learn more about Simple ML​

IV.
​
Here's a complete playlist of all the sessions from Google I/O, which will keep you busy for a while! ;)

​All Google I/O sessions​

_______

➜ Google Sheets Tip #254: Different ways to multiply a column

Suppose we have a column of values and we want to multiply them by a constant value.

For example, we want to multiply the values in column A by 3:

And this is the result we want, in column C:

The value in each row of column A has been multiplied by 3 (the value in cell B2).

Here are four ways to achieve this:

Method 1: Simple multiplication

=A2*$B$2

Start with this formula in cell C2 and then drag it down the column to multiply each value by 3.

Note how we put the dollar signs ($) in front of the "B" and the "2" to create an absolute reference. This locks the formula to cell B2 to ensure we always use B2 as the multiplier.

Method 2: Array Formula

=ArrayFormula(A2:A11*B2)

This is a simple array formula version of method 1, where each row is multiplied by B2.

Method 3: MMULT Formula

=MMULT(A2:A11,B2)

This method uses the rare MMULT function to do matrix multiplication.

It's imperative to get the order of the matrices correct, otherwise we get an error.

The first matrix (A2:A11) must have the same number of columns (1 in this case) as the number of rows in the second matrix (B2, again 1 in this case).

Method 4: BYROW + LAMBDA Formula

=BYROW(A2:A11,LAMBDA(r,r*B2))

The final method I'll share here is to use the BYROW function, one of the modern lamba helper functions.

It's overkill in this simple example, but works really well for more complex array calculations.

--

What do you think? Do you know any other methods for multiplying a column by a single value?

_______

If you enjoyed this newsletter, please forward it to a friend who might enjoy it.

Have a great week!

Cheers,
Ben

P.S. Every year I support my sister-in-law's fundraiser for Takoma Elementary School by donating a bundle of all my courses.

The full retail price is $899 and at the time of sending this email the current bid is $200.

It's a great opportunity to grab all my courses for a reduced price and support a good cause.

​Place your bid here!​

(See all the items in the auction here.)

Google Sheets Tips

Get better at working with Google Sheets! Join 50,000 readers to get an actionable tip in your inbox every Monday.

Read more from Google Sheets Tips
Add custom Gemini instructions in sidebar of Google Sheets

Hi Reader, Welcome to the Future Proof newsletter issue 5, your Monday morning espresso, in AI form! (Formerly the Google Sheets Tips newsletter.) Lots of Gemini and Google Workspace news to share today and a tip on custom instructions. Find it all below, but first a little anecdote from my weekend. Kids say the funniest things. My 9-year-old declared over the weekend that he was going to build his own AI company and call his AI tool "Psycho"! I laughed and told him I loved the name. I was...

Output Google Doc as markdown file

Hi Reader, Welcome to Future Proof #4 (formerly the Google Sheets Tips newsletter), your Monday morning espresso, in AI form! My son and I had some fun 3-D printing over the weekend. I printed a rugged case to hold my Field Notes journals (see the finished result at the end of this email). The print run just beginning. It's impressive to watch something grow from nothing, although since the full print took around 3 hours I didn't watch the whole thing ;) And now, perhaps more than ever...

Hi Reader, Welcome to the Future Proof #3 (formerly the Google Sheets Tips newsletter), your Monday morning espresso, in AI form! Here in the Mid-Atlantic region, fall has arrived with cooler temperatures, blustery winds, and grey, rainy days. (As a Brit, it makes me feel right at home!) That means it's officially the end of the shorts-as-the-default-choice season. And, there's a riot of color coming our way over the next few weeks as the maple trees put on a show 🍁. Today, I'm sharing a tip...