add multiple returns using vlookup

R

RZ

Hi
I am using Vlookup function to find matching datat in another worksheet, i
want to add values if there is more than one matching values.
 
S

Spiky

Hi
I am using Vlookup function to find matching datat in another worksheet, i
want to add values if there is more than one matching values.

Can't. Try DSUM or SUMPRODUCT instead.
 
A

Alan Beban

RZ said:
Hi
I am using Vlookup function to find matching datat in another worksheet, i
want to add values if there is more than one matching values.
If the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook

=SUM(VLookups(lookup_value, lookup_range, return_column))

Alan Beban
 
R

RZ

let me give u example
I am trying to find corresponding values of below numerbs from another
worksheet :
Sheet 1
Col A Col B
1500
1600
1700
1800
1900
1200
1400
1300
1100
and sheet2 has multiple vlues as below
col A col B
1100 26
1100 45
1200 12
1200 23
1200 25
1200 31
1300 14
1300 23
1300 89
1400 24
1400 45
1400 45
1500 10
1500 15
1500 15
1500 45
1600 12
1600 12
1600 16
1600 87
1700 15
1700 18
1700 48
1700 56
1700 78
1800 10
1800 11
1800 45
1800 48
1800 59
1900 10
1900 15
1900 22
1900 48
1900 56

so i m trying to get the result in sheet 1

col A colB
1100 71
1200 91
1300 126 so on

plese urgenly.

thanks
 
R

RZ

thanks Alan but its not working, its giving me only the last matching number
from lookup_range not the sum of all the matching values, and if i try to
find exact match , its returning the first matching number! any other idea? I
will have more than 1000 rows with from where i need to find the sum of
matching values.
 
S

smartin

RZ said:
Hi
I am using Vlookup function to find matching datat in another worksheet, i
want to add values if there is more than one matching values.

Hi RZ,

I think your description of the requirements threw everyone off the path...

Try this in sheet1!B1

=sumif(sheet2!A:A, sheet1!A1, sheet2!B:B)
 
R

RZ

Thanks smartin, SUMIF is working fine , i m sorry if my explanation made it
difficult to resolve the problem.
 
S

smartin

RZ said:
Thanks smartin, SUMIF is working fine , i m sorry if my explanation made it
difficult to resolve the problem.

No problem. Glad you found a solution!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top