How To Find And Remove Things From A Data Range
Feb 25, 2013I just want to remove all the parts after /p1/ and /p2/ and make each cell contains only the top level data. How do I do that?
View 2 RepliesI just want to remove all the parts after /p1/ and /p2/ and make each cell contains only the top level data. How do I do that?
View 2 RepliesI have to use data tables to calculate Net Present Value (NPV) by altering specific variables.
My NPV is the result of a series of calculations to ultimately arrive at a cash flow figure and then apply the WACC (average cost of capital)
I understand how to use data tables But for the life of me i cant figure out how im going to tell excel that im changing for example wage costs and not fixed assets when trying to asses the NPV sensitivity
My sheet and calculations are all set up
I've done it manually by altering the figures on the Inputs and Data Sheet.
My NPV calculation is on the Workings and calculations sheet.
The data tables i have done manually are on the Inputs and Data sheet.
I have attached an excel spreadsheet
how to set a macro to extract the following datas from it.
Game Title
Description
URL
Picture can be set at 1 side to the right of the URL
I use MS Excel 2007 and I was wondering if it was possible to enter data for certain things once, and have that data copied automatically every time I type the text. For example, if I type Blue Car in a cell and type 4 in the next cell, is there a way I can program Excel to enter that data every time I type Blue Car?
View 14 Replies View RelatedI have a list of parts in Column A, often times with duplicates in the column.
I have a list of parts in Column B (from another source), again, with duplicates.
What I need is - leaving columns A and B alone;
Column C to be unique Column A parts
Column D to be unique Column B parts
Column E to be parts in common between Columns C and D.
I want some example of VBA that could copy data (A1:B15) to new range (D1:E15) then sort and remove duplicate.
SWS
Central Pinklao FLG
RMA Trading
Thonglor 13
SWS
IT Square
[Code] ......
I am trying to monitor my turnover and taxes but struggling slightly to get things to work. I have attached a spreadsheet that has comments inserted to show what it should be doing, I just can't get that to happen at the moment.
OzGrid help.xlsx
I have a few excel calendars.
I was wondering can I take a calendar and then put hyperlinks or vba to make a sheet if clicked on.
So If I click on an icon on a date, it will copy a certain template sheet, then link it to that date and that icon.
See an excel calendar, I have a few others to play with aw well.
But this one gets updated on the same the page and not sure how the links/icon would follow the dates. I was hoping for maybe 3-4 different icons on a date.
Here's a sample data set. How can i perform a vlookup to populate my forecast columns and have it match BOTH the customer column and the SPFKey columns?
******** ******************** ************************************************************************>Microsoft Excel - Receiving Qtr1 2007.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutL20=
ABCDEFGHIJKL1Business*UnitCustomerSPF_KeyFORECASTACTUALS*2"NBPRO"Sold-to*PartySPF_KeyJanFebMarTtlJanFebMarTtlVariance3NBPROAAR*CORP.883***01*1224NBPROAAR*CORP.933***020**20205NBPROAAR*CORP.934***09**996NBPROAAR*CORP.999***02*1337NBPROAEROTHRUST*CORPORATION6600***01**118NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD918***0*11229NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD919***0*112210NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD933***042422210610611NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD934***042424112512512NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD1742***0*1*1113NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD1793***0*0*0014NBPROAIR*CHINA*IMPORT*&*EXPORT*CO.*LTD1795***01**1115NBPROAIR*INDIA933***036408215815816NBPROAIR*INDIA934***046176512812817NBPROAIR*INDIA1742***0**00018NBPROAIR*INDIA6601***0*1*1119NBPROAIR*INDIA6602***0*1*1120NBPROAIR*INDIA6603***0*0*00Sheet2*
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.
I am trying to compare items on two spreadsheet. I have an existing spreadsheet that lists items and then I import another spreadsheet from a database to confirm if new items have been added that were not on the original spreadsheet. I am about to go crazy and cannot figure out why I keep getting N/A (I know there are some repeats).
I have tried formatting, adding in isna, making sure there are no spaces, and paste special as text... still doesn't work. There are hypens in the data so I have removed them with substitute.
Sub Moveit2()
Dim Quantity As Range
Dim Cell As Range
Dim Cell2
Dim Breaks As Range
Set Quantity = Range("a2", "a21")
Set Breaks = Range("g1", "s1")
For Each Cell In Quantity
For Each Cell2 In Breaks
If Cell2 = Cell Then
Intersect(Cell2.EntireColumn, Cell.EntireRow) = Cell.Offset(0, 1)
End If
Next Cell2
Next Cell
End Sub
I have this macro to move things to the right. Sort of like a vlookup in a way. However, it runs using one range @ a time. For example it will look up the quantity in A2 versus what's in Row 1 and if they match, data from B2 would be moved into correct column. However, I'd like to run for multiple columns at the offset so I can don't have to keep changing data in the macro. Like want to run for these ranges at the same time as running the first range.
Set Quantity2 = Range("c2", "c21")..........
I am trying to develop a point system to rank things. For eg: in the below chart, I have the follow criteria.
In a particular Cell A1, i enter a numerical value like 1.5. Then Cell A2 (Points) should show that the Points earned is 80.
If MTTR is 1.00, then the Points received by the candidate is 100. Similarly if 3.5 or higher is there, then the points should be 0
MTTRPoints
1.00100
1.2590
1.5080
1.7570
2.0060
2.2550
2.5040
2.7530
3.0020
3.2510
3.500
This is only one type of calculation. For other tables, i will have to change the criteria.
Is there any way i can set the limits for A2 as 0 to 100 and based on what appears in A1, the cell A2 should change automatically
So I have this assignments. Its about rental services. I need to create a formula where the price is automatically found from a table depending on what drop down menus are selected. One menu is the rental name and the other is the season i.e. high or low, therefore each rental has two prices.
I know i can use Vlookup if there was one drop down menu but how to do the other. I was think it will interms of if statement but i dont know...
Here is the link to the worksheet: [URL] ...........
How to find and replace a range of values. I've looked online, and searched the forum with no success.
I have a list of cells in a column labled "Check #1", "Check #2", "Check #3" ect. I'm trying to build a Macro that would replace any value from "Check #1" to "Check #50,000" with "Outgoing Check". I know this can be done manually with relative ease, but it will need to be done very very very often, so I'd like to automatic it as much as possible.
How to put the steps into a Macro or Formula that could be re-produced with ease.
I have enormous amounts of data to sort through (as we all do) and I am trying to link them to unique identifiers for easier data maintenance later.
What I want to do is vlookup from the 'solved' sheet a code, which will search the 'data' table and return the 'DFU' code.
Example 2905.xlsx
find a continuous data range in Column A of a worksheet with a header in A1. But now I'm thinking that I asked the wrong question. Each day I have new data (a series of numbers) that are moved into column A of a spreadsheet. I never know ahead of time how many numbers will be in the data set. And I need to perform a series of calculations on the data. I need to do the following:
1. Find the range of the data set.
2. Perform a series of calculations on the data set.
3. Report the results in a new location.
If #1 is pre-defined, then #2 and #3 are very easy. However, #1 is causing problems. I can find the range as a string:
What would the VBA code be to find the last row of data and have it copy range A2:E(last row)?
View 2 Replies View RelatedI have a piece of code used to find a matching date in a column and then unhide that column. Code works because there was only one date on the sheet other than the one's I was trying to find. I now have to store additional dates in the sheet and this is disrupting the search as it stops (as it should upon finding a match). I would like to see if there was a way to modify it so that it will look for the match in specific columns i.e. Specifically the dates are located in AX1:IX1. Here is the code
Columns("AX:IK").EntireColumn.Hidden = True
Dim DateToFind As Date
DateToFind = Range("a1")
Cells.Find(What:=DateToFind, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, _
MatchCase:=False).EntireColumn.Select
Columns(ActiveCell.Column).EntireColumn.Hidden = False
I see that IF statements can only be nested 7 times. How do I create a cell that checks to see what item was selected in the dropdown box of 20 different choices and choose a particular cell range depending on what is chosen?
View 9 Replies View RelatedI have attached a file to make this easier. Basically I would like to search "Points Scored" (B2:W9) for the highest score (which I already have done) and when it is found return the team's name that is associated with it. Then do this for the second, third, etc. as it can be seen in the "Main" sheet. I'm thinking an index/find approach, but I just keep getting "N/A".
View 7 Replies View RelatedI am looking to Find and Replace (via ctr-F) but I need to replace it only within a range of selected cells. Each time I try to do this it replaces everything even though I have tried selecting each cell and replacing only that. Is there a way to select a certain amount of cells and replace?
View 2 Replies View Relatedsay that i have alist of data in "A2:A", which are a string file (text) and i want to rename each data to a certain name that defined in range "B1:B2" (String file too).
For Example: for range
C2 = S16e
C3 = 16/E
C4 = 18W
C5 = Site18 w
& The target name is to be:
B1=16E
B2=18W
For case above, i need to replace C2&C3 in to 16E, while C4&C5 to be 18W.
-------a--------b-------c d e f
1 f200:f299
2 f400:f499
3 f600:f699 - (I would like to drag and fill every cell in column A, adding 200
4 auto cells to each cell.)
5 auto
I am looking for a formula function or a vba code where:
- In workbook1 find the first cell that is empty between range A7 -
A10,
- In workbook2, in Range G10- G13: find the word "Day1".
- If the word "Day1" exists in cells G10 or G11 or G12 or G13, copy
the particular cell or cells where "Day1" exists to the first found
empty cell or cells in range A7-A10 in workbook1.
Lets suppose cells A8, A9, A10(workbook1) are empty cells, that means
A8 is the first empty cell.
And G10,G11,G12, G13 (workbook2) have the word "Day1"
Then,
Copy cell G10 into cell A8
Copy cell G11 into cell A9
Copy cell G12 into cell A10
I am using the above code to find and remove data, at present the code does not find the exact match.
For instance if someone enters as it will remove any entry with as in it.
I want it to only remove specific data, so if someone types in as, and as is not in the list to look through I wan't them to recieve a message telling them to check spelling and enter exact value of data to be removed.
IE (enter Blauv to remove Blauv, Not BL and remove Blauv, Black, Blue)
The find method has a lookat arguement which you can define as xlwhole or xlpart, by default it is set to xlpart.
If you have a cell containing Blauv
.find("Bl") will find it, .find("Bl", lookat:=xlwhole) will not.
I can use find and replace to remove the following, however as I would be doing the same process numerous times it would be very tedious.
I would like 2 VBA scripts.
1 - replace the following letters (uppercase & lower) in Column A and C replace A, V, N, Z, X, Q
so if it finds A it would remove A from the cell.
The cells may contain other letters including these one's i.e
A123XCB235 or
123VBN7779A
2 - The second independent code would replace the characters replace A, V, N, Z, X, Q with P, M, L, R, J, H ie. A becomes P, V becomes M etc...
Again the cells may contain other letters including these one's i.e
A123XCB235 or
123VBN7779A
I have made up 7 worksheets that are completely identical with exception of course to the data they contain. I have a master sheet that contains some of the data from each of the other sheets that will be shared between them. Things were working very well until I discovered that some data was duplicated on a couple of the sheets; and I am in need of adding more worksheets.
The formula I am using for this will not allow me to have more than the 7 worksheets. It is an IF statement array. So now I am wondering how will I be able to add these extra sheets. I would like to use my worksheet names in a range but have evidently done something wrong and could not get that to work before, ending up with this very long 'IF'. !Can worksheet names be used to create a named range?
Also, I would like to know if there is a way to prevent duplicate data on these sheets. I am using conditional formatting on each sheet now, but that of course only works on the current sheet.
i have is 3 sheets in the same excel document. Sheet 1 is the mater sheet, which is a compilation of sheets 2 and 3, however the sheet layouts are different.
The sheets consist of a list of names and details. Sheet 1 has all the names in the list, however sheet 2 and 3 only have partial lists that are in a different order from the original list. The details listed next to the names in sheets 2 and 3 are different and hence a straight forward row copy and paste will not work.
What i need is to write a vba script that can take the name from the master list, search sheets 2 and 3 for the name and lookup the variables placed in next to the name, then update the master sheet accordingly, then continue to the next name on the master sheet and do the update again, and so on until all is updated. I have already thought about using lookup functions in excel however there is 1000 names on the list and around 60 details so it would be messy.
I have:
www.abc.com/
www.abc.com/def
what I want is to basically remove the "/" after the .com but keep it on the second one.
So final result should be
www.abc.com
www.abc.com/def
when I do find and replace of "/" with a blank it makes it www.abce.comdef, which is not what I want.
I am trying to remove the last 6 character from a variable. I worked out how to do it using formula's in XL, but want to move this in to VBA. Currently I have this
Mid(ActiveSheet. Name, 1, Find(" Intrdy", LookIn:=ActiveSheet.Name))
however it does not like the find function. Does it exist? am I using it correctly?