Forums

Clan List Logger

Quick find code: 86-87-226-65189098

Ebram 72

Ebram 72

Posts: 10,770 Opal Posts by user Forum Profile RuneMetrics Profile
Hey, awesome work with designing this.

I just had a problem though.
I have been trying to use the data provided in another sheet and use Vlookup, it does not seem to recognize the text format.

Do you happen to know what may be the issue?

Additionally, is there a formula like importURL or something that you could use to easily import the data from the memberlist page?
Founder of
¤'•,¸
72
¸,•'¤

Ebram 72

03-Dec-2014 23:46:02

Ebram 72

Ebram 72

Posts: 10,770 Opal Posts by user Forum Profile RuneMetrics Profile
The problem with importdata is that you have one cell filled with valuable information, but I have no idea how to extract the valuble information.

Take a look at this link:
https://docs.google.com/spreadsheets/d/1yOC4qlQBTANhuJaB5eK24BkEEQPNz1_umiIEZqVSF7A/edit?usp=sharing

Sheet A => Weirdest glitch ever!
Type in different names in C1 and C2. If the name has space in it, it wont find it. If the name has no space in it, it will find it just fine. I tried concatenating spaces into the edges, then trimming it out, and so many other weird stuff to find my way around, but no avail. Also, sorting them all and making the Vlookup function look in "True" in sorting makes it work, but it's not applicable to what I want to use it. It has to work on "False". Tell me if you have any way around this.

Sheet B => I'd appreciate it if you could show me how to extract the information. Or it could be that I am using the wrong link :S.
Link input is A19
The rank and name information is at CS517

Thanks! :)
Founder of
¤'•,¸
72
¸,•'¤

Ebram 72

04-Dec-2014 02:12:22

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
I found the difference - the space in names is char code 160 whereas the space typically found is char code 32.

Hmm, the spec says

is_sorted - [optional]
Indicates whether the column to be searched (the first column for the specified range) is sorted, in which case the closest match for 'search_key' will be returned.

I guess closest match means it'll accept the difference.

To fix it, I've added something that replaces normal spaces with code 160 spaces.

=Vlookup(
C1
,A1:B500,2,0)

=Vlookup(
REGEXREPLACE(C1,"\s",CHAR(160))
,A1:B500,2,0)

­­­­­­­­­­­­ .:
Blasty
the Blue
:.­­­­­­­­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

04-Dec-2014 07:39:18

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
The clan member list page is only potentially useful for getting membership status, is that what you're trying to find out?

It'd be much better to use apps script to extract that data than spreadsheet functions. I'll have a look anyway.

Edit: I've made a custom function in apps script that returns a table of the data based on the results of importing the clan member list.

Original message details are unavailable.
function getMembership(obj){
return [["Name","Rank","Member","Total XP","Kills","Online"]].concat(obj.map(function(a){return a.join("&quot ;) }).join("&quot ;) .split("membersListRow&quot ;) .slice(1).map(function(row){var col=function(cls){return row.match(RegExp('"'+cls+'">([^<]*)'))},name=col("name&quot ;) ,member=/pro\.png/.test(row),rank=col("clanRank&quot ;) ,totalxp=col("totalXP&quot ;) ,kills=col("kills&quot ;) ,world=col("world&quot ;) ;return [name[1],rank[1],member?"Member":"",parseInt(totalxp[1].replace(",","&quot ;) ),parseInt(kills[1]),world[1].replace(/\n/g,"&quot ;) ]}))
}


­­­­­­­­­­­­ .:
Blasty
the Blue
:.­­­­­­­­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

04-Dec-2014 07:48:08 - Last edited on 04-Dec-2014 10:56:52 by Blasty

Dashadoking

Dashadoking

Posts: 2,861 Adamant Posts by user Forum Profile RuneMetrics Profile
Hey,

Day 385 using the clan logger :P

Something I found out awhile ago with the new google sheets, is that with all the scripts that you made, you can't actually convert it directly to the new google sheets and there are several other sheets that my clan have added to the spreadsheet that could use some of the new functions. I was wondering if you weren't too busy, could you make a new version on the new google spreadsheets? :D

Thanks again!

~Dash
Dash - Founder of the NomNom Family | T7 + 3 Avatars | Recruiting Social and mature members |

04-Dec-2014 09:54:09

Quick find code: 86-87-226-65189098 Back to Top