How to total data on one sheet to another

redmars

New Member
Joined
May 12, 2011
Messages
7
I have a database that have connected using the MySQL plugin to query pull the MySQL information in to excel and just need the totals of the information.

My excel is 2007, and the below is the information, just dont know how to do the formula for manipulating data.

Column D has the user id and column C has the hours, the user id can show up multiple times in the column D.

Looking to count the number of hours for the user1.
SUM = on sheet2 if column D has user1 copy and add up the number(hours) of column C.

Next count how many time user id was listed.
SUM = on sheet2 count how many time user1 name shows up in column D.

Any help is the right direction would be appreciated.

-RM
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
VoG,

Thank you very much. Something I didn't know before don't put a - in any part of the name of the sheet, causes you to band head on keyboard.

-RM
 
Upvote 0
VoG

Another question about the counting if I wanted to change how the counting was done.

=COUNTIF(Sheet1!D:D,"User1")

=COUNTIF(Sheet1!D:D,"User1")+COUNTIF(Sheet1!B:B,"NEW")

Count the user1 in D:D only if B:B has the following status: NEW, ASSIGNED, REOPENED, VERIFIED or can it be as simple say not equal to CLOSED.
 
Upvote 0
Try

=SUMPRODUCT(--(Sheet1!D1:D100="User 1"),--(Sheet1!B1:B100<>"CLOSED"))
 
Upvote 0
That works but now, but I figured I need it be excluding CLOSED and RESOLVED.

=SUMPRODUCT(--(Sheet1!D1:D100="User 1"),--(Sheet1!B1:B100<>"CLOSED"),--(Sheet1!B1:B100<>"RESOLVED"))

I tried that but tell me wrong value, is their a way to do something like or in the statement?

-RM
 
Upvote 0
Try

=SUMPRODUCT(--(Sheet1!D1:D100="User 1"),--(ISNUMBER(MATCH(Sheet1!B1:B100,{"NEW","ASSIGNED","REOPENED","VERIFIED"},0))))
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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