I'm trying to make a table in Excel 2016, but I had a problem which is assigning specific heights to specific cells. (Please, refer to the image below)
Merge A1:A2, B1:B2, C1:C2, etc.
Apply this formatting to the left-side columns by selecting the merged cells and dragging down on the little green square on the bottom right corner of the selection box.
Merge D2:D3, E2:E3, F2:F3, etc.
Repeat for the right-side columns
(It might be helpful to memorise the key combination Alt+H, M, M to merge selected cells.)
You'll get the results you want, but beware the sheet is a bit weird now. Each row is two rows away from its neighbour, for example. Selecting and formatting are likely to not work the way you'd expect. Good luck!
Related
I'm trying to filter an excel which contains merged cells. My data is laid out similar to the example below.
I found a similar answered question here. The answer to this question works well for my spreadsheet initially, however the spreadsheet I'm applying this to is a live document. If a new row is added later, this new row isn't recognised by the filter. The images below hopefully explain what I mean.
Filtering category 2:
Adding extra row:
Filtering after extra row is added - new row doesn't appear:
I believe this happens because when a new row is inserted, the category cell (in my example cell A6) is blank, rather than containing a value. When I unmerge the cells in column A I get this (A6 is blank):
I also tried copying an existing row and inserting it, hoping this would fill in the blank cell, but it had the same result.
Is there any more robust way of achieving a filter on the merged cells, which will accept new rows being added? I know a simple alternative would be to leave column A unmerged, however with the size of the spreadsheet this would look very messy. This spreadsheet is used by quite a few people and mostly edited using Excel online (on MS Teams) so macros aren't a desirable solution either. Any help would be greatly appreciated.
Try the following:
Select your unmerged range, click Home > Find & Select > Go To Special. In the Go To Special dialog box, select Blanks and click OK.
All blanks from your range are now selected and if you press Arrow Up one time followed by ctrl + enter
All the blank cels will now contain the value from the cell above.
I believe that solves your problem without VBA.
I've got a bit of an oddball question, and I looked pretty hard to find an answer to no success so apologies in advance if this has already been answered.
Anyways, I have an excel spreadsheet that has every column manually set to a specific color. Now I want to alternate the hues between rows while maintaining the manually-set color. So for example, let's say column A is red and column B is blue. I would want A1 to be dark-red, B1 to be dark-blue. A2 would be light-red, B2 would be light-blue. And so on and so forth alternating until the end of the sheet.
I've thought about sampling the previous cells color and setting the next cells color based on that, but I don't know of any functions that would get me there.
I've looked at macros, and while I can sample a cell's color I cannot figure out how to set it.
I'm currently building the sheet in excel and would like to import it to google sheets when I am complete, so having the spreadsheet formulas or macros be compatible would be great. That being said, I can keep it in excel if I have to so that isn't a must.
Any help would be much appreciated!
you need to set up 4 conditional formatting rules with:
=ISODD(ROW())
=ISEVEN(ROW())
Also, I would suggest you to check this addon with which you can control colors easily just by hex code (#ffda56) https://chrome.google.com/webstore/detail/team-color
TeamColor is a Google Spreadsheet add-on for color management. Type a color code in Hex into a cell. Its background color will change to that color code. This is very useful for sharing color palette with teammates in developing apps, websites and anything else colorful.
You can do it with conditional formatting by selecting the column and then use a custom formula conditional format and enter =isodd(row()) then select your dark hue. Add another conditonal format and enter =iseven(row()) and select your lighter colour.
This method breaksdown when using a filter but you can create a column to count visible rows and then base your conditional formatting formula on that column. Bit more complicated but useful if you need to filter.
Another Sheets option is to apply Alternating colours... (under Format) but this would mean setting the two (or three if including a header of a different hue) colours separately for each column.
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
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.
I have a report which I used the command subtotals. Aesthetically, I just want to make these subtotal rows (columns A to P) filled with color, be in Bold and have a surrounding border. There are hundreds of totals generated in my report. And they do not have a recurring row position. So basically in order for it to look good, I do it manually per row. Is there a faster way? Thanks!
Use either Range.Interior, or Range.FormatConditions.
If you plan on continuing to do it manually, you should set up one cell or row exactly how you want it. Bold, color and border and then double click on the paint brush icon on your standard toolbar; then just highlight your next row or cell and the formatting will appear. Once you are finished formatting, click back on the paint brush to stop the formatting. This a great time saver and makes all totals aesthetically identical.