#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Vlookup

How do you use vlookup when you have several items you want to look up and
return a total value. In this example I want to add all 3 items for a total
of 15. Using vlookup it only returns the first R5 for a total of 5

R5 5
R5 5
R5 5

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 248
Default Vlookup

If the data shown is in Col A & B of sheet2 and you have R5 in A1 of sheet1...

Enter this in B1 of sheet1
=SUMPRODUCT(--(Sheet2!A1:A100=A1),(Sheet2!B1:B100))
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

How do you use vlookup when you have several items you want to look up and
return a total value. In this example I want to add all 3 items for a total
of 15. Using vlookup it only returns the first R5 for a total of 5

R5 5
R5 5
R5 5

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Vlookup

Would I still use vlookup? I want to total R5 which would be 11 on the R5 on
the other page. All the other infor
1st page 2nd page
R5 5 R5 11
R4 2 R4 2
R3 3 R3 3
R5 4 R2 3
R2 3
R5 2

"Sheeloo" wrote:

If the data shown is in Col A & B of sheet2 and you have R5 in A1 of sheet1...

Enter this in B1 of sheet1
=SUMPRODUCT(--(Sheet2!A1:A100=A1),(Sheet2!B1:B100))
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

How do you use vlookup when you have several items you want to look up and
return a total value. In this example I want to add all 3 items for a total
of 15. Using vlookup it only returns the first R5 for a total of 5

R5 5
R5 5
R5 5

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 248
Default Vlookup


No...
This will sum all rows (Col B values) where Sheet2 COL A matches ...the
value in Sheet1 A1...

If you want to copy it down then use this
=SUMPRODUCT(--(Sheet2!A$1:A$100=A1),(Sheet2!B$1:B$100))
so that lookup range remains same... of course you need to change 100 to the
last row of your data on Sheet2...

-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

Would I still use vlookup? I want to total R5 which would be 11 on the R5 on
the other page. All the other infor
1st page 2nd page
R5 5 R5 11
R4 2 R4 2
R3 3 R3 3
R5 4 R2 3
R2 3
R5 2

"Sheeloo" wrote:

If the data shown is in Col A & B of sheet2 and you have R5 in A1 of sheet1...

Enter this in B1 of sheet1
=SUMPRODUCT(--(Sheet2!A1:A100=A1),(Sheet2!B1:B100))
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

How do you use vlookup when you have several items you want to look up and
return a total value. In this example I want to add all 3 items for a total
of 15. Using vlookup it only returns the first R5 for a total of 5

R5 5
R5 5
R5 5

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Vlookup

Thank you

"Sheeloo" wrote:


No...
This will sum all rows (Col B values) where Sheet2 COL A matches ...the
value in Sheet1 A1...

If you want to copy it down then use this
=SUMPRODUCT(--(Sheet2!A$1:A$100=A1),(Sheet2!B$1:B$100))
so that lookup range remains same... of course you need to change 100 to the
last row of your data on Sheet2...

-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

Would I still use vlookup? I want to total R5 which would be 11 on the R5 on
the other page. All the other infor
1st page 2nd page
R5 5 R5 11
R4 2 R4 2
R3 3 R3 3
R5 4 R2 3
R2 3
R5 2

"Sheeloo" wrote:

If the data shown is in Col A & B of sheet2 and you have R5 in A1 of sheet1...

Enter this in B1 of sheet1
=SUMPRODUCT(--(Sheet2!A1:A100=A1),(Sheet2!B1:B100))
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

How do you use vlookup when you have several items you want to look up and
return a total value. In this example I want to add all 3 items for a total
of 15. Using vlookup it only returns the first R5 for a total of 5

R5 5
R5 5
R5 5



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Vlookup

How do I use this on 2 different worksheets

"Networking Issues Error 0X80070005" wrote:

Thank you

"Sheeloo" wrote:


No...
This will sum all rows (Col B values) where Sheet2 COL A matches ...the
value in Sheet1 A1...

If you want to copy it down then use this
=SUMPRODUCT(--(Sheet2!A$1:A$100=A1),(Sheet2!B$1:B$100))
so that lookup range remains same... of course you need to change 100 to the
last row of your data on Sheet2...

-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

Would I still use vlookup? I want to total R5 which would be 11 on the R5 on
the other page. All the other infor
1st page 2nd page
R5 5 R5 11
R4 2 R4 2
R3 3 R3 3
R5 4 R2 3
R2 3
R5 2

"Sheeloo" wrote:

If the data shown is in Col A & B of sheet2 and you have R5 in A1 of sheet1...

Enter this in B1 of sheet1
=SUMPRODUCT(--(Sheet2!A1:A100=A1),(Sheet2!B1:B100))
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

How do you use vlookup when you have several items you want to look up and
return a total value. In this example I want to add all 3 items for a total
of 15. Using vlookup it only returns the first R5 for a total of 5

R5 5
R5 5
R5 5

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Vlookup

Will this work on different workbooks?

"Sheeloo" wrote:

If the data shown is in Col A & B of sheet2 and you have R5 in A1 of sheet1...

Enter this in B1 of sheet1
=SUMPRODUCT(--(Sheet2!A1:A100=A1),(Sheet2!B1:B100))
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Networking Issues Error 0X80070005" wrote:

How do you use vlookup when you have several items you want to look up and
return a total value. In this example I want to add all 3 items for a total
of 15. Using vlookup it only returns the first R5 for a total of 5

R5 5
R5 5
R5 5

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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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