Forum Discussion
Create multiple if or statement but to result in a numerical number rather than a true or false
- Jun 10, 2021
Please find the solution attached.
I moved the lookup table to the same sheet to make it easier for me to cell reference.
Explained:
=SUMPRODUCT(SUMIFS($H$2:$H$10,$F$2:$F$10,"<"&B2,$G$2:$G$10,">"&B2))
=SUMPRODUCT(SUMIFS(Annualraterange,Agreedvaluefromrange,"<"&Value,Agreedvaluetorange,">"&Value))
Good luck!
Please find the solution attached.
I moved the lookup table to the same sheet to make it easier for me to cell reference.
Explained:
=SUMPRODUCT(SUMIFS($H$2:$H$10,$F$2:$F$10,"<"&B2,$G$2:$G$10,">"&B2))
=SUMPRODUCT(SUMIFS(Annualraterange,Agreedvaluefromrange,"<"&Value,Agreedvaluetorange,">"&Value))
Good luck!
- kimbirch2Jun 10, 2021Copper ContributorAbsolutely amazing! Thank you so much. I hadn't considered to format it in this way.
- Riny_van_EekelenJun 10, 2021Platinum Contributor
kimbirch2 As a variant, I added two alternative solutions.
1) With LOOKUP, though you need to sort your criteria in ascending order
2) With XLOOKUP (if your Excel version supports it)
- kimbirch2Jun 15, 2021Copper ContributorAmazing thanks Riny_van_Eekelen