put the years from 0 to N in column A, cashflows in column B (first cell in B will be cost of project)
NPV is simply sum of B[i]/(1+rate)^A[i], i being the i-th line
IRR function is f(x) = sum of B[i]/(1+x)^A[i], solve for f(x) = 0
lmk if need more help