Find total of columns of each row in a single cell -Excel 2007

MyTaxcel

New Member
Joined
Aug 31, 2021
Messages
8
Office Version
  1. 2013
  2. 2007
Platform
  1. Windows
Can anybody help me to find total of all the horizontal elements in each row of an array in a single cell without VBA code..

Values shown in the following table are basically the elements of an array derived from other excel formulas.

Purpose is to find the row number at which sum of horizontal elements is greater than a certain value.


Book1
ABCDE
1000={0;1;2;5;3;9;6;4;5;24}
2001
3110
40005
51110
6333
7222
80004
91112
10888
Sheet1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Thank you very much for your quick reply ..

Can it be done via a single cell formula ? As I mentioned that data in range A1:D10 (as shown) does not come from the excel sheet, It is a result of excel formula (as an array).. therefore I can not refer to cells or help columns to arrive at single cell result.


oei, in 2007, what functions exists at that moment ???
Cell Formulas
RangeFormula
F1:F10F1=SUM(A1:D1)
G1:G11G1=IF(F1<>"",F1 & ", ","") &G2
 
Upvote 0
and how that your formula/array look like for the moment ?
I have no clue.
 
Upvote 0
and how that your formula/array look like for the moment ?
I have no clue.
I am comparing a List of Names against a column containing a large number of company names..

For example see the attached table


Book1
ABCDEF
1Party Names_Name List
2Teotia Plastic IndustriesTeotiaFormula=(LEN($A$2:$A$11)-LEN(SUBSTITUTE($A$2:$A$11,TRANSPOSE($C$2:$C$5),"")))/LEN(TRANSPOSE($C$2:$C$5))
3Telu Raman febricsPlasticResult={1,1,1,0 ; 0,0,0,0 ; 1,1,0,0 ; 0,0,0,0 ; 0,0,0,1; 0,0,1,1 ; 0,1,1,1 ; 0,0,0,0 ; 1,0,0,1; 0,0,0,0}
4Teotia Plastic Company LimitedIndustries
5Kedar Nath GarmentsMohan(This means 1st Row has three matches from the name list, Second row None, Third Row 2 Matches so on..)
6Mohan Raj Company
7Mohan Raj Industries
8Mohan Plastic Industries
9Aero Club Plot No
10Teotia Mohan James
11Aish Industry
12I have to find row first row where number of matches are greater than say (2 or 3) for which I have to add elements of each row ofarray produced by the formula and I have will have to do it for every row
Sheet3
 
Upvote 0
Map1
ABCDEFGH
1Party Names_Name List234
2Teotia Plastic IndustriesTeotia3-TeotiaMohan
3Telu Raman febricsPlastic3
4Teotia Plastic Company LimitedIndustries3
5Kedar Nath GarmentsMohan4
6Mohan Raj Company
7Mohan Raj Industries
8Mohan Plastic Industries 
9Aero Club Plot No
10Teotia Mohan James
11Aish Industry
Blad1
Cell Formulas
RangeFormula
D2:D5D2=COUNTIF($A$2:$A$11,"*"&_name_list&"*")
F2:H2F2=IFERROR(INDEX(_name_list,MATCH(F$1,COUNTIF($A$2:$A$11,"*"&_name_list&"*"),0)),"-")
G8G8=CONCATENATE(D7:G7)
Dynamic array formulas.
Named Ranges
NameRefers ToCells
_name_list=Blad1!$C$2:$C$5F2:H2, D2
 
Upvote 0
Map1
ABCDEFGH
1Party Names_Name List234
2Teotia Plastic IndustriesTeotia3-TeotiaMohan
3Telu Raman febricsPlastic3
4Teotia Plastic Company LimitedIndustries3-TeotiaMohan
5Kedar Nath GarmentsMohan4-Plastic-
6Mohan Raj Company-Industries-
7Mohan Raj Industries---
8Mohan Plastic Industries---
9Aero Club Plot No ---
10Teotia Mohan James---
11Aish Industry ---
12---
Blad1
Cell Formulas
RangeFormula
D2:D5D2=COUNTIF($A$2:$A$11,"*"&_name_list&"*")
F2:H2F2=IFERROR(INDEX(_name_list,MATCH(F$1,COUNTIF($A$2:$A$11,"*"&_name_list&"*"),0)),"-")
F4:H12F4=IFERROR(INDEX(_name_list,MATCH(SMALL(IF(OFFSET(_name_list,,1,,)=F$1,OFFSET(_name_list,,1,,)+ROW(_name_list),"~"),ROW()-3),IF(OFFSET(_name_list,,1,,)=F$1,OFFSET(_name_list,,1,,)+ROW(_name_list),"~"),0)),"-")
Dynamic array formulas.
Named Ranges
NameRefers ToCells
_name_list=Blad1!$C$2:$C$5F4:H12, F2:H2, D2
 
Upvote 0
Thank you very much.. I really appreciate your helping nature and Excel Skills

This works fine for me.

I have one more question.. can this calculation be done t be done on the Array produced in Cell F2 in the following table.. I think if we you use array produced in the cell F2 for further processing .. Offset formula won't work on it.. but Index formula can be used to know the row where ( 1+1+1+0 (sum of first row ); 0+0+0+0 (sum of second row) ; 1+1+0+0 (sum of third row and so.. on ) is greater than a certain number..

I mean ..I want to use array shown in F2 for further processing as there are a number of list which will be compared against the party name..


Book1
ABCDEF
1Party Names_Name List
2Teotia Plastic IndustriesTeotiaFormula=(LEN($A$2:$A$11)-LEN(SUBSTITUTE($A$2:$A$11,TRANSPOSE($C$2:$C$5),"")))/LEN(TRANSPOSE($C$2:$C$5))
3Telu Raman febricsPlasticResult={1,1,1,0 ; 0,0,0,0 ; 1,1,0,0 ; 0,0,0,0 ; 0,0,0,1; 0,0,1,1 ; 0,1,1,1 ; 0,0,0,0 ; 1,0,0,1; 0,0,0,0}
4Teotia Plastic Company LimitedIndustries
5Kedar Nath GarmentsMohan(This means 1st Row has three matches from the name list, Second row None, Third Row 2 Matches so on..)
6Mohan Raj Company
7Mohan Raj Industries
8Mohan Plastic Industries
9Aero Club Plot No
10Teotia Mohan James
11Aish Industry
12I have to find row first row where number of matches are greater than say (2 or 3) for which I have to add elements of each row ofarray produced by the formula and I have will have to do it for every row
Sheet3


Map1
ABCDEFGH
1Party Names_Name List234
2Teotia Plastic IndustriesTeotia3-TeotiaMohan
3Telu Raman febricsPlastic3
4Teotia Plastic Company LimitedIndustries3-TeotiaMohan
5Kedar Nath GarmentsMohan4-Plastic-
6Mohan Raj Company-Industries-
7Mohan Raj Industries---
8Mohan Plastic Industries---
9Aero Club Plot No ---
10Teotia Mohan James---
11Aish Industry ---
12---
Blad1
Cell Formulas
RangeFormula
D2:D5D2=COUNTIF($A$2:$A$11,"*"&_name_list&"*")
F2:H2F2=IFERROR(INDEX(_name_list,MATCH(F$1,COUNTIF($A$2:$A$11,"*"&_name_list&"*"),0)),"-")
F4:H12F4=IFERROR(INDEX(_name_list,MATCH(SMALL(IF(OFFSET(_name_list,,1,,)=F$1,OFFSET(_name_list,,1,,)+ROW(_name_list),"~"),ROW()-3),IF(OFFSET(_name_list,,1,,)=F$1,OFFSET(_name_list,,1,,)+ROW(_name_list),"~"),0)),"-")
Dynamic array formulas.
Named Ranges
NameRefers ToCells
_name_list=Blad1!$C$2:$C$5F4:H12, F2:H2, D2
 
Upvote 0
You can use this to sum the values in each row of the array.
Excel Formula:
=MMULT((LEN($A$2:$A$11)-LEN(SUBSTITUTE($A$2:$A$11,TRANSPOSE($C$2:$C$5),"")))/LEN(TRANSPOSE($C$2:$C$5)),ROW(C2:C5)^0)
 
Upvote 0
Solution
You can use this to sum the values in each row of the array.
Excel Formula:
=MMULT((LEN($A$2:$A$11)-LEN(SUBSTITUTE($A$2:$A$11,TRANSPOSE($C$2:$C$5),"")))/LEN(TRANSPOSE($C$2:$C$5)),ROW(C2:C5)^0)

thank your very much..



Yes.. but I want solution for Excel 2007
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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