Adding a further criteria to formula

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
172
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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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