Pelican Parts Forums

Pelican Parts Forums (http://forums.pelicanparts.com/)
-   Off Topic Discussions (http://forums.pelicanparts.com/off-topic-discussions/)
-   -   Excel spreadsheet question to the Braintrust! (http://forums.pelicanparts.com/off-topic-discussions/816306-excel-spreadsheet-question-braintrust.html)

nikita76 06-15-2014 01:49 PM

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

Ayles 06-15-2014 02:22 PM

Pivot table should do it. You will need to combine both sheets to sum by name on the pivot.

72doug2,2S 06-15-2014 02:54 PM

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.

http://forums.pelicanparts.com/uploa...1402872466.jpg

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)+SUMPR ODUCT(--(TRIM(Sheet2!$A$1:$A$600)=TRIM(Sheet3!$A3)),--(Sheet2!$A$1:$A$600<>""),Sheet2!$D$1:$D$600)

http://forums.pelicanparts.com/uploa...1402872745.jpg

nikita76 06-15-2014 04:55 PM

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

id10t 06-15-2014 05:19 PM

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 :)

nikita76 06-15-2014 06:02 PM

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

Shaun @ Tru6 06-15-2014 06:20 PM

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.

http://forums.pelicanparts.com/uploa...1402885027.jpg

72doug2,2S 06-15-2014 06:30 PM

Quote:

Originally Posted by nikita76 (Post 8117983)
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

So one spreadsheet is the first race and one is the second?

72doug2,2S 06-15-2014 06:41 PM

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.

http://forums.pelicanparts.com/uploa...1402872466.jpg

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



http://forums.pelicanparts.com/uploa...1402886353.jpg

nikita76 06-16-2014 03:02 AM

Thanks everybody!

NRD

kiwiokie 06-16-2014 03:58 AM

You could also use the 'sum if' function using the name as the index.

72doug2,2S 06-16-2014 06:11 AM

Quote:

Originally Posted by kiwiokie (Post 8118391)
You could also use the 'sum if' function using the name as the index.

But if they are two different spreadsheets you'll need sumproduct to really work.

Don Plumley 06-16-2014 07:09 AM

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.

72doug2,2S 06-16-2014 07:31 AM

Vlookup would work only if you didn't have duplicates in the data. The Vlookup will only take the first value found.

kiwiokie 06-17-2014 03:35 PM

Quote:

Originally Posted by 72doug2,2S (Post 8118528)
But if they are two different spreadsheets you'll need sumproduct to really work.

Would make more sense to copy the tabs into one spreadsheet.

72doug2,2S 06-17-2014 03:39 PM

I probably would.


All times are GMT -8. The time now is 11:26 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website


DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.