Rank the best (highest value) combinations based on individual and grouped options - excel

I have a project where people can bid on 6 products individually or for multiple products for a higher value.
For example, someone may bid for Product 1 and offer $2 or Product 4 and offer $6 or Product 1 & 4 and offer $9.
We have bids for all products individually but need to consider mixes where grouped offers are also considered and remaining products are sold individually.
Our goal is to create a ranked list the highest value options.
Does anyone have any ideas or experiences doing something similar and how did you go about it?

Related

Spotfire axis restriction

I have 4 columns: Companies, Products, Sales and Sales Growth.
I need to create a cross table with Companies in Horizontal axis, Products in Vertical axis and Sales Growth in cell values. But I need to show only top 10 products (by sum of sales) and top 10 companies (by sum of sales as well) in my vizualisation and I don't know how to restrict products and companies in my axisses.
I tried to calculate new ranking column which I would use as a condition in axis definition, but the result of my calculation is completely wrong and I really don't know what's wrong, it seemed so simple.
DenseRank([Company],"desc",sum([Sales]))
Next options are to use Show/Hide Items or Data limitation, but I didn't manage to set it correctly.
Could you please give me some advice how to do this?
Thank you
The closest example I have is limiting to the top Nth products per company.
Using show/hide with an expression of Max(DenseRank(Sum([Sales]) OVER (Intersect([Companies],[Product])),"desc",[Companies]))

Conditions in Excel for calculations?

I currently have the following dataset:
What i would like to calculate is the following:
How can i find a way of extracting the number of times a company has only used 1 product, 2products, 3 products etc
The values in the rows are just the counts (so the amount of times a company used that product e.g. 1 means they used product once, twice means product 2 times etc)
So in the dataset image example
Company 1 has only used 1 product, i would like to apply this to the entire dataset, where only 1 product has been used. This is the same for company 2 as only 1 product was used but 3 times, so an output would say something like "2" - which corresponds to the amount of companies that have only used 1 product
And for example where there is more than one product used such as company 3, i would like to have it read "3" the amount of companies that used 3 products
etc
Any ideas
Please see my propsed outcome below:
Thanks
Add a new column PRODUCT_COUNT with the following formula, and drag down.
=COUNTIF(B2:I2,”>0”) to count the number of products utilized by each company more than zero times.
In your example you have 7 companies. So in your summary table, you could do another COUNTIF like so:
=COUNTIF($H$2:$H$8,1)
to count how many companies used exactly 1 product.
=COUNTIF($H$2:$H$8,2) to count how many companies used exactly 2 products.
=COUNTIF($H$2:$H$8,”>=3”) to count how many companies used 3 or more products.
If the number of companies changes, you would need to adjust the size of the range. A named range in the PRODUCT_COUNT column may be a good idea.
=COUNTIF(PRODUCT_COUNT,”>=3”)

Is there a limit to the number of employee levels I can have in Netsuite?

My question is how far vertically can I extend my netsuite hierarchy?
For further clarification, if Employee A is a Janitor, Employee B is Janitorial supervisor, Employee C is Head of Janitorial Services etc. how many levels can I create in NetSuite before I run into some sort of limit?
etc.
C
B
A
Unlimited, you can create as many as you want. I can't find any information about the restriction from NetSuite's help guide. But in reality I can't think of a scenario wherein you will have more than 100 unless there's a company of 1000 strong and each of the employee is reporting to another employee on top or the company is big as Coca Cola with more than 100k employees.

finding the closest match based on multiple criteria

Ive been working on VBA at work for almost a year and have managed to pull of some rather impressive things, normally I can find anything I'm not sure about with a series of searches on this site or others but this time I have come up blank, I guess its most likely because I don't really know how to frame the search properly :(
I'm looking to create a macro that analyses a customers sales history, then preforms a 'you might also like' search from our bestsellers list and returns the closest match to their bestseller. The product is books and due to many decades of bibliographic attention to detail within the industry each product can have up to 20 categories and I want to use this to find the closet match.
The info I have (the important bits)
Sheet 1 - product id - customer sales quantity
Product id 2 -customer sales quantity
Product id 3 -customer sales quantity
Etc etc ( usually up to 100)
Sheet 2 - product id - total company sales quantity
product id2 - total company sales quantity product id3 - total company sales quantity
Etc etc (Currently over 34000 and growing...)
Sheet 3 - cat1 cat2 cat3 cat4 cat5 cat6 etc (to cat400)
Product id 1 0 1 1 0 0
Product id2 0 1 1 0 1 0
Product id3 1 0 1 1 0 0
What I want to be able to is to find the bestseller from the customers list, look up all of the matching categories for that product on the cat reference table, find all results with an exact match to those categories and list them by total company's sales value. Although it is very possible that with the amount of possible categories there will not be an exact mach so I would like then to get the closest match of that product.....
Does that make sense? Please let me know if any more info is needed to help - even just a pointer towards some kind of function or a snippet of code that will help me on my way would be appreciated, I just have no idea how to find a match for an entire rows values.... and even less of an idea of how to find a closest match if there are no exacts...
Interesting question. There's no match function to achieve what you want. Instead, you need to first figure out what kind of algorithm/logic you want to use in order to determine the closest books. This will require a lot of weighing. Here's how I'd do it (without VBA):
Let's use the following data as example:
Approach:
Combine product info with overall sales info, to have a weight for each book:
Determine to the "average preference" of the customers basket in sheet1. In order to do so:
Add the category information for the 400 categories to each product in the basket:
Sum each category for all basket products (see row 6 above)
Determine the weigh (see row 7).
Apply this preference to all products to determine the overall fit:
Compare each product's categories with the preference:
Check that the product is not already in the basket:
Combine all three factor to determine each product's fit (by multiplying the factors) - and rank them using the RANK function:
Last but not least, retrieve the top X highest matches with a lookup:
Here's the sample file.

How should I design an data table that has six or more variables?

The situation is akin to the following:
Assume I am a store selling fruits, I would like to record the costs of each type of fruit. Assume the customer has specific tastes, and they can differentiate everything.
A fruit can be an orange, apple,
pear, or peach
It could be n days fresh from the vendor
The fruits come from different countries and have different taxes for export
Fruits are also valued by weight
Fruits could have handling requirements (Fridge,water sprigs)
Fruits could also be valued just because of different origins
One idea is to do what is done in some industries, assign a unique product code for each variation: e.g. Orange5dayfreshAustralia200gfridgeSydney
This however, would be a HUUUUUGE long list of values, and should any costs change, it would be hell to search for Apples from Turkey that are 200 grams have now 20cents more export tax. Adding new variables would also massively mess up the whole table and require much recoding.
The other way is to assume a standard orange, peach, apple and pear and different weight(2 dimensional table). On other tables, prepare a list of cost savings/increase for any given deviation. (Law of probability should show me I have 80% "standard" fruits, and 20% niche fruits from funky places having funky costs)
E.g. a 1 day fresh orange compared to a standard 4 day fresh orange is 50cents more, regardless of weight.
(Yes, this means the primary table would need to have at least one variable that dont affect the others)
Final constrain: The data entry is done by hired hands, needs to be simple to enter in Excel. The programing can be difficult, but not the general interface.
Any suggestions?
If the information needs to be encoded in the product code, you can use subcodes to build a complete product code.
Type of fruit
AP - Apple
OR - Orange
PR - Pear
PC - Peach
You can use Country Codes for the country, and other subcodes for handling and origin.
EXAMPLE:
AP06BR145HROR
is a Brazilian apple, six days old, weighing 145 grams, with HR handling and OR origins.
Obviously you would need a lookup table and foreign keys for each of the code types.
You seem to have twigged your problem - your data structure is wrong.
Your list is really a collection of attributes that apply to each "batch" of stock you purchase - except perhaps for "n days fresh" where the attribute is the difference between the attributes of date picked and date delivered.
So what you really want is a data table for each attribute type, and then a transcation data table where you add the attributes. The input is a form where the attributes are loopups.
You also need your pricing rules in a table, which you can use to calculate prices.
If your transaction table records both sales and purchases then you can filter on the attributes to report by any combination you like.
But the bit that interests me is how you work out how old the fruit is you are selling. You might know from the paperwork that you have purchased x oranges from Spain on one day and y oranges from Italy on another day, but in the box oranges are just oranges - so how do you tell which are which? Or are you planning to use a FIFO or LIFO scheme?

Resources