Finding Keywords To Identify Product In Multiple Cells

Jul 23, 2012

Macro - it is currently set up to find a specific text, and activate that cell. From there, the spreadsheet has data in 6 cells in the 6 rows below the active cell. What I need the macro to do is to identify the product based on key words in a range of cells: that is, if any of those cells contain the string "total", than the product type is total, but if "total" is not found, look for keywords such as "alpha" and "beta", to identify the product type. If its not a total product, then i want it to look for "productB", "productc", and so on with relevant keywords until the product is identified.

I think IF(ISNUMBER(SEARCH can be used, but I'm not sure how, and I'm not sure how to search all 6 cells (to make things worse, the number of cells vary, so I'm using the "find" function to figure out the first and last cell that contain data).

View 5 Replies


ADVERTISEMENT

Identify Specific Keywords (plural) In A Column Of Text

Nov 3, 2009

So i'm try to automate a process that I currently do using filters.

Here is the problem:

I have a list of text in a column (usually 700 or so entries).

I need to remove any entries that contain 1 of 42 keywords.

So I need a fast way to search each cell for each one of the 42 key words and flag the cell for deletion if contains anyone of the 42.

example
A
1 This field has keyword1
2 This field has keyword2
3 This field doesn't have any of the 42 keywords

somewhere else I would have a list of keywords in a column.

View 9 Replies View Related

Using Formula To Target Multiple Keywords In Order To Categorize Cells

Jan 15, 2014

I have a big file here : [URL] .....

As you can see, the second column contains abstracts which I want to use to determine categories for each document (each line).

Categories are as followed :
Diabetes prevention -> keywords : sugar, diabet*, insulin*
Obesity prevention -> keywords : weight-loss, fat*, LDL
etc. (5-8 categories)

To target one keyword, I found this formula :
=IF(IFERROR(SEARCH("*diabet*"; $B3); 0); "Diabetes prevention"; " ")

What I would like to know is how to add more than one keywords in this formula.

I would also like to know, if it is even possible, how to put every categories in this column, so that i don't have a category per column ... It's hard to explain.

I want to have in front of each line the corresponding column. It means that the formula has to search for every keywords and select one or more appropriate categories.

View 2 Replies View Related

Finding List Of Keywords In Column?

Mar 17, 2014

I need to find 100 or so keywords in a column, I have the list but how would I search multiple keywords as there are 10k columns and it would take forver to search for them manually?

View 4 Replies View Related

Finding Keywords On A Large List

Jan 20, 2009

I need to setup a macro that will search for a keyword in a list with about 21000 rows. When the macro finds the keyword it cuts the row out and moves it to another sheet. I'm having a few problems

1. I don't know how to make the function search until it can't find the keyword anymore, then move on to the next word

2. I can't get it to select what it finds it finds the cell but I don't know how to select that cell once its found.


Sub Search()
'
' Search Macro
'
Dim keyword As String
Dim x, y, z As Long
For x = 1 To 53
Sheets("Test1").Select
Range("A" & x).Select
keyword = Selection.........

View 9 Replies View Related

How To Categorize List / Column Into Separate Ones By Finding Keywords

Jul 28, 2014

Say I have a list:

VB:
Something something apple
Something something orange
Something something banana
Something apple something
Something banana something
Apples woo
Apples And bananas
Something orange something
Something something apple pie
Something something vegetables

And I want to separate the list into separate columns/lists with certain keywords (e.g. apple, orange, banana) like so:

Apple
Something something apple
Something apple something
Apples woo
Something something apple pie

[Code] .....

The "multiple words found" part isn't a big deal (I'm not sure how I'd deal with it anyways). The "Unsorted" part is there assuming creating the separate lists won't remove the entries from the original list (which would then leave all the unsorted text).

View 3 Replies View Related

Changing Cell Text Color WITHOUT Using Conditional Formatting Based On Finding Keywords

May 29, 2012

I have a spreadsheet that uses VB macros to calculate sums of cells based on the font color of the numbers inside. It used to be fairly easy going through each cell and "classifying" them by color, so that my macros can go ahead and sum the numbers in each respective color's cell... but now I have a huge amount of numbers and would like to automate the process somewhat. Here's an example using the A and B columns:

flight $400
hotel $150
hotel $130
meal $20
meal $15
flight $350

I tried using conditional formatting to automatically change the color of the adjacent cells based on the presence of a keyword such as "flight" or "hotel", but this change is only cosmetic, and doesn't actually change the font color (it is still the default black, hence why my color-summing macros won't work!).

I'm including a sample macro for what I use to color-sum my cells, but what I am looking to automate the color-coding process based on looking for keywords as explained above in my example. Here is one of the working color-summing macros (for red, in this case) if you'd like to use it as a reference:

Function SumRed(SelectedCells As Range)
' Adds the values of the cells where the font colour is red(3).
Dim Cell As Object
Dim x As Double

[Code] ...........

View 9 Replies View Related

Search Multiple Worksheets For Several Keywords

May 11, 2009

I am trying to set up a worksheet which takes keywords from several cells (user populates these cells) and searches all worksheets for these keywords.

for example, i have C1:G1 set up as possible search string entry cells where the user types their text. I need a function which takes the data in whichever of these cells have been filled in (i.e. it may only be in 1 cell, 2 cells or all 5) and searches each worksheet for all cells containing ALL keywords. (as it finds each one, i will highlight the cell, but that part of the code is obviously very easy )

Currently i have this (note, i havent yet figured out how to but the k1 to k5 variables into the search string yet which is why they are set but not used):
At the moment, its not ever looking past worksheet 1 - can anyone see why? and then how to i get it to look for all entered keywords?

View 12 Replies View Related

Search Multiple Keywords In A String?

Jan 22, 2014

I am busy building a spreadsheet that must do the following.

A
B
C
D
E

[Code].....

Above is a basic example of the data I am using What the spreadsheet must do is it must search cell B1 for the key word in in cell E1, if it does not find the keyword, it must search the same cell for the keyword in cell E2 and so on if it finds the key word it must return a consatination of cell A1 and the Keyword.

This is easy enough to do using the search function together with a couple of nested IF statements but where the problem comes in is that I am needing to run the search on about 12000 lines using over 10000 key words.

currently I have sheet with a formula in Column A containing 40 nested IFs searching for the first 40 key the same formula in Column B searching for the next 40 keywords and so on but to search 10 000 keywords(Client name or Client number) I am needing to apply this formula to 250 columns over 12000 line which makes the sheet very resource incentive.

How do I streamline this to make the spreadsheet more efficient

View 2 Replies View Related

Change Format Of Multiple Keywords

May 17, 2008

I created yesterday and tested in 5 separate documents and worked fine; I went to use today and it runs (flips through document with no error code) but doesn't change key words to blue/bold anymore. I created in record mode and tweaked because I'm a newbie.

Sub BoldBlueRegionsAcctsMarkets()
'
' BoldBlueRegionsAcctsMarkets Macro
' Makes bold and blue all regions, acct types and market names
'
' Keyboard Shortcut: Ctrl+p
'
Cells.Replace What:="NORTHEAST", Replacement:="NORTHEAST", LookAt:=xlPart _
, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=True
Range("A2").Select ..................

View 10 Replies View Related

Finding And Selecting Multiple Cells

Jan 21, 2010

I'm working on a macro that's supposed to copy certain cells from a sheet, and paste them in another. But the problem is that I can't find a way to get them all in one go. The sheet that I am copying from has a mile-long list that looks something like this:

OR0220018NO-RING 21,95 x 1,78 N270 BS-0205,00
OR0220018N90O-RING 21,95 x 1,78 N290 BS 02022,00
OR0220018VO-RING 21,95 x 1,78 V275 BS-02010,00
OR0220018V90O-RING 21,95 x 1,78 V290 BS 02013,00
OR0220020NO-RING 22,00 x 2,00 N2709,00
OR0220020VO-RING 22,00 x 2,00 V28024,00
OR0220025NO-RING 22,00 x 2,50 N2705,00

It goes over 3 columns. I want to select column A, B and C in every row that contains the letters "N270".

View 2 Replies View Related

Finding Multiple Cells With LARGE

Sep 3, 2009

Is there a way to return not only one cell but two with LARGE?

I'm still working on my top 5 sellers list and trying to generate the list correctly. As of now when I have multiples of the same value I get the same name. Here's what I have now:

Name---Sales
Bob---75
Sue---68
Tim---66
Tim---66
Tim---66

What I'm trying to do is this:

Name---Sales
Bob---75
Sue---68
Tim---66
Jane---66
Dave---66

View 9 Replies View Related

Keywords As Delimiter To Split Cells

Jul 1, 2008

I've got a column of data containing addresses. What I want to do is split the column after certain keywords such as "street", "road", "close" etc and move any words that come after these in the cell into the next cell to the right.

For example, in one cell I might have "54 Burberry Road Finsbury London"... what I want to do is have part of the text remain in the original cell i.e. "54 Burberry Road" and the rest, "Finsbury London", moved to the cell on the right.

Not all cells in the column will match this format so if it doesn't find a keyword, nothing will occur and it will move to the next cell down etc. until it reaches the end of the column.

There are no delimiters (apart from the spaces) between the words.

I haven't figured out all of the keywords that I will need to search for yet but I should be able to extrapolate from something fairly generic.

View 5 Replies View Related

Finding The Highest Value In Multiple Cells And Displaying It

Nov 15, 2009

At my work we use excel to keep a large number of labels done in one day, those labels are then added up to give our weeks total, running total and average by day.
What i am looking to do though on a seperate sheet though is find out which day we had the most, an example of what it looks like

View 2 Replies View Related

Finding A Number In Multiple Cells With Each Of Its Own Range

Nov 3, 2009

So this is something that I'm not sure is possible in Excel. I would like to use an "if,then" statement to see if a number is in multiple cells. I know this is usually very simple except there's a catch here. In each cell there's a number range using a "-". So in a single cell a range would be 301-305. I am open to having the range done a different way like 301,302...etc. I just decided this would be an easy way to look at it and was hoping to find a way to solve this problem with leaving in the dash. Whatever is practical is fine with me.

Using Example A in the attached file I want to use this statement, =IF(308 is in any of the ranges in A3:A6, TRUE, FALSE).

So, for me, the alternative I want to avoid is Example B where I would have to list every single number and then check the whole range. I would like to avoid this because these examples, as you can imagine, are on a much smaller scale then what I will actually be dealing with.

View 11 Replies View Related

Conditional PRODUCT Function Formula (return The Product Of A List Of Numbers In A Column)

Sep 30, 2009

I am trying to use a PRODUCT formula to return the product of a list of numbers in a column, between 2 specified dates. The spreadsheet is arranged as follows:

Column BA list of dates
Column C & DNumerical data not used in any calculations
Column EThe numbers to multiply together
Cell A1Start date to be used in the PRODUCTformula
Cell A2End date to be used in the PRODUCT formula

The formula I have to multiply the data in column E, subject to the start and end dates in Column A is:

{=PRODUCT(IF(B15:B1000>A1,IF(B15:B1000<=A2,INDEX(B15:E1000,0,4))))}

This returns zero though works appropriately if I replace “PRODUCT” with a “SUM”.

View 2 Replies View Related

Dynamic Named Range For The Product Name On The Product Details Sheet

Dec 24, 2008

I'm working on a order spreadsheet system, and I have one sheet called Product Details, where the product name, list price and product code are found, these link to the Sales order page, and I need them so that they can be added to.

So far, I have created a dynamic named range for the Product name on the Product details sheet, and linked the the range via a list validation on the Sales order sheet.

The drop down list displays the products and can be added to by typing new product names on the other sheet.

What I need now is that when a product on the sales order page is selected, it draws the the list price and product code data automatically from the sheet, I tried using a normal vlookup, but I couldn't get it to work. I also need the list price and product code columns to be 'dynamic' so new values can be added further along.

View 5 Replies View Related

Macro For Name Generation From Product To Product With Sizes And Filenames

Jan 30, 2014

I would like to have a Macro to go from the first tab called "Start" and end up with the second tab "End" automatically. BAsically I need to take the product on each line under Tab Start and reproduce it for sizes 35-41 always ending with "-(size)". Then this new Product with Size needs to be multiplied one below the other for as many times as I have pictures (number shown under column B of the tab Start). Next to this value in column B of tab End I'd like the same name listed again but with the number 1, then 2, then 3, etc. as needed and the extension .jpg.

View 4 Replies View Related

Multiple Parameters In Sum Product

Oct 18, 2011

Im currently using the below formula but was wondering if its possible to combine the parameteres that im looking up in coulmn L in sheet one so i dont have to do the formula three times? something along the lines of={"P11111";"P22222";"P33333"}?

=SUMPRODUCT(sheet1!S$3:S$10000;--(sheet1!$E$3:$E$10000='sheet2'!$B$2);--(sheet1!$Q$3:$Q$10000=678);--(sheet1!$N$3:$N$10000='sheet2'!$D23);--(sheet1!$L$3:$L$10000="P11111"))+SUMPRODUCT(sheet1!S$3:S$10000;--(sheet1!$E$3:$E$10000='sheet2'!$B$2);--(sheet1!$Q$3:$Q$10000=678);--(sheet1!$N$3:$N$10000='sheet2'!$D23);--(sheet1!$L$3:$L$10000="P22222"))+SUMPRODUCT(sheet1!S$3:S$10000;--(sheet1!$E$3:$E$10000='sheet2'!$B$2);--(sheet1!$Q$3:$Q$10000=678);--(sheet1!$N$3:$N$10000='sheet2'!$D23);--(sheet1!$L$3:$L$10000="P33333"))

View 5 Replies View Related

Sum Product With Multiple Criteria

Jun 8, 2014

Data below, I would need a formula for the sum total of the volume multipled by the price for each product category.

Category
Product
Price
Vol1
Vol2

HW
Prod 1
12
2
5

[Code] ..........

View 7 Replies View Related

SUM PRODUCT Multiple Conditions Sub Totals

Mar 10, 2014

I have a sumproduct formula that does a count of my table column based on 2 conditions. However, when I filter my data it still present the same results. So ive been told to use a Subtotal formula. I have scoured the net for the right formula and have come up with the following... though it returns data - it returns the wrong results.

Anything wrong with the below subttotal - sumproduct formula? for us in filtered data sets?

Code:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(TasksTable[HIGH LEVEL],ROW(TasksTable[HIGH LEVEL])
-ROW(Tasks!$K$20),0,1)),--(TasksTable[BD]=999),--(TasksTable[HIGH LEVEL]=GR15))

View 3 Replies View Related

Sum Multiple Product For Multiple Values

Apr 30, 2009

is it possible to use the sum product formula to give me the total results for multiple values?
I know I can ask it to look at column a for a value of e.g "44" and column B a value of "gin2334" but can I ask it to ge me total for values from column A that equal "44, 45, 46, 47" ans B "gin2334"?

if not has any got a clue as to how i would get these results?

View 9 Replies View Related

SUMPRODUCT Quarterly Average -> For Multiple Product Categories

Dec 31, 2013

I have data table with sales numbers by product, its wheel base, and over platform for months ranging from Aug 2013 - Nov 2013. This data table will populate with the complete month sales numbers after the month has finished going forward.

I have a table to the right of the listing the sum totals for each product (by wheel base and platform) by each quarter (rolling).

Now I need building a sumproduct average to calculate the quarterly average. This is not that simple because not all products (platform/wheel base) were available the entire quarter.

Also PLATFORM 3 in the tables are grouped - instead of listing platform 3a and platform 3b - using this in the formula:

(LEFT($D$2:$D$100,LEN($J9))=$J9)

Because not all products were available for the entire quarter - and the formula will need to count how many months that product, platform, wheel base was available during that quarter I'm guessing "=MOD(MONTH(A1)-1,3)+1" this may have to be used to count the number of months into the quarter the product was available.

Attached file. [URL] ........

View 9 Replies View Related

Multiple Product Order Form With Price Lookup

Feb 26, 2009

On an order form the customer will be able to enter the width and projection of several products that they want to order. The way these products are priced are in a Matrix of Width over projection. The current system i have designed is:

1. The pricing Matrix's have all been put into one big table and given a unique id per product matrix.
2. An advanced filter has then been run and and it extracts the appropriate matrix and copies it onto the process sheet.
3. An Index/Match formula is used to find the price for the inputted width and projection. It does this by finding the intersect point of the width and projection on the table.

Currently this will be put into a macro and assigned to a button.

The problem is that up to 15 (or possibly more) products need to be able to be ordered in one order form. With the current system it means there will be a lot of Advanced Filters and there will be a macro button that will need to be clicked after every product order (and they're could be 15 or more). Obviously this isn't very professional, it is time consuming and must be the hard way of doing it.

I was wondering what over systems that could be used for this sort of thing. The more solutions there are to this problem the better. Attached is the file. If you do post a solution it would be preferred if you could also post a file with a working example in. I find it much easier to learn the solution if i can see it working.

View 9 Replies View Related

Use Sum Product On Cells That Contain Formulas

Mar 19, 2014

I have the current formula to use as a count based on 2 criteria.

=SUMPRODUCT((TEXT(Order!A2:A65535,"m/dd/yy")=TEXT('Order Confirmation'!$L$13,"m/dd/yy"))*(Order!H2:H65535>=1)*(Order!A2:A65535"")*(Order!H2:H65535""))

Column A on my Order sheet is an entered date and L13 is a specific date criteria - this works fine on its own
Column H on my Order sheet is a calculated value (cells contain a formula) - this part does not work

I have tried changing the "*" to "," as I have seen suggested elsewhere but this does not work either. I believe that the SUMPRODUCT function is having trouble with the H column because it contains a formula and not an entered value. How to make this work or another way to accomplish the desired outcome?

View 7 Replies View Related

Product Look Up: Look Up A Product Based On The Number And The Qty

Feb 20, 2009

i need to look up a product based on the number and the qty. see the example attached.

On tab "Printer - S" 1 need to lokup the costs based on the product code 8 and the qty 100. How do i do this and make it adjustable for any range of priduct codes and qtys. Again, becuase this will be used on a Mac Office, i cannot use macros.

View 4 Replies View Related

Type The Product Id In The A Column Of The Orders Sheet(Sheet2) To Auto Insert The Product Name In The B Column

Jul 16, 2006

In the first sheet I have two columns, one for the product_id and one for the name of the product. So the Sheet1 is like a small database. The second sheet is for the orders.What I want is when I type the product id in the A column of the orders sheet(Sheet2) to auto insert the product name in the B column so i dont have to write it every time.

View 2 Replies View Related

Using Sum Product On Cells With Numeric And Text Values

May 29, 2013

I'm trying to find out exactly how I can use sum product on cells that have text and numeric values. Here's my sample data (6 points):

TN FX1576 20, TN FX1577 25, AZ FX1577 30, AZ FX1577 35, FW FX 1577 40, and FW 1577 45.

I wish to do the following: I want to sum all of the right numeric values based on the first two text values(TN, AZ, or FW). I want to sum these numbers to their respective total cells at the top of the page. So far I can sum the numeric values fine using the following formula: =sumproduct((right(range,2)*1) but when I try to differentiate between the respective locations (AZ, TN, or FW) I get an error message.

Attached is an example of what I'm trying to do along with the formula I'm currently using and yellow shading to represent where I want my respective sums to go.

ExA.xls

View 1 Replies View Related

Add Formula To Cell To Equal Product Of 2 Other Cells Via Macro Code

Apr 18, 2008

I'm trying to set a cell on one sheet to be equal to the product of two cells on another sheet. The problem is that one of the cells on the other page is dependent on the variable T. This is what I've got and it's giving me errors

Worksheets("Output").Range("K14").Formula = "Worksheets("Calcs").Range("D17")*worksheets("Calcs").Range("D17").Offset(10+T,0)"

When I record a macro it gives me this, but again, I need the last cell in terms of "T"

ActiveCell.FormulaR1C1 = "=Calcs!R[3]C[-7]*Calcs!R[14]C[-7]"

View 3 Replies View Related

Identify Multiple Locations More Than X Miles Apart

Mar 16, 2014

Distance Calculations Example 1.xlsx

I need quickly identifying multiple locations based on their proximity to an initial location and each subsequent location selected. I have attached an example spreadsheet that is structured in the following manner:

Cell H2 is the 'initial' location that will be used to identify all subsequent locations
Colums A through C are location specific details including latitude and longitude of all 450 possible locations
Column D is a distance calculation based on the difference betwen the location in column A to the 'initial' location in cell H2
Cell F2 is the necessary minimum distance between locations(in miles)
Cell G2 is the number of locations needed(this will vary)

What I am trying to accomplish is to fill column H with the number of locations specified in cell G2 that are atleast the minimum distance in F2 apart from each other, like drawing virtual circles around the locations on a map.

I am pretty sure this can be done with a Macro, but am not sure if that is the best solution or not. I am a novice Excel user, so even though I don't know the solution, I can already see two issues:

1. Whatever the solution is, the reference in column D will need to change to calculate the distance for each subsequent location instead of staying absolute with cell H2(H3 for second location, H4 for 3rd, etc...)
2. With each selection that is made, any location less than the specified distance in cell G2 should be removed from any future choices for subsequent locations.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved