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 / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

sum of cells that correspond to non empty cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nada - 09 Mar 2008 09:04 GMT
hello,
if i have two columns and i want to sum the values in each cell in each
column that correspond to a nonempty cell in the other column what should i
do?
Lars-Åke Aspelin - 09 Mar 2008 09:17 GMT
>hello,
>if i have two columns and i want to sum the values in each cell in each
>column that correspond to a nonempty cell in the other column what should i
>do?

One of serveral possibilities is to use the SUMPRODUCT function

=SUMPRODUCT(- - (A1:A100<>""), B1:B100)

will sum the data for the first 100 rows of column B where the
corresponding cell i column A is non empty

Hope this helps.
Mike H - 09 Mar 2008 09:19 GMT
You could do this

=SUMPRODUCT((ISBLANK(A1:A30))*(B1:B30))

or this depending on your definition of blank
=SUMPRODUCT((A1:A30="")*(B1:B30))

Mike

> hello,
> if i have two columns and i want to sum the values in each cell in each
> column that correspond to a nonempty cell in the other column what should i
> do?
Mike H - 09 Mar 2008 09:21 GMT
have I misread your post you want to sum for non empty cells

=SUMPRODUCT((A1:A30<>"")*(B1:B30))

Mike

> hello,
> if i have two columns and i want to sum the values in each cell in each
> column that correspond to a nonempty cell in the other column what should i
> do?
Teethless mama - 09 Mar 2008 14:04 GMT
=SUMIF(A1:A100,"<>",B1:B100)

> hello,
> if i have two columns and i want to sum the values in each cell in each
> column that correspond to a nonempty cell in the other column what should i
> do?
 
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.