XLOOKUP with OFFSET

Kra

Board Regular
Joined
Jul 4, 2022
Messages
160
Office Version
  1. 365
Platform
  1. Windows
Hi all! Is it possible to create something like XLOOKUP without specified columns and return offset?



I need to look for value from cell C16 (in column C) and value from E16 (in range E3:L7) and show result from next column to the right. I tried to create OFFSET of XLOOKUP, but it shows error.


Book1
ABCDEFGHIJKLM
1
2ValueScenario1Scenario2Scenario3
31A10%F5%K100%
42B20%G15%L150%
53C30%H25%M200%
64D40%I35%N250%
75E50%J45%O300%
8
9
10
11
12
13
14
15XLOOKUPResult
161B20%
174N250%
18
Sheet2
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I don't understand what C16 and C17 have to do with it. From your examples it looks like are just finding the value from D16 and d17 in the top section and returning the value from beside that.
So it just looks like this to me

22 10 31.xlsm
CDEFGHIJKL
1
2ValueScenario1Scenario2Scenario3
31A10%F5%K100%
42B20%G15%L150%
53C30%H25%M200%
64D40%I35%N250%
75E50%J45%O300%
14
15XLOOKUPResult
161B20%
174N250%
Lookup %
Cell Formulas
RangeFormula
E16:E17E16=SUMIF(E$3:K$7,D16,F$3:L$7)
 
Upvote 0
I don't understand what C16 and C17 have to do with it. From your examples it looks like are just finding the value from D16 and d17 in the top section and returning the value from beside that.
So it just looks like this to me

22 10 31.xlsm
CDEFGHIJKL
1
2ValueScenario1Scenario2Scenario3
31A10%F5%K100%
42B20%G15%L150%
53C30%H25%M200%
64D40%I35%N250%
75E50%J45%O300%
14
15XLOOKUPResult
161B20%
174N250%
Lookup %
Cell Formulas
RangeFormula
E16:E17E16=SUMIF(E$3:K$7,D16,F$3:L$7)
Hi Peter_SSs, sorry - my mistake, I used wrong example. I need to find a value for both C16 and D16 - values from column E, H and K won't be unique - here is better example, sorry once again



Book1
BCDEFGHIJKLM
1
2ValueScenario1Scenario2Scenario3
31A10%B60%C110%
42A20%B70%C120%
53A30%B80%C130%
64A40%B90%C140%
75A50%B100%C150%
8
9
10
11
12
13
14
15XLOOKUPResult
161B60%
174A40%
18
19
Sheet1
 
Upvote 0
Is this what you are looking for then?

Kra.xlsm
CDEFGHIJKL
2ValueScenario1Scenario2Scenario3
31A10%B60%C110%
42A20%B70%C120%
53A30%B80%C130%
64A40%B90%C140%
75A50%B100%C150%
8
14
15XLOOKUPResult
161B60%
174A40%
Sheet1
Cell Formulas
RangeFormula
C16:C17C16=FILTER(C$3:C$7,(E$3:E$7=D16)*(F$3:F$7=E16),FILTER(C$3:C$7,(H$3:H$7=D16)*(I$3:I$7=E16),FILTER(C$3:C$7,(K$3:K$7=D16)*(L$3:L$7=E16),"")))
 
Upvote 0
Solution
how about this one:
工作簿1
ABCDEFGHIJKLM
1
2ValueScenario1Scenario2Scenario3
31A0.1B0.6C1.1
42A0.2B0.7C1.2
53A0.3B0.8C1.3
64A0.4B0.9C1.4
75A0.5B1C1.5
8
9
10I need to find a value for both C16 and D16 - values from column E, H and K won't be unique - here is better example, sorry once again
11
12
13
14
15XLOOKUPResult
161B0.6
174A0.4
18
Sheet1
Cell Formulas
RangeFormula
E16:E17E16=SUM(IF((E$3:K$7=D16)*(C$3:C$7=C16),F$3:L$7))
 
Upvote 0
Is this what you are looking for then?

Kra.xlsm
CDEFGHIJKL
2ValueScenario1Scenario2Scenario3
31A10%B60%C110%
42A20%B70%C120%
53A30%B80%C130%
64A40%B90%C140%
75A50%B100%C150%
8
14
15XLOOKUPResult
161B60%
174A40%
Sheet1
Cell Formulas
RangeFormula
C16:C17C16=FILTER(C$3:C$7,(E$3:E$7=D16)*(F$3:F$7=E16),FILTER(C$3:C$7,(H$3:H$7=D16)*(I$3:I$7=E16),FILTER(C$3:C$7,(K$3:K$7=D16)*(L$3:L$7=E16),"")))
Yes! Thank you!
 
Upvote 0
:confused: I'm confused. You quoted my post (#4) and said "Yes! Thank you!" and yet you have marked another post, whose formulas do a completely different job to the post #4 formulas, as the the solution. Can you clarify the situation?
 
Upvote 0
:confused: I'm confused. You quoted my post (#4) and said "Yes! Thank you!" and yet you have marked another post, whose formulas do a completely different job to the post #4 formulas, as the the solution. Can you clarify the situation?
Sorry, apparently my aiming for the correct solution button sucks. Corrected.
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,041
Members
452,542
Latest member
Bricklin

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