I'm writing a high-level rate card, and I've got a list of line items along with costs for testing, and deployments with various ranges (testing high 25%, testing medium 50%, testing low 75%) which I have in a dropdown already. I'm after a formula that I can use to sum the total hours I've allocated and then multiply by 0.25, 0.5, 0.75, respectively, based on what option is selected in the dropdown.
I have this gnarly formula which works, but I'm wondering if there is a better, cleaner way to do this.
=IF(ISNUMBER(SEARCH("75%",A19)),SUM(B5:B18)*0.75,IF(ISNUMBER((SEARCH("50%",A19))),SUM(B5:B18)*0.5,IF(ISNUMBER((SEARCH("25%",A19))),SUM(B5:B18)*0.25)))