Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2006

Tip: Looking for answers? Try searching our database.

IF Statement, Group Adding, Please help me

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Khoalty@gmail.com - 08 Nov 2006 18:14 GMT
I have a problem in using an If Statement and adding statement
together.

A        B     C     D
Carl     1      2     3
          1      2
Luis     1     1     11
Jim      1     1      1

I am trying to make an if statement where if there is anything as in
letters or words in column A, it will add whatever is in cell B and C.
So the 2nd row plus the 3rd row plus the last row will equal to 7.
Since the 3rd row has nothing in column A, it will not add C's value.
I would need the answer in one cell that adds up the whole result to 7.

Thanks for the help.
Bernard Liengme - 08 Nov 2006 18:41 GMT
Hard to do a SUMIF for criterion "is not blank" so I used
=SUMPRODUCT(--(A1:A4>""),B1:B4)+SUMPRODUCT(--(A1:A4>""),C1:C4)
For info on SUMPRODUCT see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

>I have a problem in using an If Statement and adding statement
> together.
[quoted text clipped - 12 lines]
>
> Thanks for the help.
Khoalty@gmail.com - 08 Nov 2006 19:13 GMT
Thank you Bernard,
You are definitely the Excel Guru and saved me for masses of headaches.

> Hard to do a SUMIF for criterion "is not blank" so I used
> =SUMPRODUCT(--(A1:A4>""),B1:B4)+SUMPRODUCT(--(A1:A4>""),C1:C4)
[quoted text clipped - 23 lines]
> >
> > Thanks for the help.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.