Create Conditional Format for Row 1 and Want to Copy Down? - copy

We have a spreadsheet of our locker combinations for our padlocks we issue to students (sample picture below)
In row 2, I set a CONDITIONAL FORMAT for CUSTOM FORMULA for cell C2 as =B2=1 to turn that cell Yellow. I can repeat for cells D2, E2, F2 and G2 so that if the head custodian puts in to use combo 1, 2, 3, 4, or 5 that then the correct cell will highlight.
My problem is, how do I COPY that Conditional formatting down to the next rows so that the formula in the "custom formula" changes to work for B3 and B4 and B5 and so on?
I understand I can highlight and copy my first row and then PASTE SPECIAL > CONDITIONAL FORMATTING but the formula stays locked on for the first row of information rather than changing to the current row. Maybe I need to use a different formula?

The Paste Special > CONDITIONAL FORMATTING does make the formula copied from one row work in other rows. Was thrown off by the formula not changing and still showing the original row but it works.

Related

How to design a column in crystal report that spans several rows?

I'm having a problem with designing a column in crystal report.
What i want to do:
There are three columns a,b,c. I can design column a and b but unable to design c. How to do it?
You cannot center the value vertically, but it is possible to not draw horizontal lines in column c by using the checkbox named something like "underlay following sections". In German it's "Folgende Bereiche unterlegen", I don't know the exact wording in English.
For example if your c column contains a group key and a/b columns contain details, you put your c column into the group header checking the underlay option. The columns a and b are defined in details section.
The line in the end of your table would be painted in group footer. The horizontal line in a and b column is painted in details section, but only in columns a and b of course.

Adding Two Subtotals in SSRS to Another Cell

I've got a report that I want to sum some of the columns and then do some basic subtraction on the summations on a row underneath. In my screenshot, I've got the columns summing correctly, and the row is hidden which is what I'm looking for.
But I'm not sure how or if I can then take the Sum(Prod_Coll) minus Sum(Proc_Perf) and make that value display in the bottom right cell (Drop Total Here).
Is this possible to do within SSRS?
right click on the empty cell, click create placeholder, click the Fx button next to value and enter:
=sum(prod_coll)-Sum(Proc_Perf)
That should do it unless I'm missing something.

Why is cell increment not detected correctly in LibreOffice Calc

I have a column which I'd like to fill by selecting the top two cells and then drag down the column.
The cell contents are:
=Sheet1.B11
=Sheet1.B31
So when I drag down I expect to see
=Sheet1.B51
=Sheet1.B71
Instead, I get
=Sheet1.B13
=Sheet1.B33
Why is Calc not detecting the increment correctly? Adding more cells manually does not help.
The numbers in cell references are not single numbers which can be used to create a series in this way. In other words: The cell reference B11 is not "B"&11, but even one single cell reference.
To get references from Sheet1.B11 upwards in steps of 20, you could use INDEX like this:
=INDEX($Sheet1.$B$1:$B$100000,11+(ROW(A1)-1)*20)
Put this formula into a cell and fill it down.

change column letter in formula with drag down

This is the formula
=SUM(Sheet2!A2:A10)
What i've been trying to do is as I drag down the column to have the formula change to =SUM(Sheet2!B2:B10) and so on.
Basically is what happens we drag to the right we get an increment on the column letter, but I want it when I drag down
For a limited number of rows, the formula below in Row2 and copied down should work:
=SUM(INDIRECT("Sheet2!"&CHAR(64+ROW())&"2:"&CHAR(64+ROW())&10))
Beyond 26 rows I would suggest switching to using a helper column instead of creating teh character value from the row number.

Create a Crystal Report cross-tab 'header' label

I'd like to create a 'header' label that 1) is centered over the cross-tab and 2) grows with it. Unfortunately, CR 2008 (or earlier for that matter) doesn't have this feature.
In image (below), I've added a text field above the cross-tab, but I can't think of a way to get it to grow/shrink (horizontally) with it.
If you're able to calculate, say by a summary function, the number of columns you will have then you can do this:
In your crosstab, check to see the width of your columns. The columns should be set widths. Edit: The crosstab adds some padding, so you will have to figure out the column width by measuring in Crystal with another field and eyeballing until it's close enough to work
Right-click on your label, and hit "Size & Position".
Add a new formula for the "Width". The X,Y positions should stay the same.
Use the summary function (You could create a SQL Expression or formula that only shows the month/year of your date fields and then distinctCount() them) to find out how many columns you will have multiplied by the width of each column. This will take some trial and error for sure, but I don't see why it wouldn't work.