Need help for multiple criteria vlookup

Penny Bangalore

Board Regular
Joined
Apr 17, 2015
Messages
79
Hi Folks,

Need your help to to build a formula for multiple criteria. so below is what i can explain my best.

i have my data in sheet 3 as below
DateDateDateDate
5/1/20155/2/20155/3/20155/4/2015
NameproductivityhoursReviewNameproductivityhoursReviewNameproductivityhoursReviewNameproductivityhoursReview
user 1506685user 1190179122user 1225229292user 1567508517
user 2563435user 2101187111user 2248300251user 2552547532
user 3429976user 3199102101user 3300211279user 3527523506
user 4742627user 4173132187user 4211272224user 4592553572
user 5166894user 5185137130user 5251256259user 5505593513
user 6636986user 6175145148user 6250231285user 6593564556
user 7209626user 7176106140user 7274235251user 7585523514
user 8741787user 8126116181user 8296292227user 8526500585
user 9453783user 9126190127user 9227266285user 9550567518
user 10384220user 10122102107user 10272256290user 10566558597
user 11749136user 11118140159user 11249300280user 11562578558
user 12507569user 12129116190user 12261289295user 12578527527
user 13328411user 13133197110user 13224295228user 13522508568
user 14618185user 14199143197user 14205296275user 14574585562
user 15539746user 15112138174user 15267217225user 15560562585
user 164101044user 16189158167user 16202300251user 16576534578
user 17218325user 17107192171user 17258291236user 17530579545
user 18286374user 18117116160user 18241224280user 18579561597

<tbody>
</tbody>


what i need is in sheet 2 is the productivity and review and hour counts based on date and user in below format

User 1User 1User 1User 1
Dateproductivityhoursreviewproductivityhoursreviewproductivityhoursreviewproductivityhoursreview
5/1/2015
5/2/2015
5/3/2015
5/4/2015
5/5/2015
5/6/2015
5/7/2015
5/8/2015
5/9/2015
5/10/2015
5/11/2015
5/12/2015
5/13/2015
5/14/2015
5/15/2015
5/16/2015
5/17/2015
5/18/2015
5/19/2015
5/20/2015
5/21/2015
5/22/2015

<tbody>
</tbody>

some one please help me with a multiple criteria vlookup.some one please help me with a multiple criteria vlookup.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Since you ask...

=VLOOKUP(A2,INDIRECT("T"&TEXT(A2,"mmddyyyy")),2,0)

where A2 is a date and T05012015 is the name of the table that you have on 5/1/2015.

Your data layout is such that it won't be that easy to process...
 
Upvote 0
Hi Aladin,

i tried your formula, but it did not work. my data is in sheet 3 and my formula should be in sheet 2 to get the data from sheet 3 based on date and user criteria please help
 
Upvote 0
I will try, for the dsum formula to work, you need to have a header row, "name/productivity/hours/review", but you need to add your date as that is part of your criteria profile. "name/productivity/hours/review/date". Are you able to manipulate your data to include the date as part of your data?
 
Upvote 0

The way dsum works is(database,field,criteria) so for example:

Code:
=dsum(sheet3!a1:e111,"productivity",Sheet1!a1:e2)


<o:p></o:p>


This formula is looking at your sheet3!'sdata so you can enter this formula in the desired cell on your sheet2! <o:p></o:p>


Please note with the dsum formula, you must choose your criteria, so pick aplace, "for this example shee1! cells a1:e2", you will enter yourcriteria headers in cells a1:e1 "name/productivity/hours/review/date"and in cells a2:e2 enter your specifics. Use =sheet2a1 in cell a2 on sheet1!,then drag the formula over to populate the remaining cells. Should looksomething like: "user 1/506/6/85/5-1-2015". Also note, the criteria portionof your formula can be wherever you want it. Depending on what you want, this would give you the value of 506 for theproductivity of user 1 on May 1, 2015. If you want something else then change thecriteria range in your formula. I hopethis helps.
<o:p></o:p>
 
Upvote 0
Since you ask...

=VLOOKUP(A2,INDIRECT("T"&TEXT(A2,"mmddyyyy")),2,0)

where A2 is a date and T05012015 is the name of the table that you have on 5/1/2015.

Your data layout is such that it won't be that easy to process...

Hi Aladin,

i tried your formula, but it did not work. my data is in sheet 3 and my formula should be in sheet 2 to get the data from sheet 3 based on date and user criteria please help

You should try a bit better what you are given....

Row\Col
A​
B​
C​
D​
1​
Date
2​
5/1/2015
3​
NameproductivityhoursReview
4​
user 1
506
6
85
5​
user 2
563
4
35
6​
user 3
429
9
76
7​
user 4
742
6
27
8​
user 5
166
8
94
9​
user 6
636
9
86
10​
user 7
209
6
26
11​
user 8
741
7
87
12​
user 9
453
7
83
13​
user 10
384
2
20
14​
user 11
749
1
36
15​
user 12
507
5
69
16​
user 13
328
4
11
17​
user 14
618
1
85
18​
user 15
539
7
46
19​
user 16
410
10
44
20​
user 17
218
3
25
21​
user 18
286
3
74

A3:D21 is name as T05012015 (modeled after 5/1/2015).

Row\Col
A​
B​
C​
D​
1​
User 1
2​
Dateproductivityhoursreview
3​
5/1/2015
506
6
85
4​
B3:

=VLOOKUP($B1,INDIRECT("T"&TEXT(A3,"mmddyyyy")),2,0)

C3:

=VLOOKUP($B1,INDIRECT("T"&TEXT(A3,"mmddyyyy")),3,0)

D3:

=VLOOKUP($B1,INDIRECT("T"&TEXT(A3,"mmddyyyy")),4,0)
 
Upvote 0
Hi Aladin,

I appreciate you and thank you that i am half way through as that the formula is working fine.. but the data is picking as user wise .. i want my data to be picked as both user wise and data wise like i said the i am consolidating my data from another work book dates in rows and users in columns.. its my biggest project so i need your help.

what i did so far is..
i have created a table named T05012015 as you instructed and i have applied your formula.. it works fine.. but it should also consider date criteria.

thanks for your time
penny
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,947
Members
449,480
Latest member
yesitisasport

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