VLookup

SammySpaceman

Board Regular
Joined
Aug 18, 2002
Messages
64
Office Version
  1. 2019
Platform
  1. Windows
Is it possible to have VLookup return more than one value at a time?
 
On 2002-08-20 15:32, Mark W. wrote:
On 2002-08-20 15:30, Aladin Akyurek wrote:
On 2002-08-20 15:27, PaddyD wrote:
he trying to do this:
http://www.mrexcel.com/board/viewtopic.php?topic=19510&forum=2&3

...which can't be done with a formula if I understood him right...

Gee, I believe I've just done the impossible! :wink:

Another circ reference...

Have a look at...

http://www.mrexcel.com/board/viewtopic.php?topic=19485&forum=2&6

unless I'm missing something.
 
Upvote 0
Hi, I apologize for the confusion. I was looking to do it Mark W's way--using the array to achieve multiple results. However, I appreciate Juan Pablo G's help very much so because his information is useful for using multiple criteria for the VLookup. Thank you both very much! Also, thanks to PaddyD and Aladin for elaborating on my goal.
This message was edited by SammySpaceman on 2002-08-20 17:29
 
Upvote 0
I think i'm trying to do the same as the original poster, and I dont think it has been answered, so:

I'm trying to get VLOOKUP to return the sum of corresponding values to multiple rows that meet the criteria. E.g. - in the example below, i want the sum of the Total Scores related to SIC code 1... (ie. - 513)

Putting array brackets in doesnt seem to work either...
Please help!
___________________________
SIC-2digit Total score


1 8
1 14
1 16
1 18
1 48
1 50
1 74
1 120
1 165
2 8
2 31
5 15
5 18
 
Upvote 0
On 2002-08-21 01:53, timbatop wrote:
I think i'm trying to do the same as the original poster, and I dont think it has been answered, so:

I'm trying to get VLOOKUP to return the sum of corresponding values to multiple rows that meet the criteria. E.g. - in the example below, i want the sum of the Total Scores related to SIC code 1... (ie. - 513)

Putting array brackets in doesnt seem to work either...
Please help!
___________________________
SIC-2digit Total score


1 8
1 14
1 16
1 18
1 48
1 50
1 74
1 120
1 165
2 8
2 31
5 15
5 18

No, you need something different...

Let A1:B14 house the sample including the labels.

In D2 enter: 1

In D3 enter: 2

In E2 enter & copy down:

=SUMIF($A$2:$A$14,D2,$B$2:$B$14)

See the figure...
Book21
ABCDE
1SIC-2digitTotalscoreSIC-2digitTotal
2181513
3114239
4116
5118
6148
7150
8174
91120
101165
1128
12231
13515
14518
Sheet1
 
Upvote 0
Hi guys, I am trying to figure out the code that Juan sent in this thread.

However, when I try it all I get is the first result over and over again instead of a list of the results.

Is there a problem with the code, Juan can you help at all??

Davey
 
Upvote 0
Davey,

I think you'd be better off starting a new thread for this. outline you data & what you're trying to do. Post a link to this thread for the udf code. Makes things less 'cluttered'.
 
Upvote 0

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