I'm trying to extract the mg amount out of a text that looks like "92 g = 252 mg" for each cell and sum those mg amounts together, but the formula I used gives me VALUE error because of blank cells since it's supposed to be looking for "=" and "m". Do you have any suggestions? Thank you!
option1)=SUM(VALUE(MID($E$2:$E$19,SEARCH("=",$E$2:$E$19)+1,SEARCH("m",$E$2:$E$19)-1-SEARCH("=",$E$2:$E$19))))
option2) {=SUMPRODUCT(VALUE(MID($E$2:$E$19,SEARCH("=",$E$2:$E$19)+1,SEARCH("m",$E$2:$E$19)-1-SEARCH("=",$E$2:$E$19))))}
option1)=SUM(VALUE(MID($E$2:$E$19,SEARCH("=",$E$2:$E$19)+1,SEARCH("m",$E$2:$E$19)-1-SEARCH("=",$E$2:$E$19))))
option2) {=SUMPRODUCT(VALUE(MID($E$2:$E$19,SEARCH("=",$E$2:$E$19)+1,SEARCH("m",$E$2:$E$19)-1-SEARCH("=",$E$2:$E$19))))}