Can you color a cell based on another cell's contents in MS Word? - ms-word

I have a project I'm working on with reports in MS Word that have similarly structured tables, but some of the cells are different colors depending on the report. To fill them in, I'm using a merge. I know I can format a cell or text based on the cell contents, but what about adjacent cells? I would like for cells to be shaded a light blue if the cells next to them have a specific text. Obviously this is easy in Excel, but is it possible in Word?

Related

Tableau - Conditional format TEXT and CELL at the same time

I understand how to to color either the cell background or just the text, but I have not come across an example with both conditionally colored as Excel can do.
My requirement is to color the cell based on a value range and then make the text red/black/white based on a different metric. Ideally, if I could just override the 'smart black/white' text with red once and a while that would be nice.
Any examples of conditionally formatting both text and cell background at the same time out there?
A typical solution is to create different calculated fields that conditionally contain text or null depending on the circumstances. They should be mutually exclusive, in that if one has a value, the others are null. Put all three fields on your text/label shelf, and format each one as desired - say with a different color. Null text does not display. So you would have red, black and white fields in your label all the time, but only one would have content and display.
Its a little annoying, and I wish there were easier ways to dynamically control formatting, but it works well and is pretty easy when there are just 2 or 3 variants.

Label segmented cells with different colors

I am working with Matlab to extract cells from pathology images.
My codes successfully done the job and I can outline the cells by using 'bwperim'.
To outline the cell, my codes are:
perim=bwperim(selected_img);
r=img(:,:,1);
g=img(:,:,2);
b=img(:,:,3);
r(perim)=255;
g(perim)=0;
b(perim)=0;
img(:,:,1)=r;
img(:,:,2)=g;
img(:,:,3)=b;
And labeled the cells are:
But now I want to make the whole cell labeled with red, rather than just outline, what should I do?
It seems like you are looking for imfill:
mask = imfill(permi, 'holes');

Word Styles to get two elements to share same background/border

Within MS Word 2013 I am trying to create a text element plus a list underneath it, all wrapped inside a coloured border with background shading (see image). The attached image shows the text in plain form.
I would like to place a blue border around both the title and the list. I can achieve this by placing both objects within a 1x1 table and applying colouring rules to the cell, but semantically this seems bad (I'm from an HTML development background where it is very wrong!)
When I edit a Style rule to create the border/background, it works well until I create the list, then it goes badly wrong. Is it possible to achieve the output of the table cell approach by only using a style rule and no table?
After a day of experimentation, the closest I can get is by doing the following:
Create a style rule called Tips Heading based on Normal, then set it to be Bold with a blue background.
Create another style rule called Tips List based on List Paragraph, and set it to have a blue background.
Unfortunately the List cannot be indented because the background colour also indents. The border is also affected in this manner, so I ignored the border and indentation. It works really well and is semantically well structured.

How to apply color dynamically in a header text box on Tablix SSRS

I did a ssrs report using Tablix Matrix control. I am designing that matrix with one column and many rows. That once column will repeat based on the group that i had from SP at run time. It works fine. But now I want to change the background color dynamically for the header text box of the tablix. Is it possible?
I need to do dynamically. Since I dont know how many column will get at run time. It depends upon the data from Stored Procedure.
Can any one help me out this?
You can set the background color for the textbox to an expression, just like any other text box. For example, something like this:
=Iif(Fields!MyHeader.Value = "AlertColumn", "#FF0000", "#FFFFFF")
This is a bit old post. But I can say that yes we can achive alternate row/Column background color on Matrix control.
Please take a look into Matrix row/column background color thred.

How do you display a spreadsheet-like table in an iPhone view?

I need to display a spreadsheet in a view. There's no need to edit the cells of the spreadsheet, and the spreadsheet will consistently have the same number of rows and columns. (The spreadsheet cells will be populated with financial figures generated by the user in a different view)
How would I do this? A UITableView seems inadequate, as there need to be around 70-80 cells displayed in this table.
One way to do it is to write your own table cell to contain all the columns in a particular row. Then you can load the cell for each row in UITableView
If the cells don't need to be editable, they don't contain images, and the number of cells isn't large, you could just use labels or drawn text inside a grid of framed rectangles in a UIView, and display that larger view inside a UIScrollView.