Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm using the following formula to lookup up my employees based on their ID#
and return the value in column 2 where a match is found. How do I sum up these matches if the employee number appears more than once? =VLOOKUP(X2,'LaborDetail'!P2:Q1000,2,FALSE) X2 = Employee ID # Column P = Employee ID # Column Q = Hours worked I want to sum up all data in column Q where the employee ID matches. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=sumproduct(--('LaborDetail'!P2:P1000=X2),'LaborDetail'!Q2:Q1000 )
"Secret Squirrel" wrote: I'm using the following formula to lookup up my employees based on their ID# and return the value in column 2 where a match is found. How do I sum up these matches if the employee number appears more than once? =VLOOKUP(X2,'LaborDetail'!P2:Q1000,2,FALSE) X2 = Employee ID # Column P = Employee ID # Column Q = Hours worked I want to sum up all data in column Q where the employee ID matches. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks!
"Toppers" wrote: =sumproduct(--('LaborDetail'!P2:P1000=X2),'LaborDetail'!Q2:Q1000 ) "Secret Squirrel" wrote: I'm using the following formula to lookup up my employees based on their ID# and return the value in column 2 where a match is found. How do I sum up these matches if the employee number appears more than once? =VLOOKUP(X2,'LaborDetail'!P2:Q1000,2,FALSE) X2 = Employee ID # Column P = Employee ID # Column Q = Hours worked I want to sum up all data in column Q where the employee ID matches. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( | Excel Worksheet Functions | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |