Question : IF Statement with Index formula

I have the following Excel formula in a cell but want to do the following: If theformula listed below returns 0 then display what's listed in Workbook1 Cell B1 if not display the number from the original Index formua:

=IFERROR(INDEX('Data Entry'!$K$2:$K$10000,MIN(IF((MONTH('Data Entry'!$C$2:$C$10000)=MONTH(H$6))*(YEAR('Data Entry'!$C$2:$C$10000)=YEAR(H$6))*('Data Entry'!$G$2:$G$10000=$C50),ROW('Data Entry'!$C$2:$C$10000),""))-ROW('Data Entry'!$C$2)+1),"0")

Answer : IF Statement with Index formula

Try this:

=IF((IFERROR(INDEX('Data Entry'!$K$2:$K$10000,MIN(IF((MONTH('Data Entry'!$C$2:$C$10000)=MONTH(H$6))*(YEAR('Data Entry'!$C$2:$C$10000)=YEAR(H$6))*('Data Entry'!$G$2:$G$10000=$C50),ROW('Data Entry'!$C$2:$C$10000),""))-ROW('Data Entry'!$C$2)+1),"0"))=0,$B1,IFERROR(INDEX('Data Entry'!$K$2:$K$10000,MIN(IF((MONTH('Data Entry'!$C$2:$C$10000)=MONTH(H$6))*(YEAR('Data Entry'!$C$2:$C$10000)=YEAR(H$6))*('Data Entry'!$G$2:$G$10000=$C50),ROW('Data Entry'!$C$2:$C$10000),""))-ROW('Data Entry'!$C$2)+1),"0"))
Random Solutions  
 
programming4us programming4us