I thought that I answered the question about the formulae in the first image but the second image makes no sense to me at all.
Please post a workbook and not an image. No one can work with images.