Extract Unique Records w/Pivot Tables or Formulas

datadrvn

Board Regular
Joined
Apr 7, 2005
Messages
86
I’ve put forth an honest couple of hours sorting through this message board for help on extracting data and such but without finding a successful, non-vba solution.

I have a list of “job” numbers and for any given job number I have several estimates I might receive. For any given estimate, I also have an approved amount. The approach thus far is to have a single line-item for a given job and put several repeat columns to the right, each group of columns being unique for a particular estimate. This make the spreadsheet rather messy with lots of left-right scrolling to see details.

I would rather take a more flat, data-centric (or “records”) approach and extract out the information I need as I need it, preferably with pivot tables or formulas. Pivot tables work well for me; it’s the simplest way I know of to generate a list of unique job numbers in a different worksheet. The challenge I face is two-fold:

1) How do I force the Pivot table to bring forward ONLY the most recent estimate’s hours, i.e., of the 5 estimates I might have for a job, I only want to see the most recent date and the estimated amount? The raw data has a date and we never get more than one estimate in the same day for the same job.
2) How might I pull forward the most recent approved amount right along side of the item 1 information above? This is tricky because the most recently approved amount may be on an older estimate (it takes time to obtain approvals while estimates continue to mature), i.e., on a different “record’ than the item pulled back with item 1 above.

I’m willing to restructure my data, including adding any “helper” columns to make this task simpler.
Est File 0.1.xls
ABCDEFGHIJK
1Job#EstTypeEstDateEstHrsAppr'dHrsNotes
212345Ph101/31/072,000.002,000.00
312345Ph202/27/073,000.002,800.00Didn'tapprovetotalestimate
412345Ph311/06/072,500.00
554321Ph103/15/07550.00550.00
654321Ph105/25/07850.00Scopeincreased;newestimatebutnotnewestimatephase
754321Ph209/15/071,000.00
8
9
10
11ExampleofDesiredOutput-wantonadifferentworksheet
12Job#CurrEstTypeCurrEstDateCurrEstHrsAppr'dEstTypeAppr'dEstDateAppr'dHrs
1312345Ph311/06/072,500.00Ph202/27/072,800.00
1454321Ph209/15/071,000.00Ph103/15/07550.00
EDS-Active
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Thanks John. I hadn't come across this specific post in my efforts. I remain hopeful for a formula / pivot table approach. I can absoultely implement what you've suggested (auto-filter) so i'll see what suggestions continue to flow in. Thanks again. Wayne
 
Upvote 0

Forum statistics

Threads
1,215,157
Messages
6,123,340
Members
449,097
Latest member
thnirmitha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top