Vlookup Using Two Criteria

santeria

Well-known Member
Joined
Oct 7, 2003
Messages
1,844
I am not sure if Vlookup is the ideal way of doing this, but...

I am trying to set up a Vlookup to match on the basis of two criteria... A group ( 1,2,3,4,5), and a Week ( 1,2,3,4).
The Group Number and the week number will obviously be in different columns, but even if I have to change the Week designation to a letter, thats fine, so long as I can get a lookup for group and date.

I can do a vlookup for a staff member based on number, but the row will pull extra data as well ,related to the person, but the key search is by Group number and by Date week.

Any Suggestions or references appreciated, I can't seem to find anything applicable in the archives.


Ta

(y)
 
For big data, I think it will be more efficient if you will use advance filter (click data filter advance filter) with a macro in the sheet change event. Everytime you change something in specific cell, it will active the advance filter . Too much formula will slow your computer.
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Aladin's Formula Method works, I am satisfied of that.
In fact the filter method works great for disignating groups and weeks.

I have an idea for a modified Vlookup, if Aladin does not step in at this time, but I would prefer to use Aladin's Method, since I am impressed in how capable it is.

Ta

(y)
 
Upvote 0
santeria said:
Here is a respost of the relevant part of the File I am having grief over.
Help much appreciated.
AL Feb. Call Quality.xls
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
33GroupWeekDATENAMESKILLELEMENTSMISSED
3411772121
352/16/2004JOSEPHSWATTSCorrectInformation
36212202/04/04MichelleMills0
37 2202/04/04MichelleMills0
38 2202/04/04MichelleMills0
39 2202/04/04MichelleMills0
February 2-6


The file is producing the right number if unique references , 11 in this example, but it is not displaying the unique lines from the data tab.




Ta

(y)

In B36, change all references of A33 to A34 and N(A35) to N(B35). Enter Pos in A34

See if that helps.
 
Upvote 0
Beautiful Fix.

Except.... If I Place POS in A34, then a key formula Goes.

Also, that Number gives the Total I need for Other Elements of Calculation.

For the Demonstration Purposes, the figure is 11, the formulas in Date, name, and Skill Element mix suddenly bring up a #NA error.

The is a Beautiful Search device, but it just needs some tweaking I guess.

Any idea on those #NA errors?


Ta Muchly.

(y)
 
Upvote 0
In B36, change all references of A33 to A34 and N(A35) to N(B35). Enter Pos in A34

See if that helps.

Sorry; try In B36 change A33 to A35; change all references N(A35) to N(B35) ; enter Pos in A35; Copy B36 down as far as needed.
 
Upvote 0
I must be worse off than I thought... I thought I saw another Reply in here before...

Anyways, with the Formulas, it seems that it displays a #NA in the last cell of the group. It displays the right number of Monitors, but Does not work right in the cell after the Last correctly displayed Monitor.

Any ideas ???

Ta

(y)
 
Upvote 0
Thanks !!!!!!!!

Just_Jon, you are a genius !!!!!

Works Beautifully.

Now I have to figure how to take this from the Test File to a Live Page :)

But thats my Headache.....

I appreciate this Totally !!!!!!!


Ta


(y) :pray: :pray: (y)
 
Upvote 0
Is that a Zen Quote ? :unsure:

I feel a Haiku coming on.

I Excel to Do My Job
But then It's Formulas Get quite Odd,
Some are there but then are not,
It really works, but ... maybe not

:LOL:

Ta

(y)


just_jon said:
I must be worse off than I thought... I thought I saw another Reply in here before...

That was, then wasn't, me. :LOL:
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,869
Members
449,130
Latest member
lolasmith

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