Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RKS RKS is offline
external usenet poster
 
Posts: 63
Default sumif with multiply-rks

hi
I have long sheet sheet which have many colour with size and CTN is No of
carton
I want to summary of each colour wise, size wise total qty.

A B C D E F
COLOUR <----SIZE------- TOTAL CTN
S M L
RED 10 10 10 30 5
150 TOTAL QTY
BLACK 5 5 5 15 2
30 TOTAL QTY
RED 10 10 10 30 3
150 TOTAL QTY

I am using this formula =SUMIF($A$3:$A$5,"RED",$B$3:$B$5) ITS GIVE 20 which
is right. but i wnts its multiply by CTN column like 10*5 +10*3=80

anybody please help me how its possible. please urgent...

Thanks
RKS






  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumif with multiply-rks

Try: =SUMPRODUCT(--($A$3:$A$5="RED"),$B$3:$B$5*$F$3:$F$5)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
"RKS" wrote:
I have long sheet sheet which have many colour with size and CTN is No of
carton
I want to summary of each colour wise, size wise total qty.

A B C D E F
COLOUR <----SIZE------- TOTAL CTN
S M L
RED 10 10 10 30 5
150 TOTAL QTY
BLACK 5 5 5 15 2
30 TOTAL QTY
RED 10 10 10 30 3
150 TOTAL QTY

I am using this formula =SUMIF($A$3:$A$5,"RED",$B$3:$B$5) ITS GIVE 20 which
is right. but i wnts its multiply by CTN column like 10*5 +10*3=80

anybody please help me how its possible. please urgent...

Thanks
RKS






  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default sumif with multiply-rks

=SUMPRODUCT(--(A3:A5="RED"),B3:B5,F3:F5)
Regards,
Stefi


€˛RKS€¯ ezt Ć*rta:

hi
I have long sheet sheet which have many colour with size and CTN is No of
carton
I want to summary of each colour wise, size wise total qty.

A B C D E F
COLOUR <----SIZE------- TOTAL CTN
S M L
RED 10 10 10 30 5
150 TOTAL QTY
BLACK 5 5 5 15 2
30 TOTAL QTY
RED 10 10 10 30 3
150 TOTAL QTY

I am using this formula =SUMIF($A$3:$A$5,"RED",$B$3:$B$5) ITS GIVE 20 which
is right. but i wnts its multiply by CTN column like 10*5 +10*3=80

anybody please help me how its possible. please urgent...

Thanks
RKS






  #4   Report Post  
Posted to microsoft.public.excel.misc
RKS RKS is offline
external usenet poster
 
Posts: 63
Default sumif with multiply-rks

Hi Max
Thanks for reply
its working in new sheet. but not working my sheet. i think my column f hv
some blank and some place in character. pls advice me or change ur formula so
its working both condition

waiting ur reply
once again thanks
rks


"Max" wrote:

Try: =SUMPRODUCT(--($A$3:$A$5="RED"),$B$3:$B$5*$F$3:$F$5)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
"RKS" wrote:
I have long sheet sheet which have many colour with size and CTN is No of
carton
I want to summary of each colour wise, size wise total qty.

A B C D E F
COLOUR <----SIZE------- TOTAL CTN
S M L
RED 10 10 10 30 5
150 TOTAL QTY
BLACK 5 5 5 15 2
30 TOTAL QTY
RED 10 10 10 30 3
150 TOTAL QTY

I am using this formula =SUMIF($A$3:$A$5,"RED",$B$3:$B$5) ITS GIVE 20 which
is right. but i wnts its multiply by CTN column like 10*5 +10*3=80

anybody please help me how its possible. please urgent...

Thanks
RKS






  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumif with multiply-rks

Try wrap a TRIM around the text range for improved robustness:
=SUMPRODUCT(--(TRIM($A$3:$A$5)="RED"),$B$3:$B$5*$F$3:$F$5)

P/s: Pl press the YES buttons (like the one below) for ALL responses which
help to answer your query
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
"RKS" wrote:
Hi Max
Thanks for reply
its working in new sheet. but not working my sheet. i think my column f hv
some blank and some place in character. pls advice me or change ur formula so
its working both condition




  #6   Report Post  
Posted to microsoft.public.excel.misc
RKS RKS is offline
external usenet poster
 
Posts: 63
Default sumif with multiply-rks

hi Max

It Still show #VALUE! error

RKS


"Max" wrote:

Try wrap a TRIM around the text range for improved robustness:
=SUMPRODUCT(--(TRIM($A$3:$A$5)="RED"),$B$3:$B$5*$F$3:$F$5)

P/s: Pl press the YES buttons (like the one below) for ALL responses which
help to answer your query
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
"RKS" wrote:
Hi Max
Thanks for reply
its working in new sheet. but not working my sheet. i think my column f hv
some blank and some place in character. pls advice me or change ur formula so
its working both condition


  #7   Report Post  
Posted to microsoft.public.excel.misc
RKS RKS is offline
external usenet poster
 
Posts: 63
Default sumif with multiply-rks

Hi Max,
When i m using =SUMPRODUCT(--(TRIM($A$3:$A$5)="RED"),$B$3:$B$5) this its
working fine. no error but when i m using
=SUMPRODUCT(--(TRIM($A$3:$A$5)="RED"),$B$3:$B$5*$F$3:$F$5) its show #VALUE!
error.

It means problem is only multiplication * $F$3:$F$5. In F column have some
blank & character. and colour row column have numeric like 1,2,3 etc.

RKS






"RKS" wrote:

hi Max

It Still show #VALUE! error

RKS


"Max" wrote:

Try wrap a TRIM around the text range for improved robustness:
=SUMPRODUCT(--(TRIM($A$3:$A$5)="RED"),$B$3:$B$5*$F$3:$F$5)

P/s: Pl press the YES buttons (like the one below) for ALL responses which
help to answer your query
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
"RKS" wrote:
Hi Max
Thanks for reply
its working in new sheet. but not working my sheet. i think my column f hv
some blank and some place in character. pls advice me or change ur formula so
its working both condition


  #8   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default sumif with multiply-rks

Try this SUM(IF(...)) alternative, which needs to be array-entered, press
CTRL+SHIFT+ENTER to confirm the formula:
=SUM(IF((TRIM($A$3:$A$5)="RED")*(ISNUMBER($B$3:$B$ 5))*(ISNUMBER($F$3:$F$5)),$B$3:$B$5*$F$3:$F$5))

Above tested ok here, it will ignore text values in either col B or col F
which would otherwise cause the #VALUE! error in the earlier sumproduct
expression
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
"RKS" wrote:
Hi Max,
When i m using =SUMPRODUCT(--(TRIM($A$3:$A$5)="RED"),$B$3:$B$5) this its
working fine. no error but when i m using
=SUMPRODUCT(--(TRIM($A$3:$A$5)="RED"),$B$3:$B$5*$F$3:$F$5) its show #VALUE!
error.

It means problem is only multiplication * $F$3:$F$5. In F column have some
blank & character. and colour row column have numeric like 1,2,3 etc.


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
multiply jackievar Excel Discussion (Misc queries) 7 June 5th 07 05:19 PM
look up and multiply Wibble Excel Discussion (Misc queries) 5 May 8th 07 09:08 AM
multiply formula where 1 cell has a (sumif) formula as a result kcip Excel Worksheet Functions 1 May 3rd 07 07:41 AM
add value of 4 cells, multiply by 3 subtract 72 multiply by 80% George A. Yorks Excel Discussion (Misc queries) 10 October 25th 06 09:45 PM
multiply Leonard Excel Worksheet Functions 1 October 19th 05 12:09 AM


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

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

About Us

"It's about Microsoft Excel"