Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default sum of lookup values(vlookup)

hi...

How we bring multiple columns from lookup table to single cell by adding all
the lookup values?

Ex:

I have sheet1 consisting the errors details of the all employees like this...

A1 A2 A3 A4 A5
1 emp Id 1st week 2nd week 3rd week 4th week
2 805033 3 0 1 4
3 805024 4 1 2 0
4 805036 4 1 0 1
5 805042 0 2 0 0
-------------------------------------------------------------------------------
in sheet2 I need to lookup each employee with total errors in a month i.e.
1st week+2nd week+3rd week....

so The result should lookup one employee errors by adding all errors.

the result should be like this for above example:

A1 A2
1 emp Id total errors
2 805033 8
3 805024 7
4 805036 6
5 805042 2

thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default sum of lookup values(vlookup)

Hi,

Try something like:

=SUMPRODUCT((A1:A10=805033)*B1:E10)
or you can use the employee id cell
=SUMPRODUCT((A1:A10=F1)*B1:E10)

HTH
Jean-Guy

"Narendra Boga" wrote:

hi...

How we bring multiple columns from lookup table to single cell by adding all
the lookup values?

Ex:

I have sheet1 consisting the errors details of the all employees like this...

A1 A2 A3 A4 A5
1 emp Id 1st week 2nd week 3rd week 4th week
2 805033 3 0 1 4
3 805024 4 1 2 0
4 805036 4 1 0 1
5 805042 0 2 0 0
-------------------------------------------------------------------------------
in sheet2 I need to lookup each employee with total errors in a month i.e.
1st week+2nd week+3rd week....

so The result should lookup one employee errors by adding all errors.

the result should be like this for above example:

A1 A2
1 emp Id total errors
2 805033 8
3 805024 7
4 805036 6
5 805042 2

thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default sum of lookup values(vlookup)

thanks Jean-Guy. I got it.
But I wanna this in Vlookup. Bcz I have large data with totaal 56 weeks
errors data.
sometimes I need to calculate total errors done by employe in 1st week in
every month or only 4th week of every month.

Sometimes I may need only sum of selected weeks errors (like 1st week and
3rd week)

thanks for your help......


"Jean-Guy" wrote:

Hi,

Try something like:

=SUMPRODUCT((A1:A10=805033)*B1:E10)
or you can use the employee id cell
=SUMPRODUCT((A1:A10=F1)*B1:E10)

HTH
Jean-Guy

"Narendra Boga" wrote:

hi...

How we bring multiple columns from lookup table to single cell by adding all
the lookup values?

Ex:

I have sheet1 consisting the errors details of the all employees like this...

A1 A2 A3 A4 A5
1 emp Id 1st week 2nd week 3rd week 4th week
2 805033 3 0 1 4
3 805024 4 1 2 0
4 805036 4 1 0 1
5 805042 0 2 0 0
-------------------------------------------------------------------------------
in sheet2 I need to lookup each employee with total errors in a month i.e.
1st week+2nd week+3rd week....

so The result should lookup one employee errors by adding all errors.

the result should be like this for above example:

A1 A2
1 emp Id total errors
2 805033 8
3 805024 7
4 805036 6
5 805042 2

thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default sum of lookup values(vlookup)

Hi,

You can modify the formula I gave you to do that:

=SUMPRODUCT((A2:A10=F1)*(B1:E1="2nd week")*B2:E10)
where A2:A10 are ID numbers and B1:E1 are weeks title
use a cell to specify the week you want to total.

HTH
Jean-Guy
"Narendra Boga" wrote:

thanks Jean-Guy. I got it.
But I wanna this in Vlookup. Bcz I have large data with totaal 56 weeks
errors data.
sometimes I need to calculate total errors done by employe in 1st week in
every month or only 4th week of every month.

Sometimes I may need only sum of selected weeks errors (like 1st week and
3rd week)

thanks for your help......


"Jean-Guy" wrote:

Hi,

Try something like:

=SUMPRODUCT((A1:A10=805033)*B1:E10)
or you can use the employee id cell
=SUMPRODUCT((A1:A10=F1)*B1:E10)

HTH
Jean-Guy

"Narendra Boga" wrote:

hi...

How we bring multiple columns from lookup table to single cell by adding all
the lookup values?

Ex:

I have sheet1 consisting the errors details of the all employees like this...

A1 A2 A3 A4 A5
1 emp Id 1st week 2nd week 3rd week 4th week
2 805033 3 0 1 4
3 805024 4 1 2 0
4 805036 4 1 0 1
5 805042 0 2 0 0
-------------------------------------------------------------------------------
in sheet2 I need to lookup each employee with total errors in a month i.e.
1st week+2nd week+3rd week....

so The result should lookup one employee errors by adding all errors.

the result should be like this for above example:

A1 A2
1 emp Id total errors
2 805033 8
3 805024 7
4 805036 6
5 805042 2

thanks in advance.

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
Using vlookup with two lookup values Tommy[_4_] Excel Discussion (Misc queries) 5 August 22nd 07 09:48 AM
vlookup with two lookup values? Kim B. Excel Worksheet Functions 5 August 3rd 07 02:19 AM
Vlookup(?) with 2 Lookup Values o1darcie1o Excel Worksheet Functions 6 January 3rd 07 01:26 AM
How do I use vlookup with two lookup values? pinpalchris Excel Worksheet Functions 4 April 25th 06 06:57 PM
vlookup using two lookup values? tjb Excel Worksheet Functions 10 November 25th 05 05:21 AM


All times are GMT +1. The time now is 11:01 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"