Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Consolidate ...problem

Public Sub consolidatewithatwist()
Dim myArray As Variant

Sheets("aaa").Range("a25:f32").Name = "Rng1"
Sheets("bbb").Range("a25:f32").Name = "Rng2"
Sheets("ccc").Range("a25:f32").Name = "Rng3"


myArray = Array("Rng1", "Rng2", "Rng3")

Sheets("AveragePriceFlowers").Select
Range("A10").Select
Cells.Clear
Range("a10").Consolidate Sources:=myArray, Function:=xlSum,
TopRow:=True, LeftColumn:= _
True, CreateLinks:=False


End Sub

Each range(Identical) consists of
ItemCode/Description/field3/field4/field5/Quantity
Variable rows between 3-10 rows

Here what I get

The items summarized correctly ie I get "unique" item codes
The quantity field summarized correctly
The Description Dissapears from all summarized rows
Also I get Fields3-5 Also summed.

Is this the expected behaviour ? and how I can get the description And
prevent fields3-5 from being summarized Examples of these fields: unit
price !!! no sense getting a sum for ...

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
Consolidate User Excel Discussion (Misc queries) 1 April 6th 10 01:52 PM
Consolidate bobby769 Excel Discussion (Misc queries) 5 February 8th 10 08:53 PM
consolidate Consolidt Excel Discussion (Misc queries) 1 May 17th 06 06:45 PM
Consolidate Michele Excel Discussion (Misc queries) 3 October 12th 05 02:06 PM
Consolidate Doria/Warris Excel Programming 3 June 20th 04 09:43 PM


All times are GMT +1. The time now is 08:29 PM.

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"