Replace Decimals By Criteria
Jul 14, 2006
I have multiple strings in a selection set. My goal is to replace the decimal point with null for a specific requirement. The requirement is this: "#.## "(Meaning: NUmeric.NumericNumericSpace)
Example String #1: 2.5 kips <---no change
Example String #2: 0.6 %%C <---no change
Example String #3: W1.4 <---no change
Example String #4: 0.086 SQ IN <---no change
Example String #5: 6.2.2 <---no change
Example String #6: SPC1.20 <---This one should be changed to: SPC120
Example String #7: 1.2000 <---no change
Now the real complicated string(multiple decimal points found in the same string.)
Example String # 8: 2.5 kips with 0.6 %%C using W1.4 mesh with 0.086 SQ IN. See 6.2.2 on SPC1.20 for series 1.2000. #8 should changed to: 2.5 kips with 0.6 %%C using W1.4 mesh with 0.086 SQ IN. See 6.2.2 on SPC120 for series 1.2000. <---Note:SPC120 change. SPC1.20 is the ony part of the string that meets "#.## "(Meaning: NUmeric.NumericNumericSpace)
View 6 Replies
ADVERTISEMENT
Oct 29, 2008
I am trying to convert Degrees Minutes & Decimals of a minute (12° 34.567') to Degrees and decimals of a degree (12.57611°). I have the formula to convert latitude, that is two digits, but it doesn't want to work with longitudes, three digits. (see attachment). This is the formula that I am using:
=IF(A2="","",(INT((LEFT(A2,3)+MID(A2,4,6)/60)*100000)/100000)&"d")
View 2 Replies
View Related
Jan 6, 2014
how to find and replace to prefix and suffix string/text, see this below :
JACK MANHOLD ----------- JACK
SISCA JACK HOLAND ------- JACK
ANDREW JACK ------------- JACK
View 14 Replies
View Related
May 1, 2013
I have some data in Column L starting from L5,
some data in Column C starting from C5
and some data Column D starting from D5.
What I need is to replace the cell values in column K with adjacent cell values in column J if the adjacent cells in column L,C and D fulfills the criteria of GBP, GBp and cell values starting with GB(for column D) respectively. I need to do this via VBA.
Initially column C
Column D
Column J
Column k
Column L
GB123
GB
1
2
GBP
[Code] ....
Desired results column C
Column D
Column J
Column K
Column L
GB123
GB
1
1
GBP
[Code] .....
View 3 Replies
View Related
Apr 20, 2009
4 columns a-d. now if i find either 1 of the 2 particular strings "hello" or "bye" in column A, I want to move column b into its place and leave the rest of the columns untouched
Example:
dog, circle, blue, 123
hello, frog, green,223
pig, triangle, red, 445
bye, elephant, grey, 322
into
dog, circle, blue, 123
frog, blank, green, 223
pig, triangle, red, 445
elephant, blank, grey, 322
View 2 Replies
View Related
Jun 23, 2006
Is it possible to take a list of numbers then match those numbers to another list of numbers as a whole? I'm trying to make changes to my code and take some of the advice from previous threads, but I can't visualize it. I'm trying to get away from matching each list of numbers to each other line by line. I have an existing sheet (Master) that has several col's of data. Then I have another worksheet that has updated info that I need combined into the master. What I've done so far is added the information to the bottom of my existing data and sorted.
Now I have setup an advanced filter to display the dupes. Here is where it gets tricky..I can't just delete dupes b/c there are cols to the right that have history that cannot be deleted. So I need to copy ranges A to J of the new data and replace the old data within that range.
View 6 Replies
View Related
Oct 17, 2007
I've attatched the workbook here with some dummy values in place of financial figures (We don't base our profit on RAND() formula's )
Essentially, I would like to search for CAN in A and SER in B and if they're found, to alter them to SYD (A) and CAN (2). It's essentially an automatic find and replace, but based on 2 criterias rather than one.
View 9 Replies
View Related
Feb 5, 2009
This problem has come up fairly frequently lately, and I'm not sure how to fix it, or if this is by design...but in Excel 2003 I can't seem to do a "Find and Replace" based on the value of a cell. I can do a find, based on cell value, but the moment I change to the replace tab, the "values" and "comments" are missing from the "look in" dropdown.
I've only noticed this when I'm trying to replace on a filtered list, so I'm not sure if that is part of the issue.
Perhaps an alternative way of arriving at the same goal. Basically I have a worksheet with a number of filtered columns. They are filtered just right, using custom filtering, and so I do not want to undo the filters. In some columns I have formulas that are returning #VALUE! errors. I'd like to replace all of these cells with NA.
View 6 Replies
View Related
Oct 22, 2013
I'm looking for a formula or criteria within a formula to prevent a cell from recalculating or just causing it to revert to a value if another cell becomes populated. Something like =IF(NOT(ISBLANK(xx)),STOPCALC(xx),...
I'm trying to determine some weighted week to week projections and I want to be able to determine the accuracy of the projections without them being influenced by the actuals once they show up (the projections use historical actuals and related data which are all in the same range where the futures will come in). Also hoping for a shortcut to do what I described without having to manually go in and stop the (thousands of) cells from recalculating since the actuals for a given periodicity arrive staggered and not at one specific time.
View 2 Replies
View Related
Jul 2, 2013
I recently became owner of a spreadsheet with some issues, and I am trying to make it useful. Each row has a URL of a blog post, and I want to extract the date from it (which is present in each URL) while getting rid of the rest of the URL. I was able to get rid of everything up to the year (which comes first), but then the URL continues, for example, 2013/05/16/the-rest-of-the-url/ and I would like to just have 2013/05/16 remain.
I am trying to use find and replace with the find box reading 2013/??/??/*/ and replacing it with 2013/??/?? which effectively erases everything else in the url, but leaves ?? instead of the numbers. Is there any way to have it so that it keeps whatever was in the original box?
View 4 Replies
View Related
Feb 5, 2014
[Code] .....
Trying to repeat a 550 or so character statement with a find/replace however I am getting type mismatch errors. When I use a smaller message in the "replace" it works.
I need it to post a message exactly as long as what I have in there. How do I get it to work?
View 6 Replies
View Related
Apr 20, 2006
Need assistance with the code for catching errors when using the find / replace function in excel? In particular, I am trying to write code to break to an error message when the value or string searched for isn't found in the find / replace. At the minute I have just copied the standard code using a macro and all this does is return a message box saying X entries replaced.
View 3 Replies
View Related
Jun 15, 2006
I have values in row A and I have values in row C. I want to create a loop to look up xxx and replace it with the values consecutively in row C. Look at example for a better Idea. I found a way to find and replace, but I not sure how to use it with qoutes. I was thinking maybe I dont even need row A and just supply a list and excel could have the chunk of data in the code itself.
View 2 Replies
View Related
Jul 17, 2014
I am creating a graph with a wide range of values (0.06 - 300). The smaller values are barely visible on my column graph. I have tried all of the tricks I know. Any way to get the smaller values to show up instead of just hovering towards the bottom of the graph?
View 9 Replies
View Related
Oct 14, 2009
I am trying to get an exact ratio in excel but am unable to do so. Example:
60,000/58000 = 1.03. The ratio should then be 1.03:1. But excel is showing this is 1:1. Here is my formula
PHP
=TEXT(E55/E56,"0")&":1" . I need it to show it to two decimals.
View 2 Replies
View Related
May 23, 2014
I have some problem when I would like to sum only positive decimals on userform, I would like to separate the numbers with comma (",") and sum them, the format should be "0,0" and only numbers and "," can be given in textboxes. How should I do this?
View 3 Replies
View Related
Feb 8, 2009
A spreadsheet created by exporting from QuickBooks as a .IIF file is opened in Excel 2003.
A macro multiplies a cell value and returns 1.77999997138977 rather than 1.78. The 1.78 is required for importing back into Quickbooks.
Part of the code is: ...
View 13 Replies
View Related
Dec 16, 2009
i am looking for some formula to round off a decimal number
e.g. A1=8.288
if I use the formula ROUND(A1,2) the result is 8.29.
But I am looking for a result 8.288. That means it shoukd not round off rather the after decimal we should have only two numbers.
8.288 should be 8.28
27.4627 should be 27.46
View 6 Replies
View Related
Feb 4, 2007
i have columns of prices in 2 decimal format that I'd like to manipulate, some prices are whole dollars(no cents & no decimals ) and most are dollars and cents in decimal format-- but to do it successfully, i need the decimal removed. I looked at the "format" function but it doesn't seem to allow for that.
is there any way I can have these prices converted to "cent" format( ie removing the decimal, where applicable), showing them not as "dollars & fractions" but as "cents" i'm sure that would solve the problem for me last time I did it by hand and vowed there had to be an easier way!
View 9 Replies
View Related
Mar 30, 2007
I am trying to put together a code so that when a user enteres more then two decimal points in the cell value they should get a warning regardless if they formatted the cell to show 2 decimals or not...
Simply the problem is on the sheet I have a lot of people format the cell to show two decimals but when you copy and paste the cell values to other sheets the decimals are still there which causes problems.
I am intermediete in VBA so if someone can shoot me some example codes I think I can make it work on my sheet.
View 9 Replies
View Related
Jan 4, 2008
I am trying to combine to cells containing percentages, however when I do the percentages turn into decimals. I have tried using the text funtion, but that just returns the full number 1, no decimals or percentages.
View 9 Replies
View Related
Jul 22, 2008
I'm copying a column range containing numbers with varying decimals from one worksheet to another. The new worksheet and column are set to have no more than two decimals places in the cells through the formatting options.
However, numbers stay showing their original amount of decimal places, so I tried hard-coding the format with:
Sheets("Toolset Scorecard").Columns("G:G").NumberFormat = "0.00"
View 9 Replies
View Related
Mar 18, 2009
I am trying to create a macro where it finds a a certain word in a column for example C. What i want it to do is find anything that says FWD_EUR and then replace that cell (e.g C2) with CASH_EUR_FWD and after it has done that it replaces the adjacent cell (e.g. D2) with EUR_FWD. I then want this to do the same with FWD_USD to CASH_USD_FWD and adjacent cell to USD_FWD.
View 2 Replies
View Related
Mar 2, 2014
Let's say I have a set of values (A1:A10) where each contains a number, with a varied amount of decimal places (some may have 0, some may have 10)...how can I make a formula in cell B1 that averages A1:A10, ignoring the decimal places (rounding to the nearest whole number)
For example, if this was A1:A10
93.11
94
92.12321
95.1
96.7
98.1
99
100.03
88.6677
85.6675
If I did the Average (=AVG(A1:A10)), I would get 94.2498. But I don't want this, I want the formula to take into account the numbers rounded to the nearest whole number, meaning, I want to take the average of..
93
94
92
95
97
98
99
100
89
86
Which would give me a value of 94.3.. In this example, there isn't much of a difference, but I was simplifying the numbers for time sake
View 1 Replies
View Related
Jun 21, 2014
I want round off number to be with the decimals (usually decimals r discarded for round off feature). I ll be able to explain better with an example.
10.36+10.36= 20.72. If i round it up, it vl be 21.
what i am tryin is to get 21.00 after round off.
I prepare my bills in excel and after total of all products, if i get a decimal number, I would like it be rounded off to whole number with decimal and 00 at the end (eg. 21.00 instead of 21.27 or 22.00 instead of 21.77). I tried to change decimals but when I select 2 decimal places, it gives me the actual fig(eg. 21.27 instead of 21.00)
I am already using =sum for the total so cannot use another formula (as far as i know, 1 cell can have only 1 formula. Dunno if multiple can be used in a single cell).
View 7 Replies
View Related
Dec 10, 2007
I have a weird problem with Excel. It recognises all numbers as numbers but excluding the number 1. It is only recognised as text as well as a decimals, for example 3.4. So every time I try and add these values up it completely ignores 1 and decimals.
Have I modified a setting?
View 10 Replies
View Related
Jun 11, 2009
I'm converting metric to British values and have no problem with fixing the decimals when displaying the number. However, I'm wanting to CONCATENATE the unit of measure to the conversion and end up with 12 places beyond the decimal.
Entered formula is: =CONCATENATE(CONVERT(T5,"cm","in")," in")
Results in 159.055118110236 in
But = CONVERT(T5,"cm","in")
Results in 159.1 which is what I want.
View 2 Replies
View Related
Dec 17, 2012
I have created a worksheet to figure out (in this case) how many sets of Buckyballs i need in order to get both a square number and a cube number. There are 216 balls per set. My worksheet so far has:
Sets Number of balls Square Cube
(Number of sets) (Sets*216) (Number of balls ^0.5) (Number of balls ^(1/3))
The problem is that I am looking for the number of sets required to produce an integer in both Square and Cube columns. I have figured out that I can circle all values that are not integers. I am looking for a way to delete all rows with a decimal value or at least all cells with a decimal value and I can delete the rows from there.
View 1 Replies
View Related
Feb 13, 2014
I'm going through financial statements and I would like to be able to run full blown analysis on them. Most public financial reports are written so that a lot of zero's do not take up the useful space. As such (and there is a ton of this solution out there I've found), many people want to take $1,500,000,000 and turn it into 1.5M
I however, do not. I want to convert it backwards. So when something says 5.19 I would like to format it in such a way that it will read (and I can run calculations against it) as 5,190,000,000 (there are no alpha characters, there are instances where there will be negative numbers). Then I could copy this to the 17 different financial statements I've already got rock'n rolling in Excel right now.
View 4 Replies
View Related
Jun 11, 2009
I'm looking for a way to sort things with multiple decimals (version number). Is there a way to have something like this:
1.1
1.57
1.1.5
1.2
1.68.23
1.23.1
become:
1.1
1.1.5
1.2
1.23.1
1.57
1.68.23
I could do it all manually, but I have to work with like 400 entries at a time.
View 4 Replies
View Related