Hello,
I'm new to excel and came up with this mostly from the internet:
=IF(OR(ISERROR(AND(FIND("265",D2,1),FIND("GAL",G2,1)))=TRUE,E2,(E2*265)),IF(ISERROR(AND(FIND("275",D2,1),FIND("GAL",G2,1)))=TRUE,E2,(E2*275)))
Basically I'm trying to compare D2 and G2 and either display E2, or E2 multiplied by 265/275. I also need to do this for 330 as well, however I can't get 2 to work right so i haven't tried with 3. If G2 has GAL in it and D2 has 275 I want it to display E2*275. When D2 is 265 or 330 I want E2*265 or E2*330 respectively, but only when G2 has GAL in it. If any of these pairs of requirements are not met I need it to simply display the value in cell E2.
When I test the above formula it seems to work for the 275 pairing, but not for 265. If I switch the 265's and 275's it displays E2*265 properly. It seems the back portion of the formula works so why doesn't the front side?
If you have any other formula's or know how to fix this one please let me know.
PS If you have a fix that also does 330 that would be awesome.
Thank you
Bookmarks