Vlookup based on a Cell Condition

fapb48

Board Regular
Joined
Sep 13, 2020
Messages
65
Office Version
  1. 365
Platform
  1. Windows
Hi,

I wonder if this is possible to achieve.

I have a sheet with information since week 1 of the year.

And i am trying on a separate sheet to do a vlookup to separate the info for each week.

Example.

First sheet (spaces indicate a different column)

Name Week Number Delivery Success Customer Feedback Proof of Delivery Compliance
Anthony Baker WK1 99.9% 89.90% 90%
Daniel Nespral WK1 99.9% 88.0% 100%
Anthony Baker WK2 99.99% 100% 100%

And so on..

Example Screenshot:
1691522835908.png

(ignore conditional formatting)


On the other sheet that i am trying to Vlook has the following

Name of the person is within a dropdown range data validation
WK1 (static field)
Delivery Sucess
Customer Feedback
Proof of Delivery Compliance

And i want to extract all the info for Week 1 only.

Screenshot:
1691522910323.png


I have tried the following but it spills
=IF(Sheet1!B:B=C2,VLOOKUP(A2,Sheet1!A2:F6,2,FALSE)," ")

Is this possible at? Hopefully it makes sense
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I created a rough version for you

FAPB48 20230808.xlsm
BCDEFGHIJ
2Filtered List of NamesUnique Weeks
3Driver Name:Daniel NespralWeek:WK1Anthony BakerWK1
4Daniel NespralWK2
5Delivery Success99.9%Kathy Nobel
6Customer Feeback88.0%
7Delivery Compliance100.0%
Sheet3
Cell Formulas
RangeFormula
H3:H5H3=FILTER(UNIQUE(Sheet1!$A$2:$A$15),UNIQUE(Sheet1!$A$2:$A$15)<>"","")
J3:J4J3=FILTER(UNIQUE(Sheet1!$B$2:$B$15),UNIQUE(Sheet1!$B$2:$B$15)<>"","")
D5D5=SUMIFS(Sheet1!$C$2:$C$15,Sheet1!$A$2:$A$15,Sheet3!$C$3,Sheet1!$B$2:$B$15,Sheet3!$E$3)
D6D6=SUMIFS(Sheet1!$D$2:$D$15,Sheet1!$A$2:$A$15,Sheet3!$C$3,Sheet1!$B$2:$B$15,Sheet3!$E$3)
D7D7=SUMIFS(Sheet1!$E$2:$E$15,Sheet1!$A$2:$A$15,Sheet3!$C$3,Sheet1!$B$2:$B$15,Sheet3!$E$3)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
C3List=$H$3#
E3List=$J$3#


FAPB48 20230808.xlsm
ABCDE
1Driver NameWKDelivery SuccessCustomer FeedbackProof of Delivery Compliance
2Anthony BakerWK199.9%89.9%90.0%
3Daniel NespralWK199.9%88.0%100.0%
4Anthony BakerWK2100.0%100.0%100.0%
5Kathy NobelWK195.0%90.0%100.0%
6Daniel NespralWK298.0%97.0%99.0%
Sheet1
 
Upvote 0
Solution

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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