In excel, how can I add every value in one column to every value in another column?

Anonymous
2023-01-05T19:01:26+00:00

If I have column A with the values 1, 2, 3 and column B with the values 4, 5, 6, how can I add each number in column A with each value in column B? There will be 3*3 = 9 resulting numbers, but I don't see a simple way to produce those 9 numbers.

My actual problem has 4 columns with 6, 8, 9, and 10 values --> 6*8*9*10 = 4320 numbers.

I figure if I know how to do it with 2 columns, I can figure it out for 4...maybe that's a bad assumption. ;)

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Ashish Mathur 102.6K Reputation points Volunteer Moderator
2023-01-06T09:04:33+00:00

You are welcome. You can just add data by rows to the blue range and click on Data > Refresh All.

If my previous reply helped, please mark that reply as Answer.

Was this answer helpful?

0 comments No comments
Answer accepted by question author
Anonymous
2023-01-06T00:05:19+00:00

Hi. Addition is done differently, as it's a little easier.

Image

Was this answer helpful?

0 comments No comments

13 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-01-05T21:14:49+00:00

    Hi. This is easy with 365. Something like this?

    Image

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-01-05T19:28:40+00:00

    Let me begin my list of the 4,320 numbers: A2+B2+C2+D2, A2+B2+C2+D3, A2+B2+C2+D4,...

    That's going to take a while. I have tried something like A2:A7+B2:B7, but that only produces a list of 6 sums. It adds A2 to B2 and A3 to B3, etc. I've searched for excel information on permutations, but I could only find a formula for listing out labels from different columns. I need to add the elements from one column to every element in another column.

    Was this answer helpful?

    0 comments No comments
  3. Nikolino 2,215 Reputation points
    2023-01-05T19:06:37+00:00

    Add and subtract numbers

    Adding and subtracting in Excel is easy; you just have to create a simple formula to do it. Just remember that all formulas in Excel begin with an equal sign (=), and you can use the formula bar to create them.

    Formula bar showing a sum of several cells

    more informations in the upper link

    Multiply and divide numbers in Excel

    Multiplying and dividing in Excel is easy, but you need to create a simple formula to do it. Just remember that all formulas in Excel begin with an equal sign (=), and you can use the formula bar to create them.

    more informations in the upper link

    Was this answer helpful?

    0 comments No comments