ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sum VLOOKUP? (https://www.excelbanter.com/excel-worksheet-functions/261294-sum-vlookup.html)

andyoftheg

Sum VLOOKUP?
 
Hi All,

I appologise if this function is currently avalible and i have missed it.
Is there a function or macro in Excel 03 which will effectivly provide the
sum of multipul VLOOKUPs?

I have a table of names and hours worked for a project.
The table is also divided into tasks, so the same name may come up numberous
times if the same person has done more than 1 task.

I would like to create a new table that gives me the total hours worked by
each person by using a vlookup (or simillar) but will add up all the results,
ather than returning the 1st result as you would get from a normal VLOOKUP.

Any ideas very much appreciated.

Many thanks,

Andy



Don Guillett[_2_]

Sum VLOOKUP?
 
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"andyoftheg" wrote in message
...
Hi All,

I appologise if this function is currently avalible and i have missed it.
Is there a function or macro in Excel 03 which will effectivly provide the
sum of multipul VLOOKUPs?

I have a table of names and hours worked for a project.
The table is also divided into tasks, so the same name may come up
numberous
times if the same person has done more than 1 task.

I would like to create a new table that gives me the total hours worked by
each person by using a vlookup (or simillar) but will add up all the
results,
ather than returning the 1st result as you would get from a normal
VLOOKUP.

Any ideas very much appreciated.

Many thanks,

Andy




Glenn

Sum VLOOKUP?
 
andyoftheg wrote:
Hi All,

I appologise if this function is currently avalible and i have missed it.
Is there a function or macro in Excel 03 which will effectivly provide the
sum of multipul VLOOKUPs?

I have a table of names and hours worked for a project.
The table is also divided into tasks, so the same name may come up numberous
times if the same person has done more than 1 task.

I would like to create a new table that gives me the total hours worked by
each person by using a vlookup (or simillar) but will add up all the results,
ather than returning the 1st result as you would get from a normal VLOOKUP.

Any ideas very much appreciated.

Many thanks,

Andy




You can use a PivotTable, or you could build a table yourself using SUMIF.

http://peltiertech.com/Excel/Pivots/pivotstart.htm

http://www.contextures.com/xlFunctions01.html#SumIf

Raj

Sum VLOOKUP?
 


Insert a new column based on the lookup values (names in your case). In that
new column use the below formula.

Consider you have names in column A. Insert a column. now your names are in
column B. so in column A .. write the below formula and drag it.

=B2&"-"&countif(B$2:B2,B2)

once done . when the name appears for first time it prints as Rajesh-1. if
it appears 2nd time then it prints as Rajesh-2 and so on for all names.


Raj...
Dont forget to click yes if you are satified with the suggestion.

"andyoftheg" wrote:

Hi All,

I appologise if this function is currently avalible and i have missed it.
Is there a function or macro in Excel 03 which will effectivly provide the
sum of multipul VLOOKUPs?

I have a table of names and hours worked for a project.
The table is also divided into tasks, so the same name may come up numberous
times if the same person has done more than 1 task.

I would like to create a new table that gives me the total hours worked by
each person by using a vlookup (or simillar) but will add up all the results,
ather than returning the 1st result as you would get from a normal VLOOKUP.

Any ideas very much appreciated.

Many thanks,

Andy



Ashish Mathur[_2_]

Sum VLOOKUP?
 
Hi,

You may read up on the SUMIF() function in the HELP menu

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"andyoftheg" wrote in message
...
Hi All,

I appologise if this function is currently avalible and i have missed it.
Is there a function or macro in Excel 03 which will effectivly provide the
sum of multipul VLOOKUPs?

I have a table of names and hours worked for a project.
The table is also divided into tasks, so the same name may come up
numberous
times if the same person has done more than 1 task.

I would like to create a new table that gives me the total hours worked by
each person by using a vlookup (or simillar) but will add up all the
results,
ather than returning the 1st result as you would get from a normal
VLOOKUP.

Any ideas very much appreciated.

Many thanks,

Andy




All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com