Combination of different cells

dipkchopra

New Member
Joined
Nov 19, 2013
Messages
13
Needed a help on an excel scenario



I have a column of say 3 rows containing numbers, Say A, B, C


I need to generate a formula / code to give me sum of all possible number combinations.i.e.

  • A + B
  • A + C
  • B + C
  • A + B + C

My real life scenario has more than 3 rows (actually about 15 rows)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Can you show a real example with numbers , showing the results yoiu expect and you want it
 
Upvote 0
With the given data set:
Value 15
Value 210
Value 315

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>



I am trying to achieve:

Result 115 =5+10
Result 220 =5+15
Result 325 =10+15
Result 430 =5+10+15

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>


Needed a help on an excel scenario



I have a column of say 3 rows containing numbers, Say A, B, C


I need to generate a formula / code to give me sum of all possible number combinations.i.e.

  • A + B
  • A + C
  • B + C
  • A + B + C

My real life scenario has more than 3 rows (actually about 15 rows)
 
Upvote 0
Because you already know what are the possible combinaisons and formulas why you don't put the formulas in a cell
e.g.
I have a column of say 3 rows containing numbers, Say A, B, C => Col A
B1 = A1 + A2
B2 = A1 + A3
B3 = A2 + A3
B4 = A1 + A2 + A3
 
Upvote 0
Yes that is easy for a 3 row combination. But for a 15 row data to do it manually is very tiresome.
Need an automated solution. Some days the no of rows also fluctuate between 12 to 20

Because you already know what are the possible combinaisons and formulas why you don't put the formulas in a cell
e.g.
I have a column of say 3 rows containing numbers, Say A, B, C => Col A
B1 = A1 + A2
B2 = A1 + A3
B3 = A2 + A3
B4 = A1 + A2 + A3
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top