Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default rather complicated table to consolidate

I have try to use pivot table to consolidate the data of the data below.
However, it is to complicate and I've lost. Any one could help me?

soure data :
"Doc:",":","1234"
"Cost","',"","Amount"
"Nil"
"Doc",":","","1235"
"Cost","","","","Amount"
"CC","","","","230.50"
"DD","","","","135"
"EE"
"Total","","","","HKD12/pc"
"Doc:",":","","1236"
"Cost","","","","Amount"
"CC","","","","220"
"EE","","","","145"
"Total","","","","USD14/pc"

Expect result
Doc CC DD EE Total
1234
1235 230.50 135 HKD12/pc
1236 220 145 USD14/pc

I wish someone could help me out. Thanks!



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default rather complicated table to consolidate

Hi

The data is a little messed up with single and double quotes.

I managed to make a pivot except for the unit cost (it does not like text).

The source data went like:

Code Type Details
1234 Doc: 1234
1234 Cost Amount
1234 Nil
1235 Doc: 1235
1235 Cost Amount
1235 CC 230.5
1235 DD 135
1235 EE
1235 Total HKD12/pc
1236 Doc: 1236
1236 Cost Amount
1236 CC 220
1236 EE 145
1236 Total USD14/pc

with a formula for code as
=IF(B2="Doc:",C2) (and copy it down)

You need to check the data and maybe delete some columns.


And here is the pivot table

Sum of Details Type
Code CC DD EE Total Grand Total
1234
1235 230.5 135 0 365.5
1236 220 145 0 365
G Total 450.5 135 145 0 730.5

The Total is the problem and that needs to be cleaned up.

It is probably easier to use a macro to work through the lines and clean
them that way.

Depending on your satisfaction with the above I will have a think about the
macro.

See what you think.

You could email me the worksheet and I will have a look. Click my name to
see my address.

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"bondtang" wrote:

I have try to use pivot table to consolidate the data of the data below.
However, it is to complicate and I've lost. Any one could help me?

soure data :
"Doc:",":","1234"
"Cost","',"","Amount"
"Nil"
"Doc",":","","1235"
"Cost","","","","Amount"
"CC","","","","230.50"
"DD","","","","135"
"EE"
"Total","","","","HKD12/pc"
"Doc:",":","","1236"
"Cost","","","","Amount"
"CC","","","","220"
"EE","","","","145"
"Total","","","","USD14/pc"

Expect result
Doc CC DD EE Total
1234
1235 230.50 135 HKD12/pc
1236 220 145 USD14/pc

I wish someone could help me out. Thanks!



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
consolidation of tables in excel with text and figures samenvoegen van sheets Excel Worksheet Functions 8 March 2nd 06 03:27 PM
Derived Columns in Pivot Table sa02000 Excel Discussion (Misc queries) 1 February 8th 06 07:18 PM
Pivot Table - Multiple consolidation Range tengreen Excel Worksheet Functions 1 July 1st 05 07:18 PM
Pivot Tables, Help? Adam Excel Discussion (Misc queries) 6 March 24th 05 02:35 PM
Consolidate data from several worksheets via pivot table mthatt Excel Worksheet Functions 0 March 23rd 05 06:51 PM


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