example workbook for forum.xlsxHi all, I have only been writing formulas for excel for a day and i'm struggling with an issue that i hope someone can help me with here. I have a formula iv'e put together which searches for key words in two cells and returns values based on the true results. The problem i have run into is when more than two keywords are true in either cell i get both results in the target cell rather than one, and i need only one. e.g if B2 or G2 contain the word "edging" then the value '40' is returned, if "oak" is in either of these cells then '2*E2' is returned, rounded up to the nearest 100 (for this eg 100), if both of these words exist in either cells then the result is '10040', but i need the formula to preference "edging" over "oak" and return only '40'.
here is the formula as it stands, it is a work in progress, it is supposed to add extra waste material for a cutting sheet.
=CONCATENATE(IF(SUMPRODUCT(--(ISNUMBER(SEARCH({"s/wood","softwood"},G4&B4))))>0,((ROUNDUP(2*E4,-2))),""),IF(SUMPRODUCT(--(ISNUMBER(SEARCH({"poplar","oak","sapele","walnut","ash","beech","birch","cherry","maple","iroko","cedar","balsa","olive"},G4&B4))))>0,((ROUNDUP(2*E4,-2))),""),IF(ISNUMBER(SEARCH("solid surface",G4)),(10),("")),IF(ISNUMBER(SEARCH("corian",G4)),(10),("")),IF(SUMPRODUCT(--(ISNUMBER(SEARCH({"edging","lipping"},B4&G4))))>0,"40",""),IF(SUMPRODUCT(--(ISNUMBER(SEARCH({"balance","veneer","laminate"},B4&G4))))>0,"20",""),IF(SUMPRODUCT(--(ISNUMBER(SEARCH({">"},G4))))>0,((ROUNDUP(2*E4,-2))),""),IF(SUMPRODUCT(--(ISNUMBER(SEARCH({"<"},G4))))>0,"100",""))
Bookmarks