When I wanted to get the median price of an item on the steam market I came across this answer. It gets the lowest and median price of an item. The one thing I had trouble understanding which currency number corresponds with what currency and if so, which industry standard is used here.
This is an example URL:
https://steamcommunity.com/market/priceoverview/?appid=730¤cy=3&market_hash_name=Tec-9%20%7C%20VariCamo%20(Minimal%20Wear)
In the documentation it says it is ISO 4217:
An optional ISO 4217 currency code. If specified, only prices for this currency need to be
But that's clearly not the case.
When I put in 1 as the currency parameter, I get dollar.
With 2 I get pounds.
And with 3 it responds with euro.
...
The max seems to be 41 with the Uruguayan Peso
All actual currency codes and other respective information about currencies on Steam can be found in global.js on https://steamcommunity.com/market/. Just open this page. Then open developer console and search for g_rgCurrencyData variable like on image below.
Location of g_rgCurrencyData variable
Besides codes there are info about formatting for each currency which is useful when you need to parse data from page or automate some actions.
How can I make an if statement in excel that will returns 999 if the A3 cell has this information (Your order qualifies for FREE Shipping Choose this option at checkout. See detail) otherwise print the number(for example for this information "This seller has only 3 of these available. To see if more are available from another seller, go to the product detail page" I would like to print 3). I attached what I've done by now. I will appreciate any help.
=IF(A2="Your order qualifies for FREE Shipping Choose this option at checkout. See detail",999,TEXTJOIN("",TRUE,IFERROR(MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1)*1,"")))
I'm trying to make a spreadsheet for some calendars that I'm selling. I have a pricing scheme which depends on how many calendars a customer buys. I want to be able to keep track of sales, but I don't want to have to input the price per unit for each sale. I set up an IF statement that seems to work except for the last variable. Here's a screenshot:
As you can see, it works all the way to the last one. After the number reaches 11, the price per unit should drop to 6, but it doesn't! I know it must be a simple fix, but I don't know much about IF statement, so I'm stuck. Please help!
If you set up your price table similar to my set-up below, you can use a VLOOKUP formula to make it more flexible.
The formula in H10 is:
=VLOOKUP(G10,$B$1:$C$5,2,TRUE)
Enter and drag down.
The benefit of this approach is that you can change the lower bound count on the left and you'll get an adjustment without having to update the formula. Try changing the 2 in Count to 3 and you'll see the adjustments right away.
An added benefit is you can add some more values to the table for further pricing brackets.
If you must use an IF statement, try:
=IF(G10=1,9,IF(G10<=5,8,IF(AND(G10>5, G10<11),7,IF(G10>=11,6,IF(G10="","")))))
The problem with yours is it will never read the if(G10>=11 part because it has already evaluated if(G10>5
If it should have no output when G10 is blank, use the following variant:
=IF(ISBLANK(G10),"",IF(G10=1,9,IF(G10<=5,8,IF(AND(G10>5, G10<11),7,IF(G10>=11,6,IF(G10="",""))))))
I agree with #Nanashi that putting the price thresholds in a separate table and using vlookup is a better solution. That would make it possible to change the price points without having to edit multiple formulae.
But to just get your formula working, try this: =if(g10="","",if(g10=1,9,if(g1<=6,8,if(g10<=10,7,6))))
Notice that:
You don't need (and probably don't want) quotes around your numeric
values
The order of tests is important. In your original, the test for g10>=11 is never reached because it is in the else part of the g10>5 function.
A properly constructed table of quantities and pricing coupled with a VLOOKUP formula would be the best way to go and eases future pricing changes. But for the sake of diversity, your straightforward pricing structure could also be handled by the following:
=(6+(G10<11)+(G10<6)+(G10<2))*(G10>0)
In the formula, "G10>5" should be "G10<=10". Otherwise, when it gets to 11, it still meets the G10>5 criteria.
So here is my problem, I'm setting up CsCart V3.0 for an online store and on the product page Minimum Quantity field displays the entire product name and then minimum quantity, example below.
Minimum quantity for "Edimax EW-7811Un Network adapter - Hi-Speed USB" is 1.
I don't need product name to be displayed in Minimum Quantity since customer already on the product page. Does anyone have any ideas how to resolve this?
It can be done by two ways, but first of all, for what do you need such configuration? It is illogical. 1 is a minimal required value. You will not be able to add 0 products.
Any way:
1) Change the language variable. Go to the Administration -> Languages (in your backend). Find "Minimum quantity for" using the search. You will see something like this:
Change the value to any text you need (For example: "Minimum quantity is [quantity]")
2) Open this file: stores/[YOUR_STORE_ID]/skins/[YOUR_SKIN]/customer/common_templates/product_data.tpl
And find this code:
{capture name="min_qty_`$obj_id`"}
{if $min_qty && $product.min_qty}
<p class="description">{$lang.text_cart_min_qty|replace:"[product]":$product.product|replace:"[quantity]":$product.min_qty}.</p>
{/if}
{/capture}
You can change the language variable to your or change this code as you wish.
Our customer has a strange requirement. I am not sure if this is feasible in CRM 2011. Currently, the rollup calculation is always performed on the base currency field. For eg: if the rollup field is selected as "Estimated Revenue" from the opportunity, the rollup calculation is performed on the base of the estimated revenue.
Now ,is it possible to change this behavior. i.e instead of using the base currency field, the rollup calculation has to use the actual currency field.
Has anyone ever attempted to write a custom logic for the rollup calculation.
Thanks,
Vikas
I cannot imagine why you want to do this. Why would you want to add up dollars, yen, escudos and euros in a single figure (like adding apples and watermelons)?
The whole point of fields like estimatedrevenue_base is to get everything in one currency so that you can add them up and get a figure which at least means something.
If you are only using one currency then there is no difference anyway. If using more than one, Base currency is surely the way to go?