As shown below, I have week one starting on July 18, and I want to then fill in every week from then on, but I don't want to have to keep manually typing and filling after week three.
I know there must be a simple formula to fill in a number and then '+1' for the row below it.
Not sure what you are needing to manually type... You should only need the first two rows of the third column, then you can autofill the rest.
The second row here shows the formula of the cells below it
Related
I have a Google Sheet with a script to move rows at a set interval. The last row is moved to the top and all consecutive rows move down one, thus creating a loop. This sheet feeds a dynamic gallery of 10 stores which appear in consecutive blocks, managed by left and right arrows. Each block has a button which takes the value of the particular store of the block being viewed.
I want to register the row a store is on when this button is clicked so, in order to identify it, I have placed a MATCH function in a cell of each row with a formula like this: =MATCH("Store 10",B2:B11,0). All's fine up to this point however, when the row moves, the range also shifts. For example, when Store 10 moves from the last row to the first, the above formula changes to =MATCH("Store 10",B3:B11,0). This obviously renders the whole idea useless since Store 10, which now resides in the first row (B2), is not even found, since B2 is not included in the formula's range anymore!
Is there a fix to this or a better way to achieve my goal?
Try this in G1
={"title of column";arrayformula(MATCH(offset(B1,1,,10),offset(B1,1,,10),0))}
Need some help. I'm currently making a Google Sheets, and I need some conditional formating. I need a row to be formatted with the condition on one of her cells.
For example, I need to formate A2:I2 with the formula =$H$2="No".
This was the easy part. I can do that.
The part that I fail is :
I have like 30 or 40 rows to formate like that, with the condition on the cell of the row. (H15 for A15:I15, H21 for A21:I21...). I tried to select the first row, copy it, and special past the formatting to another row, but Google makes some weird shit. It creates a new rule, but keep the previous cells range and add the currently selected. And the formula stays on the $H$2. I know it's because I put some $ in the name of the cell, but if I don't, it will not formating the entire row. Juste the first cell.
My question is :
How can I properly copy/paste the conditional formatting of the first row to the others one, with the condition correctly on the cell of each row, and keeping the formatting on the entire row?
The meaning of the $ sign is the following:
$H$2: it will lock that cell only,
H$2: it will lock that column,
$H2: it will lock that row (I think this is the one you are looking for),
So you can set the range to be: A2:I
And the formula to be: =$H2="No"
I am making a google sheet to track attendance for a team. I want the row with the name to highlight a specific color when a checkbox is on. I managed to write something that works for the specific row I'm working in, but any time I try to copy it over to other rows the range is just adjusted, so any time any checkbox from a column is on it highlights all the rows. Attached are pictures that show what I want it to do. I just need help figuring out how to copy this to other rows and keeping them all separated.
The code that is in each conditional formatting is this:
=$B2=True
=$C2=True
=or($D2,$E2)=True
https://docs.google.com/spreadsheets/d/1zwkuJOCBPIIoQ7cp0bV5IvidMVwdeIC0dShdjwKMSkE/edit?usp=sharing
I think the issue is with the code itself because when I copy it adds the new range, but the code stays the same.
your formulae are correct. change your range A2:E2 to A2:E - that will solve it
I am making a spreadsheet to manage my spending on food at work. At the moment, I am getting the total of every week in the last column, but I would also like to total the spending for the month, something like this, but neater and so I can just drag down the rows instead of manually type it every 4 rows.
Thanks for the help!
This is easy to manage - its all a question of which cell(s) you choose to select and drag. Don't just click and drag the cell with the formula; select the three blank cells as well - then drag four cells down the column. This will give a formula in every fourth row.
The SUM formula calculates the costs for the first 4 week period. All Good.
Now, if you select this cell and simply drag it down, then every cell will get a copy of that formula. not good.
But... if you select the first four rows of the first month (including the blank weeks 1, 2 and 3). Like this
and then drag all four cells down the column, then only every fourth cell will have a formula and the preceding three cells will be blank.
I am currently looking for the number of working days deducting the holidays and the weekends. I'm using this formula right now.
=NETWORKDAYS.INTL(E2,F2,1,Holidays!A1:A19)
putting the list of holidays on another sheet. It worked on the first cell,I enter the formula. However the numbers on the holidays range keeps on increasing, When I copy and paste into the next cell.
=NETWORKDAYS.INTL(E3,F3,1,Holidays!A2:A20)
This is for the 2nd cell and for the 3rd cell,
=NETWORKDAYS.INTL(E4,F4,1,Holidays!A3:A21)
I would like to ask if there is anything that I can do, When pasting the formula on each cell without moving the Holiday range. I tried entering the formula one by one and it worked. But, I am looking for an easier way for future use. Thanks a lot in advance.
To lock a range use $
=NETWORKDAYS.INTL(E2,F2,1,Holidays!A$1:A$19)
This will lock the rows. So if you drag fill down or copy paste down 1 and 19 won't change. But if you drag fill to the right,A will become B and so on.
To make a full lock, use $ on both columns and rows.
=NETWORKDAYS.INTL(E2,F2,1,Holidays!$A$1:$A$19)