Google sheet automatic addition of the number of items - google-sheets

hello to all who are able to help me I apologize in advance because I know it's somewhere on stackoverflow but I can't find it
I need it to automatically assign me a number to the selected column
(do not look at the date in columns C and D)
in column B there are unique repeatable names and I want it to have a number assigned depending on which time it has already been written
and I would like it to be dependent on column E as well
I don't want something like that
just something like this
Thanks for Help
I looked on the website but I couldn't find it, I know it's there somewhere

try in A2:
=INDEX(COUNTIFS(B2:B; B2:B; ROW(B2:B); "<="&ROW(B2:B)))

Related

Taking Column A values comparing to Column B values if they are the same post to Column C

I'm trying to take the names from column A compare them to the names in column B and then have the similar names get listed in column C.
The problem is these names are automatically updated and out of order, and I need the function in column C to update with them. Also, the names will not be in order, this is why I can't use A=B function. The picture shown is an example of what the solution would look like or something similar. After completing this, I would like to continue using the same function to break down the name data even more. Watched a lot of videos on this, can't find anything specific enough to work.
Side note, I have found a way to do this using different pages within the sheets but not in the same sheet side by side. ex. of what solution
I have tried watching lots of YouTube videos, but nothing goes into detail enough and seem to only explain when similar values are next to each other in column A and B.
This is what I use for 2 different sheets but can't find / understand why when changing values in function to single sheet it wont work:
=filter(Sheet1!A2:B,ISNUMBER(match(Sheet1!A2:A,Raid1!A2:A,0)))
Also, another side note: Can't use True or False. And for uneven number of names in the list ex. Column A has 10 and B has 7 it sorts A for names in B and post similar in C.
Try below formula-
=FILTER(C3:C,INDEX(COUNTIFS(D3:D,C3:C))>0)
You can use VLOOKUP to check common values between columns and store them in another column.
=IFERROR(VLOOKUP(A:A,B:B,1,false),"")
Although this will create gaps in the output column. you can get rid of it by by simply using a filter or so.
all you need is:
=FILTER(C3:C; COUNTIFS(D3:D; C3:C))

Is it possible to select the next cell each day from a list in Google Sheets?

I know this is kind of an odd question, but I have a list of urls that I need to cycle through and display that url in a separate cell, and it needs to automatically change each day. And then finally, once it reached the end of the list to go back to the top of the list.
Is this something that is even possible to accomplish on Google Sheets, or do I need to take a completely different approach?
EDIT: Here is a rough example of what I am trying to do, and I honestly don't know where to start, so I haven't tried much yet. I know how to display the last row in a column, but I cant figure out how to auto change that last row each day. I feel like the best way to do this would be to either move the top row to the bottom each day, or vice versa, but I have no idea how to accomplish this.
Please let me know if you have any suggestions/if I can clarify anything... Any help would be greatly appreciated! Thank you!
Yes this very much possible, I have made one example sheet for you and you can make copy of the same.
Example Sheet.
E2 Contains Today's date, F2 contains date for comparison, G2 is the difference between 2 dates which will go on increasing daily, there will be automatic increment in the Column H.
Based on daily increment in Column H you will get your Urls in Column B.
You don't need to start list from the beginning again, you can go on adding list in Column A. However still if you will need then you can manipulate formulas by comparing another date.
Hope this will work for you.

google sheets - Arrayformula

I have created a form using google forms, and I want to automatically check the answers when a new submit is done.
When the user submit his/her question, a new line is added in a responses sheet. This is where I need to add some magic ;)
SO, in my responses sheet, I have the right answers in the second line...something like this
A B C
1
2 RightAnswer1, RightAnswer2, RightAnswer3....
Using the arrayformula function, I have added new colums (column D,E,F,G and so on) on every row checking against the correct answer on line 2.
The formula goes something like this;
=IF(ARRAYFORMULA(A3:A=A2),1,0)
And it works like a charm :)
BUT, then I want to add a column at the end of each row with the sum of all the right answers, lets say to column Z on every row...this is where I want to sum all the 1's (correct answers).
I have tried something like this;
=IF(ARRAYFORMULA(<any kind of check that is true>),sum(D3:Z3),0)
This will always return the sum of D3:Z3 on every line, and this is not what I want. I want to sum the columns on the line-number that was just added. So I have tried to alter this expression in several ways , having everything in the arrayformula expression, altering the sum expression to (D3:D) to hopefully get it to work on the current line, but without any luck.
I have search the web for answers, but found nothing to help me...
Do you have any suggestions?
One way:
=ArrayFormula(IF(LEN(D3:D),SUMIF(IF(COLUMN(D3:Z3),ROW(D3:D)),ROW(D3:D),D3:Z),))
Although it would be possible to "skip the middle man" and process the raw data alone; assuming the answers are in A2:Z2, and the data to sum is in A3:Z, then:
=ArrayFormula(IF(LEN(A3:A),COUNTIF(IF(A3:Z=A2:Z2,ROW(A3:A)),ROW(A3:A)),))

Getting around circular reference in Google Spreadsheet

I have a google docs spreadsheet with two columns: A and B.
Values of B are just values from A in a different format, and I have a formula in the B column that does the conversion.
Sometimes I do not have the values in A format but I have them in B format. I would like to automatically get the values in A format in the A column by adding the formula that does the reverse conversion in the A column. This, of course, generates a circular reference. Is there a way to get around it?
On the top menu of a google spreadsheet do the following:
File > Spreadsheet settings
Choose the "Calculation" tab, and change "Iterative calculation" to ON.
Enjoy :D.
PD: I know that this post is too old, but just some days ago I needed a solution to this, and I couldnĀ“t find any.
From this week, Google Sheets has announced support for exactly this feature. You can now limit the number of iterations for circular references in the spreadsheets settings :-)
In excel you can set it to allow circular dependencies and limit the number of iterations they run (usually 1 is the desired result).
I've looked and nothing like that exists in sheets.
I know that this post is pretty old, but I saw it while looking to see the applications of a thing.
In sheets, you can use importrange to reference the same sheet and call the desired range. For instance, you can put a formula in B1 that is =A1+1 and in A1 use the formula =importrange(<THIS SHEET ID>,"B1")+1.
You may need to initially put the formula in A2 and then move it up to A1, but it should work.
Doing something like this essentially makes a second counter, which is neat I guess?
Solved with a script that implements the following algorithm
for each row{
if (A != "" && B == "")
B = conversionFromA(A);
if (A == "" && B != "")
A = conversionFrom(B);}
of course it has it's downsides, (you have to call the script each time you enter new data), but it's the best solution I found
I would add two more columns: data source and data format. Then, the formula in column A would take a value from data source either as is (if the format matches) or converted (if format doesn't match). Same for column B.
Instead of referencing your co-dependent formula cells, use other cells to hold your actual (non-formulaic) data and use the formula cells to show your results.

Google Spreadsheet range names

In Google Docs Spreadsheets, one can use Range Names to put labels on ranges of cells to make formulas more legible. In most formulas, one can use the range C:C to denote the entire C column, and C2:C to denote the entire C column after and including C2.
Is there a way to create range names of the same nature? When I try C:C or C2:C or Sheet!C:C or 'Sheet'!C:C I always get the error "The range you specified is not in a valid range format." I would like the range name to expand as my form adds rows to my spreadsheet. Thanks.
I just discovered the if you use the '-' operator, it starts from the bottom row. So,
=INDIRECT("-D:D12")
starts from the last row and works it's way up to D12!
I had a similar problem. Although I do not know how to do exactly what you are asking, you can do essentially the same thing by referencing cells that are not yet created.
For example:
Column C currently has 100 cells (100 rows in the sheet)
Instead of referencing it with C:C, use C1:C999
If you make the row reference high enough, then you can account for future rows that you will create. Hope it helps.
I don't think so... even if you select a column manually while in the Range Name selector, it complains. That would be a nice feature and it would make sense since they support column ranges for formulas already.
I believe this does work now. I have a range name of "Sheet1!A10:AW10" with no problems.
If you try to do a whole column, I think it will just take all the available cells in the column at that time. i.e. if you make more cells later, you need to manually add to the range name.
I had the same problem with ranges such as A3:A which normally work in other places such as ARRAYFORMULA(), but the workaround is to not specify the starting row, such as A:A. In cases when this would be a problem, you can proxy the data through another column using something like ARRAYFORUMULA(A25:A) as the formula.
Update: Apparently I haven't read the question properly. I see that the OP had tried leaving out the row number, so perhaps it wasn't working at that time, but it does now. The notations still don't work.
Update2: I didn't notice that google spreadsheet replaces ranges like A:A to A1:A50, so new rows added later on do not still get included. That I think is what #Dean is trying to say in his answer.
I think it's a helpful tool to use Insert -> Define new range to make a wizard appear and make the syntax correct. Hehe
My response in other topic

Resources