Apr 23 2020 03:07 AM
I've attached the excel file. I've written the problem there. It's self explanatory
I need to get a return array based on the MAXIF condition, and then get a lookup value to a single cell.
I've tried three approach, MAXIF, OFFSET, XLOOKUP. This just seems to complicated.
Apr 23 2020 03:31 AM - edited Apr 23 2020 03:33 AM
@Nishkarsh31 May I suggest you add a column F summing the three payment methods. Then you could use this formula to achieve what you want.
=MAX(FILTER(A2:A14,(B2:B14="B")*(F2:F14<>0)))
Apr 23 2020 03:36 AM
Thank you for the response. I'll give it a try right away and get back to you.
Just out of curiosity is there a way to do the same without summing the three?
My full data sheet is getting too slow.
I'm trying to get rid of as much redundant columns as possible
@Riny_van_Eekelen
Apr 23 2020 03:42 AM
Solution@Nishkarsh31 This one will work without the extra column:
=MAX(FILTER(A2:A14,(B2:B14="B")*((C2:C14<>"")+(D2:D14<>"")+(E2:E14<>""))))
Apr 23 2020 04:56 AM
Worked like a charm.
Thank you so much @Riny_van_Eekelen
and thanks for bringing Filter function to my knowledge.
Without it,I doubt any of my approaches would have made sense.
Apr 23 2020 03:42 AM
Solution@Nishkarsh31 This one will work without the extra column:
=MAX(FILTER(A2:A14,(B2:B14="B")*((C2:C14<>"")+(D2:D14<>"")+(E2:E14<>""))))