Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I SUM multiple results from a VLOOKUP?

I am using a VLOOKUP to look up the name of an employee and return the hours
they worked on all projects for each day. However an employee is able to
work on multiple projects, which causes for multiple entries in the vlookup
range. How do I get it to sum these numbers and provide me with one result?
Currently it is returning the first result found in the range.

I am currently using the following VLOOKUP formula:
=VLOOKUP($B14,Mon!$D$4:$Q$100,13,0).

Any help is greatly appreciated!!
Melissa
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 169
Default How do I SUM multiple results from a VLOOKUP?

Use a SUMIF function

=SUMIF(employee_list,name,hours_worked)

--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"garnm2" wrote:

I am using a VLOOKUP to look up the name of an employee and return the hours
they worked on all projects for each day. However an employee is able to
work on multiple projects, which causes for multiple entries in the vlookup
range. How do I get it to sum these numbers and provide me with one result?
Currently it is returning the first result found in the range.

I am currently using the following VLOOKUP formula:
=VLOOKUP($B14,Mon!$D$4:$Q$100,13,0).

Any help is greatly appreciated!!
Melissa

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default How do I SUM multiple results from a VLOOKUP?


From you formula, if seems that in the table D4:Q100 of worksheet Mon:
column D has the name/id that you are looking for (the value in B14)
and Q has the data to be summed. I would have thought
=VLOOKUP($B14,Mon!$D$4:$Q$100,14,0 (fourteen not thirteen) would have found
one value.

Of course, VLOOKUP find the first value only. To find multiple values use
=SUMPRODUCT(--(Mon!D4:D100=B14),Mon!Q4:Q100)
I will leave you to pepper this with $s

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"garnm2" wrote in message
...
I am using a VLOOKUP to look up the name of an employee and return the
hours
they worked on all projects for each day. However an employee is able to
work on multiple projects, which causes for multiple entries in the
vlookup
range. How do I get it to sum these numbers and provide me with one
result?
Currently it is returning the first result found in the range.

I am currently using the following VLOOKUP formula:
=VLOOKUP($B14,Mon!$D$4:$Q$100,13,0).

Any help is greatly appreciated!!
Melissa



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Results for Vlookup in one column Curtd Excel Worksheet Functions 3 March 14th 08 07:04 PM
Multiple results in Vlookup sarajane18 Excel Discussion (Misc queries) 2 August 10th 07 08:54 PM
Looking up multiple results with VLOOKUP Bob Excel Worksheet Functions 7 July 23rd 07 08:18 PM
how to return multiple results in vlookup? Landa Excel Worksheet Functions 3 July 20th 06 08:27 AM
Add multiple vlookup results Dawn Excel Worksheet Functions 6 June 20th 06 10:06 PM


All times are GMT +1. The time now is 06:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"