Forum Discussion
Request a help
- Jan 15, 2022
For 2-way lookups reverting to INDEX/MATCH is often simplest.
The alternative formula takes advantage of Excel 365 to create a more verbose formula
= LET( qtyLevel, XMATCH(qtyOrdered,volume,1), paperOption, XMATCH(paperOrdered,paperType), coverOption, XMATCH(coverOrdered,coverType), cost, INDEX(paperCost, paperOption, qtyLevel) + INDEX(coverCost, coverOption, qtyLevel), IFERROR(cost, "") )
Thank you for your hint Robbins Doug_Robbins_Word_MVP
The question is how can make a function or a scenario so I let the user that help him choose the number of pages, type of cover, and the quantity of the printed books as those are the major factors to evaluate the price of the printed books, note that the data are applicable to expand to several tens of items.
- Jan 15, 2022
The way I would go about it would be to create a userform containing either radio buttons or comboboxes for each of the variables:
Number of pages
Paper type
Cover type
and then, depending upon the selections made, compute the cost based on those selections