Thank you for the feedback.
@
Basically for the Fluticasone Spray, the strength is 0.05%, and the required string should be "0.0". But the result is coming up as lone 0.
Can this be corrected, or is there a problem maybe with the cell formatting (i.e. set to number, general, etc.).
As the formula stands it generates number values and yes the 0 that occurs instead of 0.0 presents a value / formatting issue. In order to get 0.0 treat that item as a lone exception directing the formula to return a text representation of 0.0 ....... or adjust the formula to return all items as text.
Here are the two adjusted formulas that do one or the other.
This one treats the 0.0 as a unique item.
This one returns all text "numbers".
To convert any of those text "numbers" to their underlying value put a double unary "--" in front of any reference to them or use them in any math operation. In both cases they will revert to their numeric value. BTW my usage of the "--" is what forced 0.0 to 0. I should have caught that one. My bad.
@
For the third rule here, I was thinking of compiling a list of forbidden strength units into Worktab 2 Column B Rows 1 to 10 as we could just link the formula to this range rather than incorporating various strength units into the formula itself. But then I thought that we'd run into problems, especially if we say that "units" is not allowed knowing that the combination "x mg / y units" is allowed - if that makes sense hopefully.
On the new rules part I need to spend some time with this one. I am thinking along much the same lines you mentioned ...... some lookup tables to manage the rules on what the rules are. I will probably have a bunch of questions.
To expedite it would be very helpful to have an uploaded Excel workbook file. It saves having to retype data. Include a comprehensive list representative of all the combinations to be considered. Please do include in the adjacent column a list of desired results.
To attach a file to your post,
click advanced (next to quick post),
scroll down until you see "manage file",
click that and select "add files" (top right corner).
click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"
Once the upload is completed the file name will appear below the input boxes in the reply window.
Bookmarks