Adding a further criteria to formula

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
155
Office Version
  1. 2021
Platform
  1. Windows
I have the following formula that does what's required of it.

=IF(' Master'!G$65=1,XLOOKUP(' Master'!G$64,' Master'!G$4:G$61,' Master'!$B$4:$B$61),"")

However I'd like to add a further criteria. So if all the above is true, I only want the result if in the matching part of the formula

Master'!$B$4:$B$61

there was a figure above 18 (18>) in the corresponding

Master'!$C$4:$C$61

I'm not sure whether I need an IF + AND statement at the start or more likely a further IF before the match segment of the XLOOPUP.

I hope I've explained that okay.

Many thanks.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
How about
Excel Formula:
=LET(x,XLOOKUP(' Master'!G$64,' Master'!G$4:G$61,' Master'!$B$4:$C$61),IF(' Master'!G$65=1,IF(INDEX(x,,2)>18,INDEX(x,,1),""),""))
 
Upvote 0
Solution
Yes thank you, that works lovely. Unfortunately I've created myself another problem now I'll need to get my head round. Bugger!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,077
Messages
6,122,992
Members
449,094
Latest member
masterms

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