Conditional Format Text If Text ContainsAug 6, 2008
How do I conditionally format a cell if a particular word is within the text in that cell?
How do I conditionally format a cell if a particular word is within the text in that cell?
How do i do a conditional format where if c3 text=red then a3 text=redView 6 Replies View Related
is there a way to have a cell display a certain text if it is empty?
i.e. i would like all the blank rows in a section of my spreadsheet to have a grey fill and display the text "Please input your description here" if the cell is blank.
I have a range that contains dates, with some cells within containing text (e.g. "TBC" or "planning will occur wk42"). I have basic rules as below:
- highlight red if older than today
- highlight green if today or in the future
The problem I have is that the cells that have text are highlighted green which I don't want. I also don't want to have to go through the range removing conditional formatting from each of those cells each time I copy over new data. Is there a way of telling excel to not use conditional formatting on those cells that contain text so I can manually highlight as I need? Some have text as that is how I receive the data.
I'm attempting to use Conditional Formatting to hide text where the background is shaded. When the background is white, I can just set the text to white and it is invisible - no problem. However, when the background is set to anything else, and I set the text to the same color as the background, Excel LIES to me. It pretends that the text is invisible, but it still shows up in Print Preview and when it's actually printed. The Custom Format ;;; doesn't help me, because I need the invisibilization only under certain funky conditions.View 5 Replies View Related
conditional format formula that is based on a text range within a cell. In my case, I would like to compare the low and high range when inputted as a number followed by the quotation marks followed by space then hyphen, space then number and ending in quotation marks. The quotation mark is being used to represent inches.
Like this in cell D14: 0.2” - 2.2”
I am using the following condition format formula which works for the strict case above.
However, there will be times when users using this spreadsheet may leave out the spaces on either side of the hyphen, or add more than one space between the number and hyphen. Also if additional digits are added, my formula above does not include all the digits in the results. I prefer to leave the quotation marks in...........
I can't seem to make user-defined format that puts a text in front of a number and/or a text.
Let's say I have A1: 13, A2: texttext A3: text7 and I want to format a lot of cells to "Ilike 13" / "Ilike texttext" / "Ilike text7"... ie add the same text in the front of the cell, no matter what the content is.
I did manage it seperately, with "texttext" @ for text and "texttext" # for numbers, but what's the general one?
I have a few tasks which I have been doing manually because I do not know if there is a way to accomplish these tasks automatically via some excel formulas.
My first task requires me to take an address, for example: 1234 CAMBIE STREET, and format it such that it is properly capitalized (only capital letters in the front of words) like this: 1234 Cambie Street
My second task involves taking an address, for example: 1234 1st Avenue W, and rearranging it such that the direction is in front of the street name like so: 1234 W 1st Avenue. What makes this task potentially even more complicated is that not all the addresses I am working with require the rearrangement, so I can't simply have a formula that puts the last group of characters in front of the first group of characters because that may screw up addresses that don't require this formatting.
My third task demands that 2 columns of names are combined into one column, while also simultaneously placing a "&" between the names. For example: Jonathan Parkinson | Sarah Parkinson turns into Jonathan Parkinson & Sarah Parkinson. Now I do understand how to use a simple combining formula (=a1&" & "&b1) but it isn't that simple. The columns are not all filled with names. Some pairs may have no names, whereas others may have only one name. Because of this, the formula I used as an example will result in many instances where all I see is a "&", and other instances where I see the first name, followed by an unnecessary "&".
So far, for the majority of these problems, I've been using a combination of manual data input, and the replace function, but I really do hope there is a faster and better way to go about these tasks.
can you format msgbox? i want to centre/center some text
(also - mods...
....If are you new to the forum, or unsure,...
...If you are new to the forum, or unsure,........?
In order to export an excel table into another program I first need to save the excel file as .txt. The .txt file can then be imported by the other program.
First I however need to make excel understand that the value should be a text and not a value. I therefore format the number as text (0000150235) by adding "0000150235". After saving the file as .txt the format changes from "0000150235" to """0000150235""". I do however need the format in the .txt file to be "0000150235". Can anyone tell me how I can save "0000150235" as .txt and get the value "0000150235" in the .txt file.
I have an excel sheet full of dates in text format and want to convert them into regular format. For instance, one of the dates listed is in text as "60801". I'd like it to show in regular date format of mm/dd/yyyy, so that 60801 becomes 8/1/2006.
In D2 I have: =B2
In D3 I have manually input: (space)3-08
As you can see the CONCATENATE puts the "39569" date in A2 But the second line puts the text date as I prefer. What I would like to do is put in a formula or macro in D2 and down that will change the "Mar-08" to "3-08" so it CONCATENATEs correctly to column A. Simply: I'm trying to avoid manually inputing the text version "3-08" (or whatever M-Y) into D2 down a hundred or so rows!
I want to convert number format to text format, any formula ?View 6 Replies View Related
how i convert text format into numbers format in vb.
i have a formula in vB:
Private Sub Textbox3_Change()
Textbox3 = Val(Textbox1.Value) + Val(Textbox2.Value)
however..when i sum it up (in excel) using"=sum" formula...it ooes not sum up
I faced an error "number stored as text"..how to i convert it to numbers format in vb.
Need to create a set of aligned text amts from various cells...Tried Format but unable to get right combination...I've looked at many threads and most seem related to getting amt from text instead of reverse.
Cell may contain nothing or a monetary amt, negative or positive. Output needs to be in format of "$9,999.99-" or similar...with leading zeros suppressed but a min of "$ 0.00" showing, so that above/below amts with be decimal point aligned in a fixed font situation.
I've almost gotten my routine finsihed but this is last remaining obstacle.
I'll get straight to the point: How can I change this text format from 474556788 to 0-47455678-8 (dash added after 0 and before the last number). I need to apply this to around 5000 rows (can't do that manualy). I want it to be int his format:
474556788 to 047-455678-8
Tks Auto Merged Post;474556788 to 047-455678-8 (This is the wanted format)
On the attached example i have a list of fractions (in the format ?/???). However, i have a problem when the fraction is 6/4 or 4/6 as excel rounds the nominator and de-nominator down to the lowest value so these fractions become 3/2 and 2/3. For these two fractions only i don't want this rounding down to happen.
I am open to any suggestions, but i was thinking of some vba where on pressing a button it would run a macro that went through the cells in the column and if the cell value is 1.5 (3/2) then format the cell as text and enter the value"6/4". For the 2/3 fraction, i think you may need to say if the cell is greater than 0.66 and less than 0.67 because this would possibly be harder to exact as the number of decimal places involved.
How to format different numbers to the same format (as text). Mainly I need code that would format numbers like 25, 25.36 or 254.60 to numbers looking like this 000002500, 000002536, 000025460. They must be of nine digit length with the last two digits as decimals.View 9 Replies View Related
1. Search an excel sheet "column" for a particular type of text and insert values based on that text (if found) in another column.
e.g I have column A1 to A10 with different types of text. I would like to search for the keyword "Risk is high" OR "Risk=High" for each cell in the column and insert a "1" if found beside it's corresponding "B" column. If not found, I would like to insert a "0".
So, if the text "Risk is high" OR "Risk=High" was only found in A6, I would like B6 to be "1". Rest of the values in the B column would be "0's", since the text was not found in any of the other cells.
I have a macro which imports data from a mainframe dump text file and performs 'Text to Columns' on the imported data so that formula in the spreadsheet can act on the data. The code works perfectly well when I use it, but if a different user logs on and performs exactly the same mainframe dump and import macro the Text to Columns action splits the raw data in a different way and the result is that the split renders the formulae useless.
I've experimented a little and for some reason it appears that the 'Field Info' parameters which are produced when the Text to Columns function is recorded in a macro differ between users even though the raw data is exactly the same.
Array(Array(0, 1), Array(18, 1), Array(35, 1), Array(56, 1), Array(70, 1), Array(88, 1), _
I have a date format to show Day of Week ( DOW )
using format: [$-C09]dddd in Cell A1 if Formula is = NOW ()
But if want to use cell B1 to show the day of week FROM A1, but in text as if I typed the DOW.
The reason is, when a new day occurs and I try to use A1 in email for example, it will show up as numerical date and not the actual worded DOW.
How can I convert the DOW from A1 to show the day as if it was a typed DOW in cell B1 ?
I have a data set which is in a date format of MM/DD/YY. I have converted it to YYYYMMDD. I now need to copy and permanently past the values so that the value within the cell always reads to result of the date in the format of YYYYMMDD.
-current = 07/01/08
-new format = 20080701 (cell still reads 07/01/08)
-would like the cell to read 20080701
My main goal is to bring this into Access and use this dataset with another data set, which uses the YYYYMMDD format.
I have attached excel, where date is mention in B Column but when I am formatting it, it is not showing in proper date format. I want format in eg 18-Mar-2013.
I have a simple sheet that will require some names in a column. Whenever I try to add a name I get an error message saying " it must be a date greater than or equal to 1/2/1904". Obviously I have formatted this column incorrectly, I have tried to highlight the column, right click Format Cells, text but no luck.View 7 Replies View Related
Column B has list of Balance Sheet items for business and Column D has associated values. I need to perform the following:
Look for following text and if it finds it then change the font size to 16, bold it,center align and make the associated cell in column D as mentioned below.
ASSETS ....change the cell color in column D to white (Invisible).
Cash and Bank Accounts
TOTAL Cash and Bank Accounts
Other Assets ....change the cell color in column D to white (Invisible).
TOTAL Other Assets
how can I convert or get a numeric value in a time format?
Senario: Let's say I have 418 as number. This is what I have 418 minutes. I should get 2:58 (2 hr 58 mins).
I have delay accounting software that can dump to Excel, but it puts the duration in the format "xdxhxm". It will display only as many digits as required, ie if it's 5minutes it will show "0d0h5m". If it's an hour and 45 minutes, it will show "0d1h45m" etc. I'm looking for a formula that will convert these to minutes so I can sum the events.
I found a similar formula, but it only worked if there was a space between number and letter and I don't understand the formulas well enough to fix that.
Currently we do a lot of report crunching using Crystal Reports. We will then dump the data into an Excel sheet to run varying pivot tables or databases off of.
Often we will have a field that the formatting will not match up to anything in Excel. You can change the cell to Text, General etc. The main problem associated with this is running VLOOKUPs. The item we type in will not match up to the data imported from Crystal. We have to F2, the new data before it will match up which is a pain considering there can be anywhere from 30-1000 rows.
I'm trying to solve this problem in 2 ways. First can anyone tell me an easier way to do handle this?
Second, after trying many other things I thought about a macro that would automate the F2 process.
I have a column in my sheet which I need to be displayed with dashes.
Excample: 123456 -> 12-235-6 (just an example)
But once in a while in the code is a letter like: 123A56 which obviously I need to be displayed like 12-3A5-6
But whatever I do, nothing seems to work.
Another cell with Left()-Mid()-Right() is no option for me....
I'm sure there must be a way to dimension a string and format it for use in a MsgBox, but I have no clue how to do the initial formatting; any help would be GREATLY appreciated.
FYI - something along the lines of...
Dim S as String
S = "This part of the string is bold and italicized, and this part is not"
MsgBox S, vbInformation, "My Title"
I'm using the code below to copy data from 1 sheet & paste it onto another sheet. The code is working fine. I want to ensure that the data is pasted(in the new sheet) as Text & not General. How do I write the code for this & where do I insert this code?
Dim wsData As Worksheet
Dim wsNew As Worksheet
Dim rng As Range
Dim I As Long
Set wsData = Worksheets("Sheet1")
Set wsNew = Worksheets.Add
Set rng = wsData.Range("A1")
While rng.Value <> ""
I = I + 1
wsNew.Range("A" & I).PasteSpecial xlPasteValues, Transpose:=True
Set rng = rng.Offset(25)
I am also new to vba (am teaching myself with the help of the guru's on this site!). My problem is to do with dates. I have created a variable in VBA that reads a cell with the value of a date in text format, for example SEP2006. I want to use this value to paste into another excel cell. When I do it actually creates it as a numeric date when I really want to just use it as text, "SEP2006". I have been looking at this for a while and I'm not sure if it's a case of "can't see the wood for the trees". A small example of my code is:
Dim dateValue As String
Range("a3", [b65536].End(xlUp).offset(0,1))= datevalue
I have used Options>View - Zero Values.", "style="background: #FFFFFF;padding: 2px;font-size: 10px;width: 550px;"");' onmouseout='GAL_hidepopup ();'>formatting.htm" target="_blank">conditional format to change color of fonts based on values. I want to add a "find" condition that will change color of font when "part" of cell has value. for example:
I would like to add a menu option that will run a subroutine to automatically add a formated text box to the worksheet at the selected cell location. The box must have the text centered, bold, underlined in Arial 10, and no border. I use this method to create a flow chart and would like to make it easier. At the moment I create three different text boxes and then copy them to the clipboard. Then I just click each one, drag it into position and edit the text. I tried recording a macro while adding the text box to the worksheet, but it didn't record anything except the cell selection.View 2 Replies View Related
I am trying to create a follow-up spreadsheet with an actions column. But my boss wants the column to have text numbered in rows in the cell. So e.g Actions for an item might be:
3-make coffee (upto 5 max)
this list will need to be typed in, and I have tried to make excel launch a box in which the user types in the text. But that didnt work. I know how to wrap the cell but I cant get each action on a new line easily?
How can I underline the formula in a text like so:
My name is Powder
from this formula
="My name is "&D29
how I can get black cells if for example A3 contain the string PM.
IF A3 contain exactly the string PM I want that cell A7 to A11 get black automaticly.
Basically, I have a Rule that says:
I want the same format if Column A says either "Mitigated" or "Accepted".
I can't create a new rule as I have to save the file in 2003 for other users and I've got another 2 rules for varoius other things.
I've tried crudely putting "Mitigated"OR"Accepted" and it dosen't work.
Right now I have this working to color a row green if Column A contains the word "Open", I just need to add to this to say Column a="Open' and Column H="Red"
How do I do this? This is what I current have
=$A6="Open" (I need to add that if $H6="Red" as well)
How do I fix the syntax formula that will achieve this.
I am automating an invoice template for an excel novice, thus I want to conditionally format certain cells dependant on what text is in them.
I want to do this in VB but I don't know how!
I would like to calculate the mode of a range of cells containing text. To do this I would use a formula like:
How do I find the mode of a range of cells containing text with an additional criteria, like finding the mode of A only for values with a "yes" in B as in:
In this case, the answer I'm looking for would be (yellow).