Average based on single field unique count __
Hello,
I have an input table part of which is below.
What I would like to get is pivot table:
Row fields: --- Type, Subtype,Engr
Data area: ----sum of hours, avg hours per unique proj#--(as you can see there are 2 unique projects.
So Eng 1 would show in the data area: 3 [total hours] & 1.5 [avg hours]
Eng2 would show in the data area: 5 [total hours] & 2.5 [avg hours]
How would I do this?
Thanks.
Proj#...Type..Subtype....Engr.....Hrs
100......A......A1A............1............3
100......A......A1A............2............4
100......A......A1A............3............5
101......A......A1A............2............1
101......A......A1A............3............10
101......A......A1A............4............2
Total hours....................................25
Anwsers to the Problem Average based on single field unique count __
Download SmartPCFixer to Fix It (Free)
Hi,
There is no way to determine the unique occurances within the pivot table, if you want to do something like this you will need to create a formula outside the pivot table to do your calculations, or you will need to do some sort of formula in the data area.
Unfortunately, I don't know how you define unique permits in the above pivot table. Here is one example:
Proj#
Type
Subtype
Engr
Hrs
Avg
100
A
A1A
1
3
1.5
100
A
A1A
2
4
2
100
A
A1A
3
5
2.5
101
A
A1A
2
1
0.5
101
A
A1A
3
10
5
101
A
A1A
4
2
1
Assume the above table is in the range A1:F7, then the array** formula in F2 is
=E2/(SUM(1/COUNTIF($A$2:$A$7,$A$2:$A$7)))
**Array - you enter this formula by pressing Ctrl+Shift+Enter instead of Enter.
You would then just add this to the Values area of the pivot table as an average. The above may need some tweeking based on exactly what you mean by unique and what you want displayed in the pivot table.
If this answer solves your problem, please check, Mark as Answered.
If this answer helps, please click the Vote as Helpful button.
Cheers Shane Devenshire
Manually editing the Windows registry to fix Error Average based on single field unique count __
Caution: Unless you an advanced PC user, we DO NOT recommend editing the Windows registry manually. Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows. We do not guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
- Click the Start button.
- Type "command" in the search box... DO NOT hit ENTER yet!
- While holding CTRL-Shift on your keyboard, hit ENTER.
- You will be prompted with a permission dialog box.
- Click Yes.
- A black box will open with a blinking cursor.
- Type "regedit" and hit ENTER.
- In the Registry Editor, select the Error 0x9C-related key (eg. Windows Operating System) you want to back up.
- From the File menu, choose Export.
- In the Save In list, select the folder where you want to save the Windows Operating System backup key.
- In the File Name box, type a name for your backup file, such as "Windows Operating System Backup".
- In the Export Range box, be sure that "Selected branch" is selected.
- Click Save.
- The file is then saved with a .reg file extension.
- You now have a backup of your MACHINE_CHECK_EXCEPTION-related registry entry.
Recommended Method to Fix the Problem: Average based on single field unique count __:
How to Fix Average based on single field unique count __ with SmartPCFixer?
1. Download SmartPCFixer . Install it on your system. Click Scan, and it will perform a scan for your computer. The errors will be shown in the scan result.
2. After the scan is done, you can see the errors and problems need to be fixed. Click Fix All.
3. The Repair part is done, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in this software. Like dll downloading, junk file cleaning and print spooler error repair.
Related: AMD Radeon HD 7800M Win8 not working [Anwsered],I can access the internet, get on facebook and get to hotmail, but I can't play games on facebook and I can't open or respond to my e-mails,I keep getting this Media Player error when I log on my computer. [Anwsered],[Anwsered] System Hanging on shutdown and restart,Unable to get the Vlookup property of the WorksheetFunction class,Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,Troubleshoot:Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive. Error,External Hard Drive not listed in Windows 7 backup wizard Tech Support,Tech Support: I'm always being signed off so annoying,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.,Referencing data in Access using Excel [Anwsered],Need Best Way To Present Data [Anwsered],Same question but for windows 7 home edition,sometimes fullscreen won't activate [Solved],Solution to Error: We bought a new computer with windows 7 and it is constantly freezing. How do we fix this?,Solution to Error: Windows 8 update crash (2013-07-22)
Read More: How Can You Fix - Backup unacceptably slow?,Troubleshooting:Backup 'change Settings\" \"Back up now\" and \"turn on schedule\" do not function properly Error,How to Fix - At home connection getting a red line and not getting wireless connection.?,Solution to Problem: Assign Macro to Button Excel 2010,Tech Support: autohide windows task bar will not hide,application not found error,any problems in a team where one has Windows XP and the other has Windows 7?,Application/Object-Defined Error,An Excel formula question where hours are totalled and cumulating,Anyone know the hardware email?
No comments:
Post a Comment