![]() |
|
|
|
Registered
Join Date: Mar 2004
Location: Long Island, NY
Posts: 732
|
Excel spreadsheet question to the Braintrust!
Happy Father's Day everyone!
I have an Excel spreadsheet question that I'm hoping someone can help me with! I have 2 spreadsheets, with 500 names and times on each. Some names are on both, one or the other. There are age groups, times and points associated with each name. How do I combine the 2 spreadsheets to calculate total points for each person? Manually? Thanks! NRD
__________________
1971 Volvo 142 (Fiona) 2004 BMW 525i (Ginger) 1973 BMW 3.0cs Bat Mobile resto (Gilligan) 1974 BMW 3.0cs (Penelope) 2004 Chevy Astro Van (The Skipper) |
||
![]() |
|
Registered
Join Date: Dec 2012
Location: Seattle
Posts: 8,943
|
Pivot table should do it. You will need to combine both sheets to sum by name on the pivot.
__________________
1982 911 Targa, 3.0L ROW with Webers |
||
![]() |
|
Regenerated User
|
Pivot Table should work, or you create a third page that sums the two together.
The third page consists of all individuals, this is perhaps more than 500? Assuming your duplicate names are spelled the same. ![]() Sheet1 is your first sheet Sheet2 is your second sheet Sheet3 is the combined Sheet1 and Sheet2 On the third sheet copy all the names from sheet1 and sheet2 paste in column A. Use the same titles and sort alphabetical and delete duplicates. Then in column D add this formula and copy down to the last name. The sumproduct will update the two spreadsheets whether they are open or closed. If you never need to use those other two you can hardcode the new spreadsheet. =SUMPRODUCT(--(TRIM(Sheet1!$A$1:$A$600)=TRIM(Sheet3!$A3)),--(Sheet1!$A$1:$A$600<>""),Sheet1!$D$1:$D$600)+SUMPRODUCT(--(TRIM(Sheet2!$A$1:$A$600)=TRIM(Sheet3!$A3)),--(Sheet2!$A$1:$A$600<>""),Sheet2!$D$1:$D$600) ![]()
__________________
My uncle has a country place, that no one knows about. He said it used to be a farm, before the motor law. '72 911T 2,2S motor '76 BMW 2002 |
||
![]() |
|
Registered
Join Date: Mar 2004
Location: Long Island, NY
Posts: 732
|
Thanks for your help guys!
I need to show time, points from first race AND time and points from second race, followed by total points in the last column. Thanks, NRD
__________________
1971 Volvo 142 (Fiona) 2004 BMW 525i (Ginger) 1973 BMW 3.0cs Bat Mobile resto (Gilligan) 1974 BMW 3.0cs (Penelope) 2004 Chevy Astro Van (The Skipper) |
||
![]() |
|
Registered
Join Date: Mar 2003
Posts: 10,318
|
Convert to csv file and use cat, sed, cut, and echo to create a new csv file that can be loaded into a proper database as SQL statements. Then use whatever programming language you like to connect to the db, run queries, and generate reports. Since this looks like it is for club use I'd use php and put it on the web as well
![]()
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.” |
||
![]() |
|
Registered
Join Date: Mar 2004
Location: Long Island, NY
Posts: 732
|
Thanks id10t....unfortunately, half of that makes sense to me. What would a contractors rate be for a job like this? 45-60 minutes tops for someone that knows the procedure right?
NRD
__________________
1971 Volvo 142 (Fiona) 2004 BMW 525i (Ginger) 1973 BMW 3.0cs Bat Mobile resto (Gilligan) 1974 BMW 3.0cs (Penelope) 2004 Chevy Astro Van (The Skipper) |
||
![]() |
|
![]() |
Registered
Join Date: Dec 2001
Location: Cambridge, MA
Posts: 44,268
|
I think a pivot table will work for you Nikita. Here's what our order entry system spits out to let me create production orders. I have Sizes per SKUs per Store. You have Times of Races per Person. Pretty fuzzy but I think you can see it.
![]()
__________________
Tru6 Restoration & Design |
||
![]() |
|
Regenerated User
|
So one spreadsheet is the first race and one is the second?
__________________
My uncle has a country place, that no one knows about. He said it used to be a farm, before the motor law. '72 911T 2,2S motor '76 BMW 2002 |
||
![]() |
|
Regenerated User
|
Update if each sheet is a new race.
Pivot Table should work, but relabel them time 1 and points 1/ time 2 and points 2, or you create a third page that sums the two together. The third page consists of all individuals, this is perhaps more than 500? Assuming your duplicate names are spelled the same. ![]() Sheet1 is your first sheet Sheet2 is your second sheet Sheet3 is the combined Sheet1 and Sheet2 On the third sheet copy all the names from sheet1 and sheet2 paste in column A. Use the same titles and sort alphabetical and delete duplicates. Then in columns C, D, E, and F add these formulas and copy down to the last name. The sumproduct will update the two spreadsheets whether they are open or closed. If you never need to use those other two you can hardcode the new spreadsheet. Cell C3 Time 1 =SUMPRODUCT(--(TRIM(Sheet1!$A$1:$A$600)=TRIM(Sheet3!$A3)),--(Sheet1!$A$1:$A$600<>""),Sheet1!$C$1:$C$600) Cell D Points 1 =SUMPRODUCT(--(TRIM(Sheet1!$A$1:$A$600)=TRIM(Sheet3!$A3)),--(Sheet1!$A$1:$A$600<>""),Sheet1!$D$1:$D$600) Cell E Time 2 =SUMPRODUCT(--(TRIM(Sheet2!$A$1:$A$600)=TRIM(Sheet3!$A3)),--(Sheet2!$A$1:$A$600<>""),Sheet2!$C$1:$C$600) Cell F Points 2 SUMPRODUCT(--(TRIM(Sheet2!$A$1:$A$600)=TRIM(Sheet3!$A3)),--(Sheet2!$A$1:$A$600<>""),Sheet2!$D$1:$D$600) G3 adds d3+f3 ![]()
__________________
My uncle has a country place, that no one knows about. He said it used to be a farm, before the motor law. '72 911T 2,2S motor '76 BMW 2002 Last edited by 72doug2,2S; 06-15-2014 at 07:18 PM.. |
||
![]() |
|
Registered
Join Date: Mar 2004
Location: Long Island, NY
Posts: 732
|
Thanks everybody!
NRD
__________________
1971 Volvo 142 (Fiona) 2004 BMW 525i (Ginger) 1973 BMW 3.0cs Bat Mobile resto (Gilligan) 1974 BMW 3.0cs (Penelope) 2004 Chevy Astro Van (The Skipper) |
||
![]() |
|
Registered
Join Date: Mar 2008
Location: Tulsa, Oklahoma
Posts: 1,079
|
You could also use the 'sum if' function using the name as the index.
__________________
1983 Porsche 911SC - Arrow Blue lightweight '74 Carrera look http://forums.pelicanparts.com/porsche-911-technical-forum/498568-overdue-intro-sc-hotrod-project.html |
||
![]() |
|
Regenerated User
|
But if they are two different spreadsheets you'll need sumproduct to really work.
__________________
My uncle has a country place, that no one knows about. He said it used to be a farm, before the motor law. '72 911T 2,2S motor '76 BMW 2002 |
||
![]() |
|
![]() |
Moderator
|
I would use a simple VLOOKUP - pull the missing data from Sheet 2 into Sheet 1; then paste the results into a new sheet as data (killing the formulas) to prevent subsequent fubars. Let me know if you need an example.
__________________
Don Plumley M235i memories: 87 911, 96 993, 13 Cayenne |
||
![]() |
|
Regenerated User
|
Vlookup would work only if you didn't have duplicates in the data. The Vlookup will only take the first value found.
__________________
My uncle has a country place, that no one knows about. He said it used to be a farm, before the motor law. '72 911T 2,2S motor '76 BMW 2002 |
||
![]() |
|
Registered
Join Date: Mar 2008
Location: Tulsa, Oklahoma
Posts: 1,079
|
Would make more sense to copy the tabs into one spreadsheet.
__________________
1983 Porsche 911SC - Arrow Blue lightweight '74 Carrera look http://forums.pelicanparts.com/porsche-911-technical-forum/498568-overdue-intro-sc-hotrod-project.html |
||
![]() |
|
Regenerated User
|
I probably would.
__________________
My uncle has a country place, that no one knows about. He said it used to be a farm, before the motor law. '72 911T 2,2S motor '76 BMW 2002 |
||
![]() |
|
![]() |
Thread Tools | |
Rate This Thread | |
|