are there any easy way to reformat a fractional number: I need, for example, to make 5,23 look 5.23. Is there any function in Excel? I guess not, but have no clue where to start my VBA code.
I am using the following VBA code to classify some rows of data by applying autofilters according to a set of defined values and then populating metadata fields for each row.
Code:
Dim Bits Dim i As Long Const Fam As String = "STD:,Standard,FAM:,Family" ' Populate STD or FAM field Application.ScreenUpdating = False
[Code]...
This works very well in most cases but I have encountered a problem - how can I set the autofilter value when the string I need to search for is using Russian characters? I can populate the search string in the VBA with the Unicode version of the Russian text, but then how do I pass this to the Autofilter?
how I would be able to change the formatting in a userform listbox to Number format (i.e #,###.0). I am currently pulling data from an access database to populate an excel Userform listbox but the numbers come in as Text. I would like to change this to a Number formate.
I have US reporting package that e-mails a report, which I then run macros to put extract the required data, and pivot etc...
There can be anwhere between 1 and 15,000 lines of data.
The file is generated as a CSV file, with dates in the first column in the format mm/dd/yyyy. Other header information also has a "/" so it is impossible to do a text to columns.
I need to continue using UK dating format, so cannot change the Excel settings.
Can anyone provide me with VBA code to convert mm/dd/yyyy into dd-mmm-yyyy without it ignoring any dates where the dd is less than 12?
I'm currently running a macro which copies data from one sheet and pastes it to another.
One of the fields on the primary sheet is a date in the english format DD/MM/YY but when it pastes onto the second sheet it becomes a Julian date 39820 instead of 01/07/09, and when this figure is converted back to date format it becomes american format MM/DD/YY
Currently I've set the macro to PasteSpecial xlValue
Got a random problem with the IsDate function and was wondering if anybody could help?
Below is the code I am using to check a user input of a date, and if it is a recognised date put it in to a standard format (dd/mm/yyyy). The problem is that VBA is checking for an American ...
I get sent a spreadsheet by one of our partners where the dates look like they are in European date format except thay are actually in American format.
example
01/09/2007 - they mean 9th January 2007 but Excel holds 39326 which is 1st Sept 2007.
I can obviously format them but when I sort the list Excel still reads 1st Sept instead of 9th Jan
There are over a thousand entries so re-typing isn't an option.
I run an online store where all the product details are handled by a .CSV file and naturally all the information has to be exact or it won't work at all especially UPC codes and product codes. However whenever I open the .CSV file to edit anything it auto formats several bit of information including several UPCs and product codes that begin with one or more 0's. This among many other problem I have had are all caused by excel's auto formating "tool" and I find it of absolutely no use. Is there any way at all to disable this "tool" so it will stop messing with my data every time I need to make a product change? (I have tried using the '0 trick but when I save the file and open it again later all the '0s are gone again)
I have an excel document that has one columb (I) of cells that changes color depending on a specific date (columb h) . The cells that have conditional formating to change the row color based on where it is ( =MOD(ROW(),2)=1), stays blank and the proper color until columb A is filled in. The others show up red. How would I code/format the lines that aren't included in the conditional formating to always show white when no value is entered in columb a.
can i format the cells that i have made grey for this photo to automatic put : between numbers i put in like the time.example if i would put in a cell 1200 than it would be like 12:00 is that possible i have been through all the time formats in the format cells options but i always get this result ###.
the other ? is can i take the S away when i have formated cells to show kilograms so it would be like 550 kg instead of 550 kgs ?
I need to replace a "." with a "," to stay in the right format, by using VBA.
if i make a macro to do it, it will work for almost all cells but for a few it doens't work! Then, if i select the cell with mouse and replace "." with a "," it works normaly.
My question is why it doesn't work for a few fields if all the data have the same format?
I have h26 and h27 both can generate a number if h26 is a number i need f26 to formate in dollors if h27 is a number i need f26 to be general formate
in the cells h26 and h27 they will already be in that format how can i get them to go to f26 like that
******** ******************** ************************************************************************>Microsoft Excel - PROTOTYPE2207.xls___Running: xl2002 XP : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutF26= EFGH26s1*$1.0027***1Weekly Stats* [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 have a column with addresses and I need to separate it into columns, the main problem is that sometimes the listing has house number sometimes it does not some time it has town but, some time it does not and the post code is not separated from the county - if no house number then that column is to remain empty.
how to use the conditional format tool, but now the company i designed the spreadsheet for, wants me to implement a change. I'm attacking a copy of the spreadsheet so you can see the problem more easily. Now what I've been asked todo is the following.
1. When the stock quantity (Column H) goes below the re-order level (Column K), they want the entire row to change font colour from blue to red. Now I know how i can change the colour of one cell, like ive done in the example, but I'm not sure how to change the entire row colour. If this can be done with conditioning formating then great, but if not then i'm stuck, and relying on your generosity in helping me out.
i have 2 columns the first is the transaction number and second column is the description
i want to make that all even transaction number will highlight the whole row... how do i make that with conditional formatting? or are there other alternatives?
I have a large X-Y-axis table with about 200 entries in it. There are 6 different entries possible. I now want to give each possible entry in this table a color for making it easier to read.
I could write a formula in conditional formating, so that it works for 3 colors. The problem is now that i can make this only for 3 different colors in conditional formating of excel. Is there a possibility for making this for 6 colors?
I have two columns from which criteria must be satisifed. column A denotes gender (m or f) and column B denotes a number of points. I want to sum those males who achieve >4 in one cell and those females who achieve >4 in another cell.
I want to set up formula in conditional formating so that when:
$AF6 = "CA" the color is red or if $AF6 = ("GA","ME","PR") then the color is blue
what I came up with is Condition 1 = ($AF6 ="ca") [which will turn the cell red] Condition 2 ="OR($AF6={""GA"",""ME"",""PR""}, "")" [which doesn't do anything]
Asks almost exactly the question I have, but I can't make heads or tails out of the answers, I'm guessing becasue I have Excel 2003 and not 2007 as mentioned in the replies.
In column "A" I have a number; column "B" the formula =A1 copied on down and in column "C" either a 1 or 2 or a 3.
If the number in column "C" is a 1 then the font in the same cell in Column "B" should be black, 2 Blue and 3 Red.
I'm thinking this should be very simple, but so far it's not turning out that way. )-:
I would like to format a cell so when i enter a six digit number, such as 123456 it would appear starting with a QW then the year, month and day in the format of yymmdd and them the six digit number so it would appear as QWYYMMDD123456, or since today is 01/09/09 is would be QW090109123456
I would like the yymmdd field to be taken from the main location where the date is entered and the QW can be in another field so when I go to another blank field and enter a six digit number, for example 123456 it will be changed to QW090108123456. I hope you can follow this and that I explained it in a matter that is understood.
Can this code be simplified? I currently have this code repeated 15 times, I need to color the ranges yellow and then unlock them. So for now I am repeating the code below for range ("C19:N26") and then 14 other ranges.
And if you have suggestions on cleaning up the code below please let me know, I would like to know the proper/most efficient way to write code.
Sub FormatingBudgetFiles()
'Colors each Forecast cell yellow that the end user can change
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets ws.Activate With ActiveWindow Range("c14:k14").Select End With
Is it possible to format cells so that inputed tel. numbers are all have the same format and not just appear the same, regardless of how they were typed in? i need it so the column can be sorded by phone #.