Forum Discussion
Too many arguments error on IF/COUNTIF nested function: how to solve
- Jul 21, 2023
=INDEX(J2:J23,MATCH(TRUE,ISNUMBER(SEARCH(I2:I23,F7)),0))
An alternative could be this formula along with a reference table. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021. The formula is in cell B3.
=INDEX(J2:J23,MATCH(TRUE,ISNUMBER(SEARCH(I2:I23,F7)),0))
An alternative could be this formula along with a reference table. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021. The formula is in cell B3.
Hey OliverScheurich! Sorry for the late reply!
I'd like to thank you because your formula works pretty well!!!
The only very last problem I have is when the F7 cell is empty: I get "#N/D" on B3.
Since when you open my file the starting point is you have 0 conditions applied, it would be visually good to have an empty cell instead of "#N/D".
Is there any solution to apply this in the formula? Otherwise I would go for conditional formatting...
- OliverScheurichAug 06, 2023Gold Contributor
You are welcome. Glad the formula works almost as intended.
=IFERROR(INDEX(J2:J23,MATCH(TRUE,ISNUMBER(SEARCH(I2:I23,F7)),0)),"")
In order to return an empty cell B3 if F7 is empty you can try this formula. Actually i've only wrapped the formula into IFERROR. The formula has to be entered with ctrl+shift+enter if one doesn't work with Office 365 or Excel 2021.
- VesperwindAug 06, 2023Copper Contributor
That's what I needed!
Thank you SO much OliverScheurich!!!!