Need Help building a LOGIC "IFS" with a "VLOOKUP"

AudyAnalyst

New Member
Joined
Nov 24, 2021
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Something Has gone wrong. I was hoping to have a logic lookup. If the location "Seattle" and if the Stage is "2" then lookup in the corresponding column "Seattle", for the % that is associated with "2". This needs to be the same value multiple times. What is the best formula for this? I have tried, XLOOKUP, VLOOKUP, & LOOKUP. with an error every time and I don't know why.

Status
SeattleSalt Lake
StageComplete
1​
0.50%​
0.50%​
1.5​
10.40%​
12.50%​
2​
40.00%​
40.00%​
2.5​
45.60%​
45.00%​
3​
50.00%​
50.00%​
3.5​
61.50%​
60.00%​
4​
75.00%​
75.50%​
4.5​
85.50%​
80.00%​
5​
99.90%​
99.90%​
Project List
ProjectLocationStageCompleteness Rating
Blue 1Salt Lake
1​
#N/A​
Blue 6Salt Lake
1.5​
#N/A​
Blue 7Salt Lake
1​
#N/A​
Red 1Seattle
1​
#N/A​
Red 2Seattle
1​
#N/A​
Blue 2Salt Lake
2​
40.00%​
Red 7Seattle
2​
40.00%​
Red 8Seattle
2.5​
45.60%​
Blue 3Salt Lake
3​
50.00%​
Blue 9Salt Lake
3​
50.00%​
Red 3Seattle
3​
50.00%​
Red 9Seattle
3​
50.00%​
Red 4Seattle
3.5​
61.50%​
Blue 4Salt Lake
4​
75.50%​
Blue 7Salt Lake
4​
75.50%​
Red 5Seattle
4​
75.00%​
Red 6Seattle
4​
75.00%​
Blue 8Salt Lake
4.5​
80.00%​
Blue 5Salt Lake
5​
99.90%​


Help Vlookup.xlsx
ABC
1SeattleSalt Lake
2StageComplete
310.50%0.50%
41.510.40%12.50%
5240.00%40.00%
62.545.60%45.00%
7350.00%50.00%
83.561.50%60.00%
9475.00%75.50%
104.585.50%80.00%
11599.90%99.90%
Status


Help Vlookup.xlsx
ABCD
1ProjectLocation StageCompleteness Rating
2Blue 1Salt Lake1#N/A
3Blue 6Salt Lake1.5#N/A
4Blue 7Salt Lake1#N/A
5Red 1Seattle1#N/A
6Red 2Seattle1#N/A
7Blue 2Salt Lake240.00%
8Red 7Seattle240.00%
9Red 8Seattle2.545.60%
10Blue 3Salt Lake350.00%
11Blue 9Salt Lake350.00%
12Red 3Seattle350.00%
13Red 9Seattle350.00%
14Red 4Seattle3.561.50%
15Blue 4Salt Lake475.50%
16Blue 7Salt Lake475.50%
17Red 5Seattle475.00%
18Red 6Seattle475.00%
19Blue 8Salt Lake4.580.00%
20Blue 5Salt Lake599.90%
Project List
Cell Formulas
RangeFormula
D2:D20D2=IFS(B2="Seattle",XLOOKUP(C2,Status!$A$5:$A$13,Status!$B$5:$B$13),B2="Salt Lake",XLOOKUP(C2,Status!$A$5:$A$13,Status!$C$5:$C$13))
/XR][/RANGE]
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
How about
Excel Formula:
=INDEX(Status!$B$3:$C$11,MATCH(C2,Status!$A$3:$A$11,0),MATCH(B2,Status!$B$1:$C$1,0))
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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