LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Carrying out calculations on segments of data from within a workbo

I have a list of data - which has the potential to be up to 10,000 rows in
length.
The structure of the date is as follows (Although fairly simplified): Each
Ref No set of rows has the capacity to be from 2 to 14 rows in size.
A B C
Ref NO Price 1 Price 2
1 11111 4000 250
2 11111 4000 4000
3 11111 4000 3000
4 22222 3000 1200
4 22222 3000 3000
5 33333 2500 450
6 33333 2500 2500
7 44444 4500 4500
8 44444 4500 3000
9 44444 4500 200
10 44444 4500 2500
11 44444 4500 200

What I would like to be able to do with some sort of drag and drop or VB
coding without carrying out an individual manipulation of each Ref No
Grouping is to take the Price 1 amount for each Ref No (Which will always be
the same on each row for that reference) and apportion it in a percentage
commensurate with the sum and individual parts of the Price 2 row figures:

Ie for the 44444 set of data: i would like to be able to take 4500, divide
it by 10,400,( the sum of the price codes accociated with 44444 in column C)
and then create a new column which multiplies that answer out by column C's
individual price:

A B C New Column
7 44444 4500 4500 4500/10400 *4500
8 44444 4500 3000 4500/10400 *3000
9 44444 4500 200 4500/10400 *200
10 44444 4500 2500 4500/10400 *2500
11 44444 4500 200 4500/10400 *200


Any Ideas would be most welcome

Many Thanks

Gordon

 
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
File Paths and Carrying Data into Future Budget Periods ljubav Setting up and Configuration of Excel 0 May 7th 08 06:38 PM
Carrying data over in worksheets roxiemayfield Excel Worksheet Functions 4 December 5th 07 10:00 PM
Carrying Detail Data to Subtotal Row PatK Excel Worksheet Functions 0 August 16th 06 03:47 PM
automatically show data entered on another sheet within the workbo leah Excel Worksheet Functions 2 May 24th 06 02:49 PM
How do I create a dropdown list using data from a different workbo VFPguruExcelNovice Excel Worksheet Functions 4 March 6th 06 07:50 PM


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