Countif, Sumif , or Sum Help

jwalkerack

Board Regular
Joined
Jun 19, 2013
Messages
81
Hi there everyone.

What i would like to be able to do is count specific cells in a range that contain text. So i am able to find the total amount of cells that count text in that range

i have copied an Example data set below. i like to count the Comp1 , Comp2 , Comp3 cells for each person. If they have text in them i want to
Count 1 and then add them all up together and put this into the Count Column. i have been trying the countif funcations
But i am not sure how to specifc a range for cells which are single cells

Does any one have any idea

Thanks a lot

Person </SPAN>Count </SPAN>Comp1 </SPAN>Address1</SPAN>Phone1 </SPAN>Comp2</SPAN>Address2</SPAN>Phone2</SPAN>Comp3</SPAN>Address3</SPAN>Phone3</SPAN>
Jane </SPAN>adli </SPAN>beko </SPAN>Cityin </SPAN>
John </SPAN>Torry </SPAN>Apple </SPAN>
Jim </SPAN>Sony </SPAN>
Tony </SPAN>nike </SPAN>Mcdonalds </SPAN>
Steven </SPAN>Apple </SPAN>Beko </SPAN>Timeless</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL span=9></COLGROUP>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try this in B2 and copy down.
Code:
=SUMPRODUCT(($C$1:$K$1="comp*")+($C2:$K2<>""))
 
Last edited:
Upvote 0
Hi there ,

i tried , that but it did not seem to work , it counted all the Cells in the range and ignored the Comp as being a defining feature. Thanks for your help though
 
Upvote 0
Hi there , sorry for the late reply . Yeah that seem to do the trick , the second time around. Any ideas where the other two did not work , i am interesting in learning the structure of why it works
 
Upvote 0

Forum statistics

Threads
1,214,884
Messages
6,122,082
Members
449,064
Latest member
MattDRT

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