Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bkt bkt is offline
external usenet poster
 
Posts: 5
Default Please help w/Sumproduct!

Hi,

Looking for a Sumproduct formula that will add the quantities in Col. C that
have (A in Col. A & "whatever" in Col. B) + Only those Quantities in Col. C
that have (Blanks in Col. A & Non-Blanks in Col. B)

Col. A Col. B Col. C
F Blank 10
A Blank 20
Blank Blank 30
F Non-Blank 40
A Non-Blank 30
Blank Non-Blank 20

Eg: 20 + 30 + 20 = 70

Thanks in advance,
bkt
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 459
Default Please help w/Sumproduct!

bkt wrote:
Hi,

Looking for a Sumproduct formula that will add the quantities in Col.
C that have (A in Col. A & "whatever" in Col. B) + Only those
Quantities in Col. C that have (Blanks in Col. A & Non-Blanks in Col.
B)

Col. A Col. B Col. C
F Blank 10
A Blank 20
Blank Blank 30
F Non-Blank 40
A Non-Blank 30
Blank Non-Blank 20

Eg: 20 + 30 + 20 = 70

Thanks in advance,
bkt


Hi bkt,

try this:

=SUMPRODUCT((A1:A6="A")*C1:C6)+SUMPRODUCT((A1:A6=" Blank")*(B1:B6="Non-Blank")*C1:C6)

this work if you have the words "Blank" and "Non-Blank" (without quotes) in
column A and B, but if you mean empty and not empty cells, you have to use
this one:

=SUMPRODUCT((A1:A6="A")*C1:C6)+SUMPRODUCT((A1:A6=" ")*(B1:B6<"")*C1:C6)


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 195
Default Please help w/Sumproduct!

Hi again

I guess Franz Verga's 2nd formula will work for you

=SUMPRODUCT((A1:A6="A")*C1:C6)+SUMPRODUCT((A1:A6=" ")*(B1:B6<"")*C1:C6)


Thanks,

Shail


bkt wrote:
Hi,

Looking for a Sumproduct formula that will add the quantities in Col. C that
have (A in Col. A & "whatever" in Col. B) + Only those Quantities in Col. C
that have (Blanks in Col. A & Non-Blanks in Col. B)

Col. A Col. B Col. C
F Blank 10
A Blank 20
Blank Blank 30
F Non-Blank 40
A Non-Blank 30
Blank Non-Blank 20

Eg: 20 + 30 + 20 = 70

Thanks in advance,
bkt


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare row contents w/Sumproduct or Array formula? uw805 Excel Worksheet Functions 5 June 6th 06 07:09 AM


All times are GMT +1. The time now is 09:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"