I using the CONCATENATE function to merge multiple columns with some text and carriage returns. The result is being pasted as values in the next column. The result will look like this:
Section 1-1
Y = -77.687
X = (-3.454,13.500)
I want the first line of the result to be bold. I dont want to use code as I'm not comfortable with it.
Can anyone please help find a way in which I can use a formula/ conditional formatting/ replace or other non-code options to make the text string bold AFTER PASTING IT AS VALUES.
PS: The operation needs to be carried out in approx 1000 cells and every time the first line will be "Section ..." ( the "1-1" part may/may not change)
Thanks in advance!
You could use Conditional Formatting to solve this. Simply set new rules for the column to format only cells beginning with "Section". You can see how I did it here. Then format the font that it becomes bold.
If it's not concatenated, write the cell as normal with no formatting. Then F2 to reenter the cell, highlight the word you want to bold (or otherwise format; underline, color, etc.) apply ^B (Click Bold in ribbon) or whatever other formatting you need.
Related
I have two columns to compare. All cell values come from the ROUNDUP function. =ROUNDUP(C6/D12,0) etc.
I want the larger, or equal, of the two in each row to be green and the smaller red. Using the formula, it does not work as expected. If I do the same with numbers typed, not the formula, it works. It appears the formatting applies to the formula and not the value.
That is the first half of the problem. I also want to autofill/paint the conditional formatting to numerous cells, but it always compares to the top left cell, rather than the two cells on the same row.
If I use the color scales formatting it works, but I do not want the scales, just red/green.
It seems hard to believe that what I want to do is not possible. Can someone please help me with this. Thanks in advance.
In conditional formatting, under 'use a formula to determine which cells to format', you need to enter
=A2=MAX($A2,$B2)
to highlight the larger cell and (as a separate rule)
=A2=MIN($A2,$B2)
to highlight the smaller cell.
Note that in the case where both cells have the same value, they will both be either coloured red or green depending on the precedence of the rules. If the 'green' rule comes first,
it will look like this:
Conditional formatting is almost its own little science within Excel. It may be more useful to find youtube tutorials on the topic than depend on a text explanation here. But the central theme is this.
You will use location locking (the dollar sign or F4) in front of the letters so that any cell to which the format is applied knows you specifically mean columns E and F, for instance.
Example: Assume your first row goes from A5 to M5, and the condition values are in E5 and F5.
I find it easiest to format one row with the rules I want, test them, and then use the format painter or copy -> paste format along with careful use of $ locking.
Drag over and select the entire row of cells A5:M5
Conditional Formatting -> New Rule -> Use a formula to determine which cells to format
In the formula field enter =$E5>$F5. Excel gets weird and often inserts double quotes. If you save the rule and go back in, it may say ="$E5>$F5" and if so delete the double quotes.
Click Format and create the cell format you want.
With A5:M5 still selected, add another rule and format for ="$E5<$F5"
The $ sign works the same way as it does in a formula. All of the columns get their format based on columns E and F, but all of the rows base their formula on the E and F values in that same row.
I'm working with numerous documents that have conditional formatting which turn a cell black if a certain value in the row is contains a specific text. The specific text varies a very often and will differ per document. When I try to write something in the black cell, it will automatically decline anything, but when I copy paste something on there it still enters the value. Because I have to copy big sets of data into these documents, I sometimes end up with values in these black cells, which can cause problems later on.
What I was wondering is if there is a way to delete any text in the cells that have the specific formatting (aka they are black) with help of the Find and Replace function or something similar.
Because I have to do it in seperate documents that I get from other people, I don't think using a formula or vba would be too practical, as I would need to manually copy it each time. But feel free to prove me wrong.
EDIT:
Hopefully this will illustrate more what my problem is.
The Background of these cells are still considered to be 'No Fill'
The conditional formatting is what causes the color
Let's assume the formatting you are trying to empty content from is yellow background cells
See image below:
Press Ctrl+H for Replace Option
Press Format Button to select the required format (yellow background)
Press Replace All
Final Result:
I have a long list of dates but I need them to have quotation marks on the outside. How can I do this quickly without manually doing it.
I tried a couple of things that I saw online such as formatting the cells as """#""" but this just giving me a #.
What I have and what I would like.
to...
Any help would be appreciated
Try:
=TEXT(A1,"\""dd/mm/yyyy\""")
Display both text and numbers To display both text and numbers in a cell, enclose the text characters in double quotation marks (" ") or precede a single character with a backslash ("\").
Source: Creating custom number formats.
So your format should be: \"dd/mm/yyyy\"
Often quotes are added to each cell in a CSV file for efficient uploading to website. so reformatting the cells will not work as CSV won’t recognize this.
This is the only way I’ve found to work:
Open a new sheet (we’ll call this “Sheet2”).
Insert this function into the first cell: =(“”””&Sheet2!A1)&””””
(This is assuming that you want quotes around cell A1 from your original spreadsheet).
Hit ENTER and you should see your text with quotes around it in the first cell of Sheet2. Now you can apply this same function wherever you please. If you want to do a whole row or column, simply drag the little green corner in the first cell in Sheet2 in whatever direction you want auto filled.
Now THIS IS IMPORTANT. You must select and copy these quoted cells and “Paste special..” > “Values”. This converts the functions to actual text that you can save into a CSV and use later.
I hope this helps whoever may visit this page in search of answers.
Cheers!
I have formatted the columns as follows:
_($* #,##0.00_);_($* (#,##0.00);_($* "-"??);(#_).
If I copy paste the value then it doesn't work.
But if I type 1234, then it automatically converts to $ 1,234.
But how can I make it work even I do pasting.
I googled it and found that conditional formatting is used in these scenario.(Am I right?)
I tried doing conditional formatting also but could not secceed.
Can somebody tell me how to achieve this in conditional formatting:
How to convert text so that final value will be like $ 1,234 ?
If the column is empty or white space , replace it with - in the center.
Any type of help is appreciated.
Thanks.
When you paste something into a cell in Excel, by default, the format is also pasted. To prevent this, you must do a Paste Special, then choose to only paste the Value.
For the conditional formatting of the currency, you can set up a rule that looks like this:
Getting a '-' to appear in a blank cell is not possible in Excel formatting rules. A dash can be inserted as formatting, but only as long as there is actual data in the cell. If the cell is blank, Excel will not display any characters.
If what appear to be numbers are imported as text there is likely to be a warning of this in Excel (a small green triangle in the top left of the cells - for all recent Excel versions can be turn on/off in Options, Formulas, Error Checking). By selecting a range that includes the first instance, these strings can be converted to General format (so that values are recognised as numbers) by clicking the warning icon and Convert to Number.
Then 'standard formatting' can be applied, perhaps:
` $* #,##0 ;($* #,##0)`
and empty cells selected with HOME > Editing - Find & Select, Go To Special..., Blanks then formatted Alignment Center and contents entered with Find (nothing) and filled with hyphens with Replace with -.
I have a cell which is formatted as Text field with wrap text on. The values are shown as "#" when I move away from the cell, how do I prevent it?
Try to expand the column size (width). If this doesn't help try to format the cell as General instead of Text.
When this happens to me I just have to expand the column size so that the content fits perfectly within the cell.
More about it here:
Excel - #### sign in cell formatted "Wrap Text"