Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jjonesrealtor
 
Posts: n/a
Default Comparing avg value to other data in a group


I need to compare a subtotal value to each set of data for that group.
For example,

part # status $ amount

1002 Active 20.00
1002 Active 25.00
1002 Sold 40.00
1002 Sold 60.00
1003 Active 55.00
1003 Sold 60.00
1033 Sold 45.00

In other words, I need to find the avg price for the 1002 Solds. Then I
need to calculate the difference of that value to each one the 1002
Actives. This will be true for each part #. I don't know if I need to
use pivot tables or subtotals, etc...

Any help would be greatly appreciated.... I need to figure this out
very badly for work. It would be a great help. If anyone has an example
of something similiar already in use, they can Email me at
.


--
jjonesrealtor
------------------------------------------------------------------------
jjonesrealtor's Profile:
http://www.excelforum.com/member.php...o&userid=25291
View this thread: http://www.excelforum.com/showthread...hreadid=387789

  #2   Report Post  
Norman Jones
 
Posts: n/a
Default

Hi J,

You have a suggestion in the Programming NG and an advice in the Excel NG.


---
Regards,
Norman



"jjonesrealtor"
wrote in message
news:jjonesrealtor.1saemb_1121558701.2991@excelfor um-nospam.com...

I need to compare a subtotal value to each set of data for that group.
For example,

part # status $ amount

1002 Active 20.00
1002 Active 25.00
1002 Sold 40.00
1002 Sold 60.00
1003 Active 55.00
1003 Sold 60.00
1033 Sold 45.00

In other words, I need to find the avg price for the 1002 Solds. Then I
need to calculate the difference of that value to each one the 1002
Actives. This will be true for each part #. I don't know if I need to
use pivot tables or subtotals, etc...

Any help would be greatly appreciated.... I need to figure this out
very badly for work. It would be a great help. If anyone has an example
of something similiar already in use, they can Email me at
.


--
jjonesrealtor
------------------------------------------------------------------------
jjonesrealtor's Profile:
http://www.excelforum.com/member.php...o&userid=25291
View this thread: http://www.excelforum.com/showthread...hreadid=387789



  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

For the average:

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=AVERAGE(IF(A1:A7=1002,IF(B1:B7="sold",C1:C7)))

Then I need to calculate the difference of that value to each one the 1002
Actives.


Not sure what you mean by that. The avg for "1002 sold" is 50.

20-50
25-50

???

Biff

"jjonesrealtor"
wrote in message
news:jjonesrealtor.1saemb_1121558701.2991@excelfor um-nospam.com...

I need to compare a subtotal value to each set of data for that group.
For example,

part # status $ amount

1002 Active 20.00
1002 Active 25.00
1002 Sold 40.00
1002 Sold 60.00
1003 Active 55.00
1003 Sold 60.00
1033 Sold 45.00

In other words, I need to find the avg price for the 1002 Solds. Then I
need to calculate the difference of that value to each one the 1002
Actives. This will be true for each part #. I don't know if I need to
use pivot tables or subtotals, etc...

Any help would be greatly appreciated.... I need to figure this out
very badly for work. It would be a great help. If anyone has an example
of something similiar already in use, they can Email me at
.


--
jjonesrealtor
------------------------------------------------------------------------
jjonesrealtor's Profile:
http://www.excelforum.com/member.php...o&userid=25291
View this thread: http://www.excelforum.com/showthread...hreadid=387789



  #4   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Realtor,

=IF(B2="Active",C2-SUMPRODUCT((A2=$A$2:$A$8)*($B$2:$B$8="Sold")*($C$2 :$C$8))/SUMPRODUCT((A2=$A$2:$A$8)*($B$2:$B$8="Sold")),"")

Copy down with fill handle.

--
Earl Kiosterud
www.smokeylake.com

"jjonesrealtor"
wrote in message
news:jjonesrealtor.1saemb_1121558701.2991@excelfor um-nospam.com...

I need to compare a subtotal value to each set of data for that group.
For example,

part # status $ amount

1002 Active 20.00
1002 Active 25.00
1002 Sold 40.00
1002 Sold 60.00
1003 Active 55.00
1003 Sold 60.00
1033 Sold 45.00

In other words, I need to find the avg price for the 1002 Solds. Then I
need to calculate the difference of that value to each one the 1002
Actives. This will be true for each part #. I don't know if I need to
use pivot tables or subtotals, etc...

Any help would be greatly appreciated.... I need to figure this out
very badly for work. It would be a great help. If anyone has an example
of something similiar already in use, they can Email me at
.


--
jjonesrealtor
------------------------------------------------------------------------
jjonesrealtor's Profile:
http://www.excelforum.com/member.php...o&userid=25291
View this thread: http://www.excelforum.com/showthread...hreadid=387789



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
how to group a row so i can organise data by diff fields im sure i used to be able to do Excel Discussion (Misc queries) 1 June 12th 05 09:50 PM
Comparing data in tables Gerrym Excel Discussion (Misc queries) 2 March 3rd 05 08:07 PM
Help with data not getting plotted Scott Ehrlich Charts and Charting in Excel 1 January 23rd 05 05:15 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


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