Forum Discussion
HELP WITH FORMULAS TO AUTO-POPULATE A TABLE
- Apr 10, 2019
shyam_amara , you are welcome. Another useful function is IFERROR() to wrap any error, not only #N/A
shyam_amara , I added some parameters not to hardcode everything (and better to use named ranges or tables)
Formula in M4
=IFNA(INDEX($E$3:$H$22,MATCH(1,INDEX(($B$3:$B$22=$L4)*($D$3:$D$22=M$2)*($C$3:$C$22=$L$1),0),0),MATCH($L$2,$E$2:$H$2,0)),0)
drag it down and to the right. MATCH(1,INDEX(... here filters your data and returns proper row. Second MATCH return the column (English in this case). If nothing found formula returns zero. Better use it rather than empty string if you will do other calculations with data; and apply custom format to all marks as
General;General;"-"
to hide zeros from the interface.
In attached file that done for the first range with marks.
- shyam_amaraApr 09, 2019Copper ContributorThanks Sergei. I must say the IFNA is a real saver for me. Did not know that such a function exists! I use lot of Vlookup and was always pestered by the #N/A. Now I know how to deal with it. Thanks much.
- SergeiBaklanApr 10, 2019Diamond Contributor
shyam_amara , you are welcome. Another useful function is IFERROR() to wrap any error, not only #N/A
- shyam_amaraApr 11, 2019Copper Contributor
SergeiBaklan thanks for your help. I have another problem that needs to be solved. I have mentioned the problem in the link below. Could you please help?
https://techcommunity.microsoft.com/t5/Excel/Lookup-Pattern-Cascading/m-p/440291