Vlookup summing multiple values in one cell

dbagnell

New Member
Joined
Dec 16, 2014
Messages
7
Hi,

I've searched the archives and though I've found similar issues I haven't been able to figure this one out. I have a list of IDs in column A on worksheet 1. One worksheet 2 I have a vlookup returning modality and length, but in cases where there is more than one modality or length I can't get them concatenated (modality) or summed (length). The summing is the biggest thing I want to solve for, modality will just be a bonus.

I see that I can do this with an array formula, but since I have 648 rows of values I can't use a formula that has {1,2,3,4,5... all the way to 648}. I can't see another way of doing it. I'm not sure if I need to do something with index or match? Can anyone help?

[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]MODALITY[/TD]
[TD]LENGTH[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]LMS[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]LMS[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1002[/TD]
[TD]LOR[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]

=vlookup(A2,table1,2,false)
=vlookup(A2,table1,3,false)

Thanks!
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
From what I'm understanding, I think SUMIF would take care of your summing for length: =sumif(table1_id_column,a2,table1_length_column)
 
Upvote 0

Forum statistics

Threads
1,223,721
Messages
6,174,096
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top