Count Cellls with Specific Text and Return the Summ of the Associated Values from Another Cell

SiuGuy007

New Member
Joined
Jun 19, 2015
Messages
40
I have this spread and trying to find the correct way of count the number of cells (horizontally) that contain a specific text and add that value to an open cell. Then for the cells that have the specific text, I need to sum the values found in another cell range and all the aggregated summed total to a new cell.
A B C D E H I J K ...................
[TABLE="width: 661"]
<colgroup><col><col span="4"><col><col><col span="3"></colgroup><tbody>[TR]
[TD] 1 File
[/TD]
[TD] FI
[/TD]
[TD][/TD]
[TD]Type[/TD]
[TD][/TD]
[TD][/TD]
[TD]Case[/TD]
[TD]FI[/TD]
[TD][/TD]
[TD]Type[/TD]
[/TR]
[TR]
[TD]2 34274M
[/TD]
[TD="colspan: 2"] Diane Maly
[/TD]
[TD]Locus[/TD]
[TD][/TD]
[TD][/TD]
[TD]34272W
[/TD]
[TD="colspan: 2"]John Adberg
[/TD]
[TD]Statement[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]$25.00[/TD]
[TD][/TD]
[TD]$70.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$28.00[/TD]
[TD][/TD]
[TD]$70.00[/TD]
[/TR]
[TR]
[TD]4 4.70
[/TD]
[TD]Hours - F
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]7.25[/TD]
[TD]Hours - FI[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Counting across row 2 the specific text would be "statement" found in K2 or any other cells in row 2. For the number of Statements found the count would be added to cell B50. Than for the cells that had "statement" I need the sum of the values found in row 4 (in this example it would be H4) added to cell B51.

A B
50
51

Any help would be greatly appreciated.

SiuGuy
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi,

Is this what you mean?


Excel 2010
ABCDEFGHIJK
1FileFITypeCaseFIType
234274MDiane MalyLocus34272WJohn AdbergStatement
3$25.00$70.00$28.00$70.00
44.7Hours - F7.25Hours - FI
5
49
501
5170
Sheet1
Cell Formulas
RangeFormula
B50=COUNTIF(A2:K2,"Statement")
B51=SUMIF(A2:K2,"Statement",A3:K3)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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