Problem:
I have single products and bundled products. I have a single "product ID" column and I want the sheet to recognize both bundled products and single products and, where it is a bundle, to fill the product ID for that bundle.
Here is the layout:
I have a list of bundles and the relevant product information on a separate sheet.
Explanation:
In column A, I enter either the product name of the Bundle ID.
Problem:
Is it possible for column B to detect whether Column A refers to a Bundle or single product? It detects a bundle, then can it generate the items in for bundle?
For example in A4= " - BUNDLE001" so in column B will generate the relevant product ID: B4= "LG001", B5= "PAN002". But I also need column B to know if it did not Bundle and to display the relevant product ID.
Sheet Link: https://docs.google.com/spreadsheets/d/1wPNYKbtbkaZ2LDrFq2RO_f13cfQeGcWsyhwS5VDkuvk/edit?usp=sharing
if your A column will look like this:
then you can use this formula on every row you need:
=ARRAYFORMULA(IFERROR(IFERROR(QUERY(Sheet2!A:C, "select C where A = '"&
REGEXEXTRACT(INDIRECT("A"&ROW()), TEXTJOIN("|", 1, Sheet2!A$2:A))&"'", 0),
REGEXEXTRACT(INDIRECT("A"&ROW()), "- (.+)"))))
Related
I need to change the inventory category for a couple of account numbers and only for a couple of companies. The inventory category for these accounts are mapped based on the account number but need to be changed specifically just for two companies. I've tried to filter by the company number and then find/replace, which worked fine, but then I can't unfilter to bring back the rest of the companies. I can't change the category for just those account numbers because it is only different for just those two companies.
Lisa, Here's perhaps a simpler approach than where your current way is taking you.
If I begin with this table:
Then I add a column (Add Column -> Custom Column) with the following:
The formula uses an if statement to determine whether each row has a specific Account (Acct. 4) AND Company (Co. 8). If so, then 99 is returned as a new category value for that row of the new column. If not, then the original Inventory Category is returned as a value for that row of the new column. (Obviously, you would edit this formula accordingly, to support your account, company, and new inventory category values.)
Here's the result:
Then I could delete the original Inventory Category column and rename the remaining New Inventory Category column to Inventory Category.
I have a recipe database on Sheet1. Each row is a recipe and each recipe has all of the ingredients listed in a single cell using JOIN in column B e.g. "Bread, Butter, Beans, Cheese".
On Sheet2, I have a client database. Each client has a list of dislikes, all of which are listed in a single cell, using JOIN e.g. "Sprouts, Celery, Fish".
On Sheet3, I would like to have a filtered list of all the recipes that do not contain ingredients that the client dislikes. Using a dropdown, I would like to choose the client and then see what recipes they would like.
After hours of back and forth with Sheets, I've conceded this is way above my pay grade.
Could anyone put an end to this mystery for me?
Here's a link to a demo sheet > Demo Sheet
try:
=FILTER(Sheet1!A2:B, NOT(REGEXMATCH(Sheet1!B2:B,
SUBSTITUTE(VLOOKUP(B1, Sheet2!A:B, 2, 0), ", ", "|"))))
I'm trying to build a matrix on PowerBI and I want to order the data by a field which I don't want to include in the matrix. My field named "category" in the matrix must be on a especific order, and I create a numeric field to specify the order. But when I want to order by that numeric field, I can't, PowerBI only allows me to order by the field which is in the matrix.
To test it, I concatenated my numeric field with the category like this: numeric - category, and it works, but I don't want to show it like that, I want only the category field order by the numeric field.
Any suggestion? Thanks.
EDIT:
I have also tried with "Sort by column", but neither selecting the matrix nor the data source table, the button is not activated.
Also detail that "category" has 2 or more numbers in "order" column.
"Sort by column" was not activated because there were many duplicated rows in "Category" field, so I couldn't sort by "Order" because 2 or more rows share the same "category" with different "Orders". I fixed my database and now I can use the tool.
I'm trying to fuzzy match two columns in google sheets, i've tried numerous formulas but I think it's going to come down to a script to help out.
I have a column with product ID's e.g.
E20067
and then I have another sheet with another column which has image url's relating to this product code such as
http://wholesale.test.com/product/E20067/web_images/E20067.jpg
http://wholesale.test.com/product/E20067/high_res/E20067.jpg
http://wholesale.test.com/product/E20067/high_res/E20067-2.jpg
What I'm wanting to do is "fuzzy" match both of these columns for their product ID, and then create a new column for each match. So it would have the product ID then on the same row in multiple columns each product image URL - like the image below:
Is there a way to do this in google sheets using a script or a formula?
In Google sheets there are a few powerful 'regex' formulas.
Suppose, you have ID list in column A, and URL list in column B
Then use formula:
=REGEXEXTRACT(B1,JOIN("|",$A$1:$A$3))
It will match one of ID's. Drag the formula down to see the result as in picture above.
See more info here
Old thread but, in case you find yourself here, search for my Google Sheets add-on called Flookup. It should do exactly what you want.
For this case, you can use this function:
Flookup (lookupValue, tableArray, lookupCol, indexNum, threshold, [rank], [range])
The parameter details are:
lookupValue: the value you're looking up
tableArray: the table you want to search
lookupCol: the column you want to search
indexNum: the column you want data to be returned from
threshold: the percentage similarity below which data shouldn't be returned
rank: the nth best match (i.e. if the first one isn't to your liking)
range: choose to return the percentage similarity or row number for each match
You can find out more at the official website (examples and such).
Please note that, whereas the OP appears to want the whole list of possible matches, Flookup will only return one result at a time.
Flookup can now return a list of all possible matches through its LRM mode.
Try the following. I am assuming the product codes are in Sheet1 and the URLs are in Sheet2. Both in column A:
=iferror(transpose(FILTER(Sheet2!$A$2:$A,Search("*"& A2 &"*",Sheet2!$A$2:$A))))
Copy down.
If you want to show the image instead of the url try:
=arrayformula(image(iferror(transpose(FILTER(Sheet2!$A$2:$A,Search("*"& A2 &"*",Sheet2!$A$2:$A))))))
I am newbie in X Cart and working on XCart 5.2.5. I would like to know that how can I displays customer billing or shipping address in one new custom column of order list at back end.
Please see the attached screen shots below
Order list screenshot
Any kind of help will be appreciated.
You would need to decorate the \XLite\View\ItemsList\Model\Order\Admin\Search class and define a new column in the defineColumns() method.
The column definition should be something like this:
$columns['shipping_address'] = array(
static::COLUMN_NAME => 'Shipping address',
static::COLUMN_TEMPLATE => 'modules/Tony/OrderSearchChange/order/shipping_address/body.tpl',
static::COLUMN_ORDERBY => 350,
);
First field defines a title of the column, the second field defines a template that will be shown in the table's cell and the third one defines the position of the column (the higher the number the further to the left the column will be).
I have also created a sample module, so you could play with it:
https://dl.dropboxusercontent.com/u/23858825/Tony-OrderSearchChange-v5_2_0.tar
Tony