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


ADVERTISEMENT

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

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 View Related

Worksheet Change Event For Multiple Target Cells?

Jan 20, 2014

I'm trying to run a macro anytime cells G2, J2, M2, O2, P2, S2, V2, Y2, AB2, AE2, AH2, AK2, AN2, AQ2 change.

Right now I have the below code which is working well, but I only have it set for G2. Do you know what the notation is to make the target range multiple cells?

Also, I use the xlDown command in my sorting code, but later on it reverts back to "A5:AT60"... is there any way I can remove these specific cell references? I want to avoid having to re-write the macro every time my selection shrinks or expands.

Code:
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("G2")) Is Nothing Then
Rows("5:5").Select

[Code]....

View 3 Replies View Related

Deleting / Clearing Multiple Cells In Target Range

Jun 2, 2014

I have a target range for a worksheet change. Then when finished I highlight the data and press 'delete' I get an error within the code.

View 2 Replies View Related

Formula To Return Multiple Criteria Including Stretch Target

Jul 8, 2014

I'm struggling to come up with a formula that ill give me the following:

I have will have a row of data (cells A4:H4 on the attached example), in the respective cells below each value in row 4 I want formula that will give me a value of 10 if it sees 90% in the cell above reducing to a value of 0 if it sees 80% in the cell above. I think that there should be a relatively straightforward formulae for that, my problem is that I want to add a further criteria that says; if the value in row 4 increases above 90% and reaches 95% then I must return a value that is 10 for 90% but "stretches" to 12 for 95%. Anything below 80% should return a value of 0, and anything over 95% should return a value of 12.

View 8 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

Creating Formula To Rank Certain Cells In Reverse Order

Aug 23, 2012

creating a formula to rank certain cells in reverse order.

Example

Cell Total Rank
B1 = 2456 3
B15 = 2369 2
B30 = 2547 5
B45 = 2141 1
B60 = 2471 4

Rank every 15 cells basically in reverse order.

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

Formula That Will Look For Keywords And Display Cell Content?

Sep 23, 2011

is it possible to have a formula that will look for keywords and display the cell content?

View 2 Replies View Related

Excel 2007 :: Copy Same Cells From Multiple Worksheets All Named In Ascending Numeric Order?

Jan 15, 2013

In Excel 2007, Windows 7 Home Premium, I am trying to summarise multiple worksheets into one sheet, creating a list in one column in this summary sheet that includes the cell contents from the same cell from each sheet. For example, my first sheet is called KCD183 and I want to list the value from KCD183 Cell A2 in my Summary Cell A2, then show KCD184 Cell A2 in Summary Cell A3 (i.e. the next row down). So my Summary sheet will list all cell A2s from all my sheets, 1 after the other down column A and will continue to add these for any new sheets I add.

I realise that I could just export the spreadsheet to Access and report on it from there, but I don't have the software!

View 4 Replies View Related

Command For Target: Send A Target Link To A File

Sep 1, 2007

i am needing to issue a dos command in excel? basically i need to send a target link to a file. i cant use a hyper link for several reasons, and this is the only way i know how to go about this.

View 2 Replies View Related

Formula In Target

Apr 30, 2007

in selection change event how to identify formula in target?

View 9 Replies View Related

Determine Intersection Of Target To Multiple Ranges

Sep 29, 2007

This code works fine, but it does not look professional. I tried to write like: If Application.Intersect(Target, rng1, rng2, rng4, rng5) Is Nothing Then Exit Sub

it did not work, but as it is down here it worked

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim rng1 As Range, rng2 As Range, rng3 As Range, rng4 As Range, rng5 As Range
On Error Goto NoValidation
Set rng1 = Range("B28:B55")
Set rng2 = Range("D28:D55")
Set rng4 = Range("H28:H55")
Set rng5 = Range("J28:J55")
If Application.Intersect(Target, rng1) Is Nothing Then
If Application.Intersect(Target, rng2) Is Nothing Then
If Application.Intersect(Target, rng4) Is Nothing Then
If Application.Intersect(Target, rng5) Is Nothing Then
Exit Sub
End If
End If
End If
End If
End If
If Target. Validation.InCellDropdown Then Application.SendKeys "%{Up}"
NoValidation:
Err.Clear
End Sub

View 2 Replies View Related

SUM Formula Target Is In Sheet With Variable Name

Jun 5, 2014

In the first sheet "Sheet1", I am trying to SUM the values of column C from another sheet 'XXX'. The trick is that the name of this other sheet is a variable, like Sheets(1+i).name , "i" being an integer. I can't find the proper syntax for the formula below.

PHP Code: 

ActiveCell.FormulaR1C1 = "=SUM(XXX!C[1])" 

View 8 Replies View Related

Formula To Show Target For Today?

Jan 18, 2012

What i have in cell D3 is the formula 'Today ()' to show the date formatted like so. January 2012.

In cells B1,B4,B7,B10,B13,B16,B19,B22,B25,B28,B31,B34 are results showing targets for set each month of the year (B1=January, B2=February etc). What i want to do in cell D4 is show the target for the month that we are in, in other words the target for the month showing in cell D3.

View 2 Replies View Related

Duplicating Multiple Buttons Adjusting Target Cell Automatically

Jun 6, 2014

I tried to search the forum for my unique problem but had no luck. As you will see attached, I have a series of excel buttons I need to duplicate and have target a different set of cells. I am hoping there is a way to avoid manually doing this.

The goal of the document is to push the button when both colours in the row and column interact (research on birds). There are two additional behaviours with an exact same set of buttons but they need to target "Body Rush" and "Food Displacement" tables underneath. I need all the buttons on one page since multiple behaviours happen simultaneously that need to be recorded.

I have something like 100+ modules in VBA I have created, I am hoping there is an easier way to do this so I don't have to create another ~200 modules in order to get the last two behaviours setup.

I am hoping there is either an easier button system or way to make buttons adjust somehow.

I am not the most advanced VBA user

View 6 Replies View Related

Formula To Adjust Based On Target Cell

Mar 11, 2007

I have a spreadsheet at work . I am tracking the quality target for the department and I need to create a formula that adjust accordingly to the target set for month end which is 90%.

I have build in the foreacasted numbers for the whole month but I need the formula to indicate the minimum error points needed to achieve the target of 90% for month end when I replace the forecasted numbers on a daily basis with actual numbers.

I have attached the spreadsheet which will be clearer.

View 9 Replies View Related

Code To Target 2 Cells G10 And N536

Nov 27, 2008

I require the following part of the code to target 2 cells G10 and N536

i guess this is simple but just not sure how it will work

Case Target.Address = "$G$10"
If Not IsDate(Target.Value) Then Exit Sub
Dim DateSuffix As String
Select Case Day(Target.Value)
Case 1, 21, 31
DateSuffix = "st"
Case 2, 22
DateSuffix = "nd"
Case 3, 23
DateSuffix = "rd"
Case 4 To 30
DateSuffix = "th"
End Select
Application.EnableEvents = False
Target.Value = Format(Target.Value, "d") & DateSuffix & Format(Target.Value, " mmmm, yyyy")
Application.EnableEvents = True

End Select

View 9 Replies View Related

Categorize Set Of Number Into Different Group

Jul 10, 2009

I have different sets of number from six digits to a max of 15 digits

eg.
012345
001005869
Z000000A
K1234567
CF0000009
K880000000
M000000123
Y001234505
AL56231
5649852A

What I want is to get the proper category for this number depending upon there digit for eg.
number starting with Z and of 8 digits belongs to group A
number staring with Y ending with 5 and 10 digits belong to group B
number ending with A and which does not starts with any alphabet has 8 digits belongs to group C.
similary ...
A user need to just key in the number, press tab (or any other button) and group for that number
must be displayed (depending upon the compostion of that numbers).

What I can think of is to first seprate each digits from the given number, verify it and then filter them through the groups to get the final group.

View 9 Replies View Related

Categorize Data By Dates

Dec 19, 2006

I have a report which is pulled on a daily basis. I need a macro or a code which searches for the day, one day before the present day, and then custom "Current Day Document Count In" column such that it does not contain "0" and then copy the entire content and then paste in the second sheet. This should be repeated for two days before the present day too. I have attached the spreadsheet, where the first one is the report, second one is where I need the output to be. I have also attached one more "output" sheet to show how the report should look like. I tried to Record a Macro which sticks to the present number of cells, but cannot be used on a daily basis.

View 5 Replies View Related

Categorize Data Table

May 20, 2008

I have a excel file with huge collection of data. There are 5 coloumn.
1st is for Business name 2nd. Region 3. Town 4th. Telephone No and 5th.Category.

Now I want to insert category name automatically in that Category Field for each business. There are 4 type of business.

1. Ristorante
2. Residence
3. Agriturismo
4. Pensione

Each business name has above words at thier end. Look below you will get an idea how they look like actually.

1. Mare Blu' Di Pistocchi Vincenzo Ristorante
2. Riviera dei Cedri Residence
3. Le Terrazze Agriturismo
4. Daulia Hotel - Stella Maris Pensione

So, is it possible to populate the Category Coloumn automatically based on the name of the business.

View 4 Replies View Related

SUMIFS Formula To Work Out If A Rep Is Below Target On Selling Brands

Aug 10, 2009

i am trying to us the SUMIFS formula to work out if a rep is below target on selling brands.

I have two worksheets summary and data, Summary worksheet is where i am trying to do the sumif formula against a sales average taking the information from the data worksheet
I have account manager name, brand, sales, DSI
I tryed the below sumifs formula but its coming back as 0

Please could someone have a look and point out the error in my ways
=COUNTIFS(data!$A$2:$A$11,B17,data!F2:F11,"<B2)")
The first count if should count how many times the account manager appears in the brand and the second count is if his DSI on the data worksheet is higher that the target dsi on the summary sheet

View 3 Replies View Related

Worksheet Change Event Where Target Cell Contains Formula

May 23, 2007

I need to hide/unhide a couple of rows based on the result of a formula in the Target Range. Basically, Cell D2 contains the results of a sum (a+ B), if this is greater than 10,000, unhide the next row.

View 9 Replies View Related

If Target Equals To 0 Then Delete Specific Cells On Same Row?

Mar 14, 2014

I'm Trying to write a code to delete Value in Column E & F If value in Column A = 0. (same row)

I've tried a few methods but none of them work.

View 2 Replies View Related

Copy Multiple Ranges From Multiple Sheets And Paste In Order Via VBA

Apr 21, 2013

I've got several worksheets that all have the exact same layout that a user will enter unique information in to each worksheet. Then I've got a final worksheet that I want to have a button that the user can click and when they do, it will look to each worksheet and do the exact same process for each worksheet as follows:

It first looks to see if the worksheet is visible. If it is, I want it to copy the range A5 to K5 down until it gets to the last non-blank cell in column C. The first non blank cell that will be referenced will be C7. Then I want it to paste this information into the range A5:K5 on the final sheet named Sheet8 with the same values and keep cell formatting such as width and height, font. If the worksheet is not visible, it skips the sheet.

I want it to do this for each visible worksheet, placing the next visible worksheet info under the previous visible worksheet info. My current code as shown doesn't do that. It requires that something be inSheet8 A6 before it will even paste, then it pastes the info from A5:K5 but it doesn't do just the values nor does it keep the formatting. What I mean about not doing just the values is some of the info that needs to be copied comes from a drop down they can choose from and it copies the actual drop down menu. Also, it seems to copy all of the ranges from each sheet and paste it into just A5:K5 on Sheet8 and overwrites each other instead of pasting Sheet2 just below the information from Sheet1. So the only information shown after the entire process is completed is the information from the last visible sheet.

If Worksheets("Sheet1").Visible = True Then
Sheets("Sheet1").Range(Sheets("Sheet1").Range("A5:K5"),
Sheets("Sheet1").Range("C7").End(xlDown)).Copy
Sheets("Sheet8").Range("A5").End(xlDown)
End If

[Code]...

View 4 Replies View Related

Categorize The Data Based On Thier Value

Oct 9, 2008

I have a problem using the if formula with comparison operators. I have a range of fields for geographic areas and the values in these fields are a percent. I want to categorize the data based on thier value.
For example:

If the value in the cell is between 0 and 9.9 percent, I would like the catagorize this as a "1" and so forth.

The entire categories I have are:

0-9.9% = 1
10-30% = 2
30.1-39.9% = 2,5
40-60% = 3
60.1-69.9% =3,5
70-100% = 4

Using the if formula I know how to obtain an answer if the condition is exact -if(A1=0:1:A1) but I would like to enter a range of values for the comparison such as
-if A1 is between 0 and 9.9 then 1, if A1 is between 10 and 30 then 2 etc.

View 3 Replies View Related

Formula For Number Of Perfect Ordered Needed To Achieve Certain Target

Jun 11, 2014

I was working on a chart to calculate my Amazon seller rating to see how many more perfect order I need to hit my next target grade. Here is how the calculation works.

Order with no problem gets 100 points per order
Minor problem gets 0 point
Moderate problem minus 100 points
Severe problem minus 500 points

Grade are evaluate by:
<84.5 Fair
<96.5 Good
<98.5 Very good
Above is Excellent

Total points / total orders = final grade (or percentage)

As of now i got : 53800 (points) / 624 (orders) = 86.22(%)

Now that I know what grade I've got so far and I also want to know how many more perfect orders I need to achieve my next targets or in case some bad orders come by and how far they pull me down.

Attached is my work sheet so far and I'm just missing the calculation for the orange shaded part.

Amazon seller rating calculator.xlsx‎

View 3 Replies View Related







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