Right to Left Match Count Non-Blank Cells - count

How do I modify this formula:
=MATCH(1,--(AA1:AH1=""),0)-1
to count from right to left? I want to count the number of non-blank cells until a blank cell, but I need to do it starting from right to left.

The array formula (confirmed with ctrl+shift+enter)
=MAX(IF(LEN(AA1:AH1)<>0,COLUMN(AA1:AH1)))
should give you the index of the column containing the last non-blank cell, even in a row with multiple intercalated blank cells.
The array formula (confirmed with ctrl+shift+enter)
=MAX(IF(LEN(AA1:AH1)=0,COLUMN(AA1:AH1)))
should give you the index of the column containing the last blank cell, even in a row with multiple intercalated blank cells.
You could then use this values to calculate your desired results.
i.e.:
To put it all together:
=MAX(IF(LEN(AA1:AH1)<>0,COLUMN(AA1:AH1))) - MAX(IF(LEN(AA1:AH1)=0,COLUMN(AA1:AH1)))
should give you your desired result.

I don't know how to do it with match() function, but you can do it otherwise with following with Ctrl+Shift+Enter:
=8-MAX(IF(AA1:AG1="",COLUMN(AA1:AG1)-26))
Thank You,

Related

Finding a pair from a 2D vector i

Finding a pair from a 2D vector if it's second element is not present in the first element of another pair
Finding a pair from a 2D vector if it's second element is not present in the first element of another pair
Please add more clarity to problem.
As I got:
create a map for first elements indicating if first element is present or not by iterating once.
In second iteration look for second element and search if it is there in map as or not.
If not present then return it, else move to next one.

Starting grid column from half of the column

I am trying to start grid column from half of the very first column.
I tried grid-start-column with different values but it's not working. Basically, it should be like following:
grid-column: 0.5/7
I know this is not the valid code, but just for explanation I write that.
Is it possible to start a column from the half of the column?
Is it possible to start a column from the half of the column?
No. It is not.
Let's say you have a grid container with five columns and want to start spanning from halfway inside the first column (grid-column: 1.5 / 5 ). This won't work because you're not starting at a column line. More technically, the grid-row-* and grid-column-* properties accept only integers as values.
However, there is a simple workaround:
Instead of five columns use 10 columns.
Then start spanning at the third column (grid-column: 3 / 10).
This creates an equivalent layout, which looks the same visually, but with more precise control of the columns.
More details here: Changing div heights using CSS grid

CSS table text-align not working on some values in column

I have two columns, one of values for a variable and another of rankings of those values. The rankings column works fine; it is aligned left and 70% of the size of the values column. However, in the values column, all values in the column align right (as I want them to) except for the last value. The issue seems to be related to the number of characters in the value.
Here are the two columns
Any ideas?
It seems the last value is still aligning-right, but as you mentioned with the increased values in the left column it is pushing them together. If you are able, increasing the overall size of the column to account for increased values. (e.g. increase column padding and/or width).

How to create descending left hand row numbers in a table (tr) with CSS

I use the method shown hear;
https://kryogenix.org/code/browser/sorttable/#lefthandheader
to add numbers to the left hand side of my table. And it works great by putting 1 at the top on the first row, 2 on the second and so on. However my table is time sensitive, and descending in order so the top row is actually the most current thing that occurred. I would like the left column to reflect that by having the highest number on top and descending to the bottom where the first event occurred.
Is there a simple way to modify the CSS to do this?
My table in question is built using PHP/MYSql. It turns out that the quoted solution to number the left hand column has at least on option, you can add an option to the CSS like this.
table.sortable tbody {
counter-reset: sortabletablescope 48;
}
Then reference it as demonstrated here: https://jsbin.com/yanihid/edit
The result is exactly as I needed it. Counting the rows starting at the highest number. All you have to do is know the count, an easy deal with PHP/MYSQL.

Bootstrap 3.1 - How to have list item text line up on the left, AND centered in column

Not sure how to describe this exactly but here goes:
I have a 3 column design, and there is a list of items in each of the columns.
I need to have:
1) Each column's list items must aligned so that the left side of each word lines up
2) Each list itself must be centered within its column. (This of course means that list items on their own won't necessarily be dead center inside their respective column)
I would prefer a CSS solution without javascript/jQuery.
I have an example of bootstrap code that I am working on here to help explain what doesn't work for me:
http://bootply.com/112003
The first row is what happens when the text is centered within each column. Condition 2 passes, condition 1 fails.
The second row is what happens when I divide up each of the three colums into 3 subcolumns. Condition 1 passes, but condition 2 fails. This is subtle. While each list item is in the center subcolumn, overall the list isn't in the dead center of that column. (Imagine the list is one item if that helps think about the problem.)
Thanks to anyone who can try to help me out. This one is driving me a little bit crazy :)

Resources