#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VLOOKUP

I have 4 colums of data based on the results of 2 columns I would like
to have the value of the third & 4th column placed in the appropriat
cells.

Example of the data I am trying work with is shown below:

Specification|Grade UNS|P_Number|G_Number
SA-516 | 60 | 1 | 1
SA-516 | 70 | 1 | 2
SB-111 | C71500 | 34 | NA
SB-111 | C44400 | 32 | NA
SB-111 | C60800 | 35 | NA

I have created 2 comboboxes on a userform to select the specification
and grade and place it the applicable cells on the worksheet, but I
just can't seem to find a way to use the vlookup for 2 columns.

Any help would be appriciated.
Kind Regards
Martin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default VLOOKUP

It's hard to tell exactly what result you want, but if the the functions
in the freely downloadable file at http://home.pacbell.net/beban are
available to your workbook, with the data in A2:D6, with the
specification in F1 and with the Grade in G1, (and assuming the vertical
bars are not really part of your data) the following, array entered into
a four-cell row, will return the data from the requested line:

=ArrayRowFilter2(ArrayRowFilter1(A2:D6,1,F1),2,G1)

Alan Beban

Martin Koenig wrote:
I have 4 colums of data based on the results of 2 columns I would like
to have the value of the third & 4th column placed in the appropriat
cells.

Example of the data I am trying work with is shown below:

Specification|Grade UNS|P_Number|G_Number
SA-516 | 60 | 1 | 1
SA-516 | 70 | 1 | 2
SB-111 | C71500 | 34 | NA
SB-111 | C44400 | 32 | NA
SB-111 | C60800 | 35 | NA

I have created 2 comboboxes on a userform to select the specification
and grade and place it the applicable cells on the worksheet, but I
just can't seem to find a way to use the vlookup for 2 columns.

Any help would be appriciated.
Kind Regards
Martin


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VLOOKUP

To use a vlookup for 2 columns, you might want to try an array formula.
for example: {=SUM(IF((A1:A6=10)*(B1:B6=20),C1:C6))}. Note: the {}
are obtained by hitting ctr+shft+entr after you enter the formula. Use
MS Help to get more info on array formulas, but I think that's what
you're after.

Martin Koenig wrote:
I have 4 colums of data based on the results of 2 columns I would like
to have the value of the third & 4th column placed in the appropriat
cells.

Example of the data I am trying work with is shown below:

Specification|Grade UNS|P_Number|G_Number
SA-516 | 60 | 1 | 1
SA-516 | 70 | 1 | 2
SB-111 | C71500 | 34 | NA
SB-111 | C44400 | 32 | NA
SB-111 | C60800 | 35 | NA

I have created 2 comboboxes on a userform to select the specification
and grade and place it the applicable cells on the worksheet, but I
just can't seem to find a way to use the vlookup for 2 columns.

Any help would be appriciated.
Kind Regards
Martin


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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
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


All times are GMT +1. The time now is 05:39 AM.

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"