ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct using Tables (https://www.excelbanter.com/excel-worksheet-functions/214863-sumproduct-using-tables.html)

jonssmaster

Sumproduct using Tables
 
I have the following formula that works just fine, except that I need help
with the formula when G33 is blank. I would like the formula cell (H33) to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")



jonssmaster

Sumproduct using Tables
 
Sorry...I meant when cell "G" is blank. It ranges from G27+. Thanks.

"jonssmaster" wrote:

I have the following formula that works just fine, except that I need help
with the formula when G33 is blank. I would like the formula cell (H33) to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")



T. Valko

Sumproduct using Tables
 
Try this:

=IF(G53="","",CHOOSE(........))

You can save a few keystrokes by replacing that last SUMPRODUCT:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)

Can be expressed as:

+(AND(E53=$A$24,G53=$B$24)*$D$24)

--
Biff
Microsoft Excel MVP


"jonssmaster" wrote in message
...
I have the following formula that works just fine, except that I need help
with the formula when G33 is blank. I would like the formula cell (H33)
to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")





T. Valko

Sumproduct using Tables
 
+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)
Can be expressed as:
+(AND(E53=$A$24,G53=$B$24)*$D$24)


Or even:

+(E53=$A$24)*(G53=$B$24)*$D$24


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=IF(G53="","",CHOOSE(........))

You can save a few keystrokes by replacing that last SUMPRODUCT:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)

Can be expressed as:

+(AND(E53=$A$24,G53=$B$24)*$D$24)

--
Biff
Microsoft Excel MVP


"jonssmaster" wrote in message
...
I have the following formula that works just fine, except that I need help
with the formula when G33 is blank. I would like the formula cell (H33)
to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")







jonssmaster

Sumproduct using Tables
 
Thank you for the help. I'm a little new at this, so I'm not sure where to
insert the "If" statement into the existing formula and/or what I should be
entering in the parenthesis after choose.

"T. Valko" wrote:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)
Can be expressed as:
+(AND(E53=$A$24,G53=$B$24)*$D$24)


Or even:

+(E53=$A$24)*(G53=$B$24)*$D$24


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=IF(G53="","",CHOOSE(........))

You can save a few keystrokes by replacing that last SUMPRODUCT:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)

Can be expressed as:

+(AND(E53=$A$24,G53=$B$24)*$D$24)

--
Biff
Microsoft Excel MVP


"jonssmaster" wrote in message
...
I have the following formula that works just fine, except that I need help
with the formula when G33 is blank. I would like the formula cell (H33)
to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")








David Biddulph[_2_]

Sumproduct using Tables
 
The suggestions that have been given to you are changes to your existing
formula.
Change =CHOOSE(........) to =IF(G53="","",CHOOSE(........))

Similarly in each other case, just change the relevant sections of your
existing formula as Tony suggests.
--
David Biddulph

"jonssmaster" wrote in message
...
Thank you for the help. I'm a little new at this, so I'm not sure where
to
insert the "If" statement into the existing formula and/or what I should
be
entering in the parenthesis after choose.

"T. Valko" wrote:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)
Can be expressed as:
+(AND(E53=$A$24,G53=$B$24)*$D$24)


Or even:

+(E53=$A$24)*(G53=$B$24)*$D$24


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=IF(G53="","",CHOOSE(........))

You can save a few keystrokes by replacing that last SUMPRODUCT:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)

Can be expressed as:

+(AND(E53=$A$24,G53=$B$24)*$D$24)

--
Biff
Microsoft Excel MVP


"jonssmaster" wrote in message
...
I have the following formula that works just fine, except that I need
help
with the formula when G33 is blank. I would like the formula cell
(H33)
to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")










jonssmaster

Sumproduct using Tables
 
Works Great. Thanks.

One last thing...how would I have N/A show up if G34 is text, like VAC?

=IF(G34="","",CHOOSE(SUMPRODUCT(--($A$1:$A$11=E34),--(G34=$B$1:$B$11),$D$1:$D$11)+SUMPRODUCT(--(A14:A18=E34),--(G34=B14:B18),D14:D18)+SUMPRODUCT(--(E34=$A$20:$A$24),--(G34$B$20:$B$24),--(G34<=$C$20:$C$24),$D$20:$D$24)+(E50=$A$25)*(G50=$ B$25)*$D$25,"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")

"David Biddulph" wrote:

The suggestions that have been given to you are changes to your existing
formula.
Change =CHOOSE(........) to =IF(G53="","",CHOOSE(........))

Similarly in each other case, just change the relevant sections of your
existing formula as Tony suggests.
--
David Biddulph

"jonssmaster" wrote in message
...
Thank you for the help. I'm a little new at this, so I'm not sure where
to
insert the "If" statement into the existing formula and/or what I should
be
entering in the parenthesis after choose.

"T. Valko" wrote:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)
Can be expressed as:
+(AND(E53=$A$24,G53=$B$24)*$D$24)

Or even:

+(E53=$A$24)*(G53=$B$24)*$D$24


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=IF(G53="","",CHOOSE(........))

You can save a few keystrokes by replacing that last SUMPRODUCT:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)

Can be expressed as:

+(AND(E53=$A$24,G53=$B$24)*$D$24)

--
Biff
Microsoft Excel MVP


"jonssmaster" wrote in message
...
I have the following formula that works just fine, except that I need
help
with the formula when G33 is blank. I would like the formula cell
(H33)
to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")











David Biddulph[_2_]

Sumproduct using Tables
 
IF(ISTEXT(G34),NA(),IF(your existing formula))
--
David Biddulph

"jonssmaster" wrote in message
...
Works Great. Thanks.

One last thing...how would I have N/A show up if G34 is text, like VAC?

=IF(G34="","",CHOOSE(SUMPRODUCT(--($A$1:$A$11=E34),--(G34=$B$1:$B$11),$D$1:$D$11)+SUMPRODUCT(--(A14:A18=E34),--(G34=B14:B18),D14:D18)+SUMPRODUCT(--(E34=$A$20:$A$24),--(G34$B$20:$B$24),--(G34<=$C$20:$C$24),$D$20:$D$24)+(E50=$A$25)*(G50=$ B$25)*$D$25,"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")

"David Biddulph" wrote:

The suggestions that have been given to you are changes to your existing
formula.
Change =CHOOSE(........) to =IF(G53="","",CHOOSE(........))

Similarly in each other case, just change the relevant sections of your
existing formula as Tony suggests.
--
David Biddulph

"jonssmaster" wrote in message
...
Thank you for the help. I'm a little new at this, so I'm not sure
where
to
insert the "If" statement into the existing formula and/or what I
should
be
entering in the parenthesis after choose.

"T. Valko" wrote:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)
Can be expressed as:
+(AND(E53=$A$24,G53=$B$24)*$D$24)

Or even:

+(E53=$A$24)*(G53=$B$24)*$D$24


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=IF(G53="","",CHOOSE(........))

You can save a few keystrokes by replacing that last SUMPRODUCT:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)

Can be expressed as:

+(AND(E53=$A$24,G53=$B$24)*$D$24)

--
Biff
Microsoft Excel MVP


"jonssmaster" wrote in
message
...
I have the following formula that works just fine, except that I
need
help
with the formula when G33 is blank. I would like the formula cell
(H33)
to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")













jonssmaster

Sumproduct using Tables
 
Thank you VERY much. It works wonderfully.

"David Biddulph" wrote:

IF(ISTEXT(G34),NA(),IF(your existing formula))
--
David Biddulph

"jonssmaster" wrote in message
...
Works Great. Thanks.

One last thing...how would I have N/A show up if G34 is text, like VAC?

=IF(G34="","",CHOOSE(SUMPRODUCT(--($A$1:$A$11=E34),--(G34=$B$1:$B$11),$D$1:$D$11)+SUMPRODUCT(--(A14:A18=E34),--(G34=B14:B18),D14:D18)+SUMPRODUCT(--(E34=$A$20:$A$24),--(G34$B$20:$B$24),--(G34<=$C$20:$C$24),$D$20:$D$24)+(E50=$A$25)*(G50=$ B$25)*$D$25,"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")

"David Biddulph" wrote:

The suggestions that have been given to you are changes to your existing
formula.
Change =CHOOSE(........) to =IF(G53="","",CHOOSE(........))

Similarly in each other case, just change the relevant sections of your
existing formula as Tony suggests.
--
David Biddulph

"jonssmaster" wrote in message
...
Thank you for the help. I'm a little new at this, so I'm not sure
where
to
insert the "If" statement into the existing formula and/or what I
should
be
entering in the parenthesis after choose.

"T. Valko" wrote:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)
Can be expressed as:
+(AND(E53=$A$24,G53=$B$24)*$D$24)

Or even:

+(E53=$A$24)*(G53=$B$24)*$D$24


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=IF(G53="","",CHOOSE(........))

You can save a few keystrokes by replacing that last SUMPRODUCT:

+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24)

Can be expressed as:

+(AND(E53=$A$24,G53=$B$24)*$D$24)

--
Biff
Microsoft Excel MVP


"jonssmaster" wrote in
message
...
I have the following formula that works just fine, except that I
need
help
with the formula when G33 is blank. I would like the formula cell
(H33)
to
remain blank if no value has been entered. Any suggestions?

=CHOOSE(SUMPRODUCT(--($A$1:$A$17=E53),--(G53=$B$1:$B$17),$D$1:$D$17)+SUMPRODUCT(--(E53=$A$19:$A$23),--(G53$B$19:$B$23),--(G53<=$C$19:$C$23),$D$19:$D$23)+SUMPRODUCT(--(E53=$A$24),--(G53=$B$24),$D$24),"Inconsistent","Does
Not Meet","Successful","Excellent","Exceptional","N/A")















All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com