Forum Discussion
Hussein_Mohamed
Oct 25, 2023Brass Contributor
formula assist
Dear Gents, i have a formula and need to add a condition if i need to get data if meet the condition for both parts of formula like(if range()="Contract",get the data matched VSTACK(FILTER('Unde...
- Oct 25, 2023
That could be
=FILTER( 'Under Collection'!C:C, ISNUMBER(SEARCH(Aging!$B$2,'Under Collection'!C:C))* ISNUMBER(SEARCH($C$2,'Under Collection'!B:B)) )- AND(), OR() don't work with the FILTER(). Use * and + instead
- FIND() is case sensitive, I guess in your case SEARCH() is more suitable
Hussein_Mohamed
Oct 25, 2023Brass Contributor
thank you for your reply, i am unfortuntly fail to add the criteria in the formula, i have attached the original sheet culumn B is the range in both sheets.
if you please reform the formula in the aging sheet to get the data in a simple form.
Thanks
SergeiBaklan
Oct 25, 2023Diamond Contributor
That could be
=FILTER( 'Under Collection'!C:C,
ISNUMBER(SEARCH(Aging!$B$2,'Under Collection'!C:C))*
ISNUMBER(SEARCH($C$2,'Under Collection'!B:B))
)
- AND(), OR() don't work with the FILTER(). Use * and + instead
- FIND() is case sensitive, I guess in your case SEARCH() is more suitable
- Hussein_MohamedOct 25, 2023Brass ContributorHartfull thank you for your support, it works well
- SergeiBaklanOct 26, 2023Diamond Contributor
Hussein_Mohamed , you are welcome