Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Sum by week number and if style is Equal to :CONC-92 or CONC-45




hello all.

I want to make a sum by week number and if style is Equal to
CONC-92 or CONC-45
I got this formula in a previous post:
With the text Week# in A1, the other text in B1:E1
=SUMIF($A$2:$A$5,G1,$B$2:$B$5)+SUMIF($A$2:$A$5,G1, $D$2:$D$5) but it does not
work since it is for a specific column and on the pivot table some times,
datas are viceversa, also I have more than four columns ,

I want results like this:
Week# 49 Week# 50
CONC-92= 27 CONC-92= 30
CONC-45= 27 CONC-45= 30


Datas are in a pivot table and...
Pivot table looks like this:
Week# CONC-92 CONC-45 CONC-92 CONC-45 ...may vary, maybe -45 or -92
49 5 5 10 10
49 2 2 10 10
50 5 5 10 10
50 5 5 10 10


--
Lorenzo DÃ*az
Cad Technician

--
Lorenzo DÃ*az
Cad Technician
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Sum by week number and if style is Equal to :CONC-92 or CONC-45

Try this formula:
=SUMPRODUCT(--($B$1:$E$1="CONC-92")*--($A$2:$A$5=$H$1)*$B$2:$E$5)

Assumes that you have the data organized as you described in your
post. $H$1 is the week number.

Just replace CONC-92 with CONC-45 or reference a cell containing that
value to modify the formula.


On Dec 12, 10:33 am, ldiaz wrote:
hello all.

I want to make a sum by week number and if style is Equal to
CONC-92 or CONC-45
I got this formula in a previous post:
With the text Week# in A1, the other text in B1:E1
=SUMIF($A$2:$A$5,G1,$B$2:$B$5)+SUMIF($A$2:$A$5,G1, $D$2:$D$5) but it does not
work since it is for a specific column and on the pivot table some times,
datas are viceversa, also I have more than four columns ,

I want results like this:
Week# 49 Week# 50
CONC-92= 27 CONC-92= 30
CONC-45= 27 CONC-45= 30

Datas are in a pivot table and...
Pivot table looks like this:
Week# CONC-92 CONC-45 CONC-92 CONC-45 ...may vary, maybe -45 or -92
49 5 5 10 10
49 2 2 10 10
50 5 5 10 10
50 5 5 10 10

--
Lorenzo Díaz
Cad Technician

--
Lorenzo Díaz
Cad Technician


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Sum by week number and if style is Equal to :CONC-92 or CONC-4

Hi Tim, this works perfectly

Thank you so much for your help
--
Lorenzo DÃ*az
Cad Technician


"Tim879" wrote:

Try this formula:
=SUMPRODUCT(--($B$1:$E$1="CONC-92")*--($A$2:$A$5=$H$1)*$B$2:$E$5)

Assumes that you have the data organized as you described in your
post. $H$1 is the week number.

Just replace CONC-92 with CONC-45 or reference a cell containing that
value to modify the formula.


On Dec 12, 10:33 am, ldiaz wrote:
hello all.

I want to make a sum by week number and if style is Equal to
CONC-92 or CONC-45
I got this formula in a previous post:
With the text Week# in A1, the other text in B1:E1
=SUMIF($A$2:$A$5,G1,$B$2:$B$5)+SUMIF($A$2:$A$5,G1, $D$2:$D$5) but it does not
work since it is for a specific column and on the pivot table some times,
datas are viceversa, also I have more than four columns ,

I want results like this:
Week# 49 Week# 50
CONC-92= 27 CONC-92= 30
CONC-45= 27 CONC-45= 30

Datas are in a pivot table and...
Pivot table looks like this:
Week# CONC-92 CONC-45 CONC-92 CONC-45 ...may vary, maybe -45 or -92
49 5 5 10 10
49 2 2 10 10
50 5 5 10 10
50 5 5 10 10

--
Lorenzo DÃ*az
Cad Technician

--
Lorenzo DÃ*az
Cad Technician



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
Sum if Week Number and style is equal to any condition ldiaz Excel Discussion (Misc queries) 2 December 11th 07 12:59 AM
Sum range of a week if condition is equal to.. ldiaz Excel Discussion (Misc queries) 3 December 7th 07 10:54 PM
group sales by week and week number Wanna Learn Excel Discussion (Misc queries) 7 November 7th 06 11:44 AM
Date & < sign I want to Conc. Jennifer Excel Worksheet Functions 2 April 24th 05 04:34 AM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM


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

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"