Paging million recored - search-engine

I am sorry if my question is stupid.
When I search on google and it returns the number of result usually about over one hundred million results. How many clicks I have to do when I wanna go to the last result with google's paging bar like this : 1 2 3 4 5 6 7 8 9 10 >

Google only returns between 300 and 1,000 results, no matter how many documents they have in their index matching a query. So you will never get to the last page. Sorry.

Related

Google sheets max cells limits and mitigations

I'd read online that Google sheets has a max cell limit of 5 million cells. A sheet that I'm currently working on has well and above passed that limit (including blank cells).
What is the new limit?
Also I'd manually checked how many cells I was using. Is there any
function or script that I can use to keep a check?
The sheet I'm working on is going to only get bigger and it's already lagging heavily. I'd love some suggestions on which platform I could move to next to handle such big data. There are so many options, it's mindboggling. I use Google sheets mainly for it's ease in collaboration, presentability and ease of use. Any other tool with these traits but with an ability to handle bigger data?
in the early years, it was 5 million cells. last year this was upgraded to 10 million cells
you can follow updates at: https://workspaceupdates.googleblog.com/search/label/Google%20Sheets
try:
take a look on Google DataStudio
The easiest way I found to check the cell limit was to try and add a huge amount of lines at the end of the document, which gave me this error message:
This reads: "An error has occurred: This action would increase the number of cells in the worksheet above the limit of 10000000 cells".
However, when I used one more digit, I got a different message:
That one reads: "Oops, enter a number between 1 and 5000000", suggesting the maximum number of rows you can have is 5 million, while the max of cells can be up to 10 million. I'm not sure about the columns, but I'd say it is the as the row's limit.

Comparing or combining values in a column

Scenario and question:
Basically I have results for a matched pair survey of couples in SPSS. It's set up where the person A's answers to questions 1-10 are the first 10 variables and then person B's answers to questions 1-10 are the next 10 variables. But I need to run tests and produce crosstabs for individuals, so if I have 20 couples the crosstabs outputs should be out of 40. I was able to simply select all the data for the "person B"s in couples and just copy and paste it over, however I lost couple-specific data and I still need to be able to create new variables based on the matched pair information. My way around this was creating a new variable while still in matched pair form called CoupleNum, so even when they were in individual form I could say if their couple number equaled each other calculate this or that. But I don't actually know how to do this. In the same dataset, how do I compare rows for the same variable?
Example for what I'm talking about:
Here's fake data
A_CoupleNum
A1_HappyScale
B_CoupleNum
B1_HappyScale
1
6
1
4
2
2
2
3
3
9
3
7
I'd move it to individual form like
CoupleNum
HappyScale
1
6
2
2
3
9
1
4
2
3
3
7
And then I'd want to be able to make a new variable called CoupleHappiness that was the HappyScale for each person in the couple added together.
CoupleNum
HappyScale
CoupleHappiness
1
6
10
2
2
5
3
9
16
1
4
10
2
3
5
3
7
16
So essentially I'd want to code something like
if CoupleNum = CoupleNum CoupleHappiness = HappyScale + HappyScale
I know this is definitely not correct but hopefully it gets my point across and what I'd like to do.
Potential solutions I've found that don't work/I don't know how to make them work for my needs:
Since I'm new to SPSS, I've found several things that might work but I don't know SPSS syntax well enough to suit them for my needs. I've noticed people mention things like LAG functions or CREATE + LEAD if they were in adjacent rows, but they could be all over the place. Someone also mentioned using case numbers but I don't exactly understand that.
Sorry this was a really long question but I would appreciate any help!!
What you are looking for is the aggregate function. In this case you can use it this way:
NOTE - this code was edited and corrected:
aggregate out=* mode=addvariables /break CoupleNum/CoupleHappiness=sum(HappyScale).
The function groups all the rows by values of CoupleNum, then for each group the function will calculate the sum of HappyScale and put it in a new variable called CoupleHappiness.

How to Sum with limits (google sheets)

Background:
I have an odd issue with Google sheets, I have a bunch of tournament results lets say
Team 1 comes 1st at 10 events, 2nd at 3 events and, 3rd at 8 events.
I need to take only their top 15 events which in this case would be:
1st - 10 times
2nd - 3 times
3rd - 2 times
Then this needs to be applied to a large number of teams (around 100) and a lot of events
My Current Solution:
Currently I have a solution for tracking all total results for a given team
=sumif("first_place","team name","all total results")" I then repeat this formula for each column of results e.g. "=sumif("second_place","team name","all total results")","=sumif("third_place","team name","all total results")
Problem (need advice):
however I am not sure how to limit this to only their top X results across all events.
update
I've settle on this formula as a temporary solution
=If(COUNTIF(Team_position,H2)< 6,Sumif(Team_position,Team_Name,team_points),"Team has played more than 6 events")
It simply gives me an error once a team plays more than the required number of events

How to control infinite looping in Automation Anywhere?

Using Automation Anywhere (AA), I am extracting medicine names and prices from this link:
https://www.chemistwarehouse.com.au/shop-online/238/anti-fungal-amp-warts
It returns 3 pages. While extracting the pattern based data from the website, AA code loops through all 3 pages. Upon reaching the last page i.e page 3, it does not stop and the loop goes on indefinitely.
I have watched many Youtube videos but can't seem to find the solution.
Since I am new to AA, I am unable to debug the issue.
I have tried to throw some arrows in the dark but all in vain, so need your help.
I expect that AA should stop after page 'n' and write the result in CSV.
I think maybe there's some logic you're missing.
But first, it looks like the website is to blame - if you were to go to https://www.chemistwarehouse.com.au/shop-online/238/anti-fungal-amp-warts?page=4 even though there's not 4 pages worth of options, it will take you to page 1's results. That's probably why it's infinitely looping.
Consider something like this - object cloning the table for each page. Page 1 and 2 have 8 rows, but page 3 does not. It has 2 rows. Make a variable that's true that gets checked at the top of your loop. If it's false, break the loop. Set it to false if there's less than 8 rows.
This does not solve the problem if your last page also has 8 rows, but you get the idea.

Delphi Rbuilder: Calculate value across multiple pages of data not just first and last page

I am using Rbuilder within a application constructed with Delphi. I have a report already built that displays a list of items but then at the bottom I have some subtotal fields as well as a total field. The subtotals and totals are defined as variables which then total up the cost of the individual items.
Unfortunately both the subtotals and totals only give me calculations for items on the first and last pages of data. Lets say there are 5 pages of data that prints out. Page one the totals are accurate.
Page two totals are accurate. Page 3 totals include ONLY the totals from page 1 and page 3. Page 4 total includes page 1 and page 4 and so on. I have been trying to play around with timing settings as well as moving my code calculating the total to different operations (ongettext, onprint, oncalc, etc)
Has anybody ever run into this?
Ok, so I kept working at this and eventually found the problem.
At the report level I changed the report from TwoPass to OnePass. That ended up giving me very close to what I wanted. I ended up having to write some more code to get exactly what I wanted but changing the number of passes worked.
I was trying to display a running total page by page. And as I changed pages it would update the value.
Onepass worked.

Resources