Looking to see if there is a more efficient formula for the following:
Looking to expand to include additional conversions so naturally I may run into nested IF maximum.
Excel 2010.
Code:
=IF(F22="pint",CONVERT(E22,"pt","gal"),IF(F22="quart",CONVERT(E22,"qt","gal"),IF(F22="liter",CONVERT(E22,"l","gal"),IF(F22="fluid",CONVERT(E22,"oz","gal"),IF(F22="cc",CONVERT(E22,"ml","gal"),CONVERT(E22,F22,"gal"))))))
Looking to expand to include additional conversions so naturally I may run into nested IF maximum.
Excel 2010.