I am working in Excel 2011 for Mac. I have a cell in my spreadsheet with wrapped text, and whenever I add to the text of that cell, the row height automatically readjusts based on the number of rows in the text of the cell. However, when I reference that cell in another cell, the height of my second cell doesn't readjust as I change the text in the original cell. I know that I can manually do this by selecting the cell and AutoFitting it, but I'd like the row height to adjust automatically. Is there a way I can do this? I've attached a photo below to illustrate my problem. As you can see, the A1 is my original cell, which has wrapped text and automatically adjust the row height. I then referenced cell A1 in cell A4 and then wrapped text in cell A4, which, as I had hoped for, AutoFit the wrapped text from A1 into A4. However, when I added text to A1, the height of A4 didn't change, as you can see as the bottom 3 lines are cut off.
Thanks for the help!
AFAIK, you'll always need manual intervention (or VBA) to autofit the row when the content is created with a formula. It's the same in Excel for Windows, so I'm not surprised to see that behaviour in Excel for Mac.
Related
Is there a way in MS Excel 2007 where I can hide a row in excel that contains a specific value? For example if cell B1 contains number 6, the entire 1st row will be hidden.
NOT with formula.
Formulae don't do that sort of thing. With formulae about the closest to your desired result might be to apply conditional formatting to 'hide' the contents of the entire 1st row - by blending their font colour into that of the text background, or 'redact' - if say black font then applying black fill.
Try VBA.
Imagine a sheet where column A is names and the other columns contain relevant information for those names. I want to conditionally format the cells in column A so that if there is a blank cell in that row that should be filled, the name cell will display the conditional formatting; think of it like a "there's missing info for this person" indicator.
Before this gets brought up: while it's trivial to set up conditional formatting to color empty cells, coloring the blank cell itself has proven to be not sufficiently noticeable due to the width of the spreadsheet.
It's exactly as #mehdi said. You need to use COUNTBLANK(range).
For conditional format, use the option "Format Cells where this formula is true". My formula in cell A2 is like this:
=IF(COUNTBLANK(2:2)>0;TRUE;FALSE)
After typing it, just change the range where this rule applies and select your range data.
I did it like you can see in the image below (please, note I got spanish version of Excel). In my case, if ANY cell in the row is blank, then it colours with yellow the cell.
I have a textbox that I need to keep updated with the contents of a cell. At the moment I update it manually.
I know you can use a textbox to display a cells contents by referring to the cell in the formula bar of the textbox, but I would like to know if its possible to display a cells contents in part of the text?
For example...
If I have a cell that contains the number 1.23 and a text box that contains the text "The cell shows 1.23" how can I get the number in the textbox to show the contents of the cell instead of the "1.23" as flat text.
...like the equivalent of Concatenate("The cell shows ",A1) but in a textbox?
Is there a way to do this without using VBA?
UPDATE -I decided to go the other way and put the 'Concatenate' formula in a cell on a hidden sheet. The box then points at the cell on the hidden sheet.
I would like to know if there is an answer to my original question though.
I have an issue with Excel where when I paste some formatted cells in, some subsequent rows inherit the style from above. This is unwanted behaviour and I can't seem to stop Excel from doing this. Does anyone know how to stop this behaviour?
To explain further, in the image below you can see cells A1-A5 have a formatting of a grey background and bold text. If I copy cells A1-A5 and paste them into a new workbook, if I type into cells A6, A7 or A8 then the style (grey background and bold) is automatically applied. If I type into cell A9 then this style is not applied.
What is going on?
This only happens when I paste into a new workbook. It doesn't happen if I was to apply the style to cells in an open workbook.
Steps to reproduce
Create a new spreadsheet
In cells A1 to A5, put the letters 1 to 5
Format cells A1 to A5 and make the background light grey and the font bold.
Select Cells A1 to A5 and copy them.
Create a new workbook
In the new workbook, go to cell A1 and press CTRL-V to paste.
Move to cell A9 and type anything. It will be in normal style
Move to cell A8 and type anything. It will have the same style as the cells A1-A5
Why is Excel doing this and how can I make it stop doing it?
I am using Excel version 14.0.7153.5000 (32-bit) on Windows 10.
Copy cells without any styles applied, then continue. Anytime you copy/paste it, it will assume you want to keep the style applied.
I have a specific width column which has a long text which is partly hidden due to values in the adjacent columns. I was hoping that the user might be able to read the entire text from the formula bar once clicked on the cell. But since I am referencing the text from a PivotTable the formula bar shows the cell reference and not the text. The text is dynamic and hence the referencing is important for me.
Is there a way I could display the text in formula bar instead of the cell reference?
I did the cell referencing in the background VBA instead of the excel. so the VBA populated the cells and once the cell is selected the entire text shows up in the formula bar