This is a excel question:
I have a excel sheet which is heavily formatted, that is, the column widths have been changed and the cells have color formatting. I have filtered this sheet on certain fields. Now, I want to copy this filtered data to another excel sheet with all the formatting.
So for the only way possible seems like to copy the formatting first using paint formatter one by one for each column but that is very tedious. Is there a simple way to do this?
Copy what you want, then paste special three times into your target range: values, columns widths, formats.
Edit: Changed order, putting widths before formats. Otherwise wrapped cells will incorrectly change row height.
To copy the cell values and the formatting use the Camera Tool. This is available on the Command Tab of the customise menu. This Camera Tool copies the cells as a graphic and is dynamic.
Related
I have two sheets:
They both have the same values. However, sheet1 has different number formats. Is there a way to apply all these to all columns in sheet2 apart from manually going one by one and changing the number format. This becomes unbearable once the number of columns grows.
1- Select the cell with the formatting you want to copy.
2- Select Home > Format Painter.
3- Drag to select the cell or range you want to apply the formatting to.
4- Release the mouse button and the formatting should now be applied.
I got a requirement wherein a single cell without merging with other cells I want a table format with borders. I had the data as follows in the cell
I don't want to merge any other cells, but just wanted to add the table with formatted borders with the mentioned data. The data should like below.
It would be really appreciated if someone can help me in achieving this. I am looking out for a solution where in I would like to have it in text format only not in the image
The easiest way to include an entire formatted table in a single cell is to copy the table and pasteAsPicture. Then by adjusting column widths and row heights, put the picture in a single cell. Before:
and after:
No merged cells are used. The picture of the table is in cell D8.
It would slightly increase the width and double the height of the cell, but Unicode includes the following characters for creating a text table:
┌┬┐─
├┼┤│
└┴┘
╔╦╗═
╠╬╣║
╚╩╝
I have an Excel spreadsheet which spans columns A to T and for ease of reading, the cells have borders. Currently when another row of data is added to the spreadsheet though, I, or other users, have to add borders around the cells, just for cells in columns A to T where is something (usually, but not always, a date) in Column B on that row. The spreadsheet is a log of survey results, and gets very long by the end of the year, but doesn't have a defined number of rows, because it's being added to all the time. It's not much of a problem for me to add borders, but other users not familiar with Excel either manage to add borders to all the cells in columns A to T making the end of the list look untidy with cells with borders but no contents or they just don't bother adding borders and it gets very messy for managers to read (apparently!).
I'm trying to use conditional formatting with a formula to format the cells, but can't seem to get the formula right. I'm basically trying to get Excel to add a border around cells in columns A to T on any row where the cell in column B on that row isn't empty. I've tried various formulas with no luck so far and just end up with borders everywhere but where I want them!
Some of what I've tried so far (I can't remember all the ones that didn't work!):
(row 4 is the first row of data)
=$B2<>"" (applied to =$A:$T) (adds borders above the table, but not below)
NOT(ISBLANK($B4)) (applied to =$A:$T) (doesn't add any additional borders)
=B4<>"" (applied to =$A:$T) (doesn't add any additional borders)
=not(exact(B4, "")) (applied to =$A:$T) (doesn't add any additional borders)
...and of course using Excel's inbuilt "cell doesn't contain a blank value" doesn't allow you to specify that you want to know if another cell isn't blank. It'll add borders around cells after you've input into them, but if a cell in another column is blank for any reason, it leaves 'holes' in the table where there aren't any borders which makes it look even more messy.
Am I just fundamentally misunderstanding the formulas, or can this not be done? (or do I need VBA to do this?)
Your formula needs to refer to the first row of the Applied To area:
=$B1<>""
And apply it to =$A:$T
I am trying to drag the bottom right corner downwards to copy some data and it always increments my numbers that I want to copy. If I select copy cells in the auto fill options then it copies the numbers properly but also copies the formatting, but if I select fill without formatting it increments the numbers. I want both. My first cell has a strong border above it that I don't want every cell to have. However my data is in semi small increments of the same problem so copying the first cell once then dragging would be way to inefficient. Thanks for the help.
Original data example
Using copy cells, right numbers wrong formatting
Use the following formula in the any one of the columns you are not using and drag it down to the end of data. Then copy the result to your column E as values. If your helper column is N then:
=IF(E3<>"",E3,N2)
What I usually do in these situations is separate the values from the formatting.
make a copy of the column you want to edit (either adjacent to it,
or outside the table you're editing).
On the new column - use copy cells in the autofill menu, or
otherwise complete the values according to your needs.
paste the new column back on the original column As values.
Delete the new column
Want to copy all values of coloured cells in different sheets. Attaching the image for reference where I want to extract all values which have coloured cells Excel sheetsample
If you need this operation to be performed only once, you do not need to use vba. It would be easier to put filter on the top row (ctrl+shift+L), click the dropdown on the column and use filter by colour. Then you can easily mark all and copy/paste.