• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sum cells

maniche.jain

New Member
Hi,


I have data in a format as under :


ram 20 121

mohan 20 15

manish 49 544

sita 954 154

geeta 21 12


How can i sum cells which contains "h" in column A??
 
Maniche


Firstly, Welcome to the Chandoo.org Forums.


Try: =SUMPRODUCT(1*(LEFT(A:A,1)="H"),(B:B)+(C:C))
 
Hi Jain ,


I think a slight change is required , since you have mentioned that the sum is required where column A names contain the letter "H" :


=SUMPRODUCT(1*(ISNUMBER(FIND("H",UPPER(A:A)))),(B:B)+(C:C))


or


=SUMPRODUCT(1*(ISNUMBER(SEARCH("H",(A:A)))),(B:B)+(C:C))


Narayan
 
Back
Top