Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Special Calculated field for PivotTable

A part of my report needs to make use of the following three fields

Order
Delivery Number
Available (boolean field Y/N)

for e.g.
Order Delivery No. Available
1 1 Y
1 2 N
2 3 Y
3 4 Y
3 5 Y


I need to computer Order and Delivery Availability. To compute Delivery
Availability is easy. Any delivery that has Available = Y counts. Therefore
in the above example. delivery availability is 4.
Order is more complicated and this is why I need you help.
An order has many deliveries. I need excel to scan all the deliveries in
each Order and apply a Y ONLY if ALL deliveries are available.

Order Delivery No. Available Order Available
1 1 Y N
1 2 N
2 3 Y Y
3 4 Y Y
3 5 Y

Order 1 is not available because although delivery 1 is a available,
delivery 2 is not.
Order 2 is straight forward, Order 3 is available becase both delivery 4 and
5 are available.

How would I code the Order Available field using Excel formula's?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Special Calculated field for PivotTable

I put this in D2 and copied down:

=IF(COUNTIF($A$1:A2,A2)<1,"",
IF(SUMPRODUCT(--($A$1:$A$100=A1),--($C$1:$C$100="y"))
=COUNTIF($A$1:$A$100,A2),"y","n"))

Adjust the ranges to match--but you can't use whole columns.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html



Necromancer wrote:

A part of my report needs to make use of the following three fields

Order
Delivery Number
Available (boolean field Y/N)

for e.g.
Order Delivery No. Available
1 1 Y
1 2 N
2 3 Y
3 4 Y
3 5 Y

I need to computer Order and Delivery Availability. To compute Delivery
Availability is easy. Any delivery that has Available = Y counts. Therefore
in the above example. delivery availability is 4.
Order is more complicated and this is why I need you help.
An order has many deliveries. I need excel to scan all the deliveries in
each Order and apply a Y ONLY if ALL deliveries are available.

Order Delivery No. Available Order Available
1 1 Y N
1 2 N
2 3 Y Y
3 4 Y Y
3 5 Y

Order 1 is not available because although delivery 1 is a available,
delivery 2 is not.
Order 2 is straight forward, Order 3 is available becase both delivery 4 and
5 are available.

How would I code the Order Available field using Excel formula's?


--

Dave Peterson
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
Pivot Table Calculated Field steven Excel Worksheet Functions 1 August 24th 06 02:16 AM
Calculated field totals Yaron Assa Excel Discussion (Misc queries) 2 April 5th 06 07:56 AM
pb with calculated field in a pivot table Valeria Excel Discussion (Misc queries) 0 April 3rd 06 02:42 PM
Pivot Table Calculated Field (Grand total question) Linda Excel Discussion (Misc queries) 5 August 3rd 05 10:11 PM
How to create a calculated field formula based on Pivot Table resu dha17 Excel Discussion (Misc queries) 1 December 15th 04 05:39 AM


All times are GMT +1. The time now is 05:17 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"