How to select and view only a specific cell? - excel

I want to extract from the next code, only the first value. Unfortunately, I was unable and I didn't found similar answer for my question.
So, here is the example of script:
**$1.61**
With bold I mark the value which I am interested to be visible. Only this value in one cell. Unfortunately I didn't have need the rest of values from table.
Here I will add my function (function will be use ):
=importxml("https://www.coingecko.com/en/coins/polygon","//td/span")
Please let me know how how to select to view only 1st line/value.
Thanks to all for support.

This should select 1st //td/span
=importxml("https://www.coingecko.com/en/coins/polygon","(//td/span)[1]")
Reference
https://librarycarpentry.org/lc-webscraping/02-xpath/index.html

Related

Excel: Text mining using IF, ISNUMBER, SEARCH

I'm trying to clean up job title data using the formula below:
=IF(OR(ISNUMBER(SEARCH({"admin","reception","account","finance","HR","public","sales","customer","creative","IT","human"},A1))),"",A1)
It should work by eliminating job titles with any of the texts specified in the quotes above. However, I've encountered an issue where it doesn't. In a case where the job title is Quantity Surveyor, the title contains none of the specified texts but Excel seems to reflect it as such. What am I not doing right here?
Quantity Surveyor Example
To extract the information you are looking for, this is the formula you want to use:
=IFERROR(IF(OR(ISNUMBER(SEARCH({"admin","reception","account","finance","HR","public","sales","customer","creative","human"},A1)),NOT(SEARCH("Quantity",A1))),"",A1),"")
Using countif you don't need to check for errors if they occur:
=IF(OR(COUNTIF(A1,{"admin","reception","account","finance","HR","public","sales","customer","creative","human"}))+COUNTIF(A1,"<>Quantity"),"",A1)
Select the part of formula of search, and then press F9. You will find the match result of 6, where it has original value of 'IT', it means Quantity, has IT.
I really donot know why there is negative vote as not useful.
Here is the formula to solve your problem
=IFERROR(LOOKUP(1,0/FIND({"admin","reception","account","finance","HR","public","sales","customer","creative","IT","human"},A1)),A1)
Of course, it is better to define a range instead of hard code {}, like below
=IFERROR(LOOKUP(1,0/FIND($J$2:$J$7,A2),$K$2:$K$7),A2)

Vlookup + Match issue

I have an issue with the formula below.
=VLOOKUP(B$22,Scenarios.New!$A$1:$M$211,MATCH(Output!$A27,Scenarios.New!$A$1:$M$1,0),FALSE)
Take a look at the image
This is basically doing one thing. Find the Action No. that is in the sheet "Scenario.New" of the Scenario ID 1017. It is working fine, as it returns 1,so formula is working, but sometimes I have 2 actions.
As you see. my formula will only look at the first Scend ID and will ignore the other one as is already found the first one. What I want to do is add a piece in the code that says Action No. = 1 or 2. Because based on the action No. some other fields will change too. Any ideas to solve it? Thanks!
first, i'm doubt with your question. second, your tabel is horisontal but you use VLOOKUP? or im wrong to undertand this?
but let me help you,i think you should try this,
table
enter image description here
=HLOOKUP(A5;Sheet1!$A$4:$G$5;2;FALSE)
take number 1 or 2 from table. but, if your table have double value be reference like image, HLOOKUP return first reference.

Excel match multiple records from timetable

I just stuck with my school homework, it seems easy, but there is always different errors and mistakes.
Context
All I need is to connect information from 3 pages.
The first one is timetable of trainings.
The second page is "groups"
Players page
Question
1) Here is my first question. How I can put the time from the "timetable" page ?
I tried vlookup with the easiest group "children 5-7" but even this doesnt work.
The problem is that there is many possible times of some groups and I need the answer like "17:00, 18:00 etc" then.
2) The second question is with the page "players".
Firstly I need to match group or coach from page "groups". For children all is simple, but excel dont want to work even with this. But, there is one problem more. In adult group there cant be more than 4 players in one group, that why I have TK1, TK2, TK3 and TK4 - all this are for adult A. and TK11, TK22 etc are for adult B. So when its done we should match court and time from page "groups".
There is my spreadsheet so be free to try it right here. Hope you will help me!
Ref
https://docs.google.com/spreadsheets/d/1PNp60xmHOx_Q1wBc33WrzIaWmeNG5UMhi-4roV7dJXU/edit#gid=1868650910
I try to give you some ideas about how to solve your issues
Question 1:
The issue you have with VLOOKUP is that you cannot search on the left of your lookup value in the reference table. As suggested above by BruceWayne, you may use INDEX/MATCH. Considering the structure of your data a good formula could be:
=INDEX('timetable try here'!B:G,MATCH(A2,CHOOSE(B2,'timetable try here'!C:C,'timetable try here'!D:D,'timetable try here'!E:E,'timetable try here'!F:F,'timetable try here'!G:G),0),1)
In fact I am using CHOOSE() to select the column where your case should match, because your courts are numbers from 1 to 5. You may replace this formula in the column D under the label Time in your sheet named "groups try here". By the way the result that you get is only the first occurrence (in case you see a zero with some decimals figures, remind to change format to hours), so you will not be able to get the list as you like. As far as I know Excel does not have such kind of formulas. What you could do is create a VBA formula by yourself. You can find more details in this other post always here in StackOverflow, where I replied to a similar question with some code. I believe that your case is exactly the same.
Question 2
In this part I just added the last argument to the VLOOKUP and your formula works. So the correct formula should be in cell E2 of "players try here":
=VLOOKUP(D2,'groups dont try here'!A2:C15,3,0)
and in cell F2 (Court) of the same sheet:
=VLOOKUP(D2,'groups dont try here'!A2:C15,2,0)
I believe you need also a formula to pick-up the time in cell G2 (time):
=VLOOKUP(D2,'groups dont try here'!A2:D15,4,0)
These formulas of course works with suitable groups starting with "children". For the others it is not very clear to me what you need. If you have grouped all TK in Adult A and Adult B you need to have some criteria to fill in the other cells from your sheet 'groups dont try here'. Also remind that if you recode the TK1 and TK2 (for instance by adding a new column to be used as key for the VLOOKUP), with VLOOKUP you will always pick up only the first occurrence in the table.
If you need more support, please leave a comment.

Iteration in DHTMLX Grid Search

dhxTreeGrid.attachHeader("#text_search,,,");
According to this example : If i use attachHeader with text_search, it finds that row. However, it does not have "enter" event. So i can't move to another found row.
For instance; i have QR_CODE and QR_COMMON tables. if i search QR_CO, it finds QR_CODE but can not move to QR_COMMON. How can i implement this?
I have also tried this.
Unfortunately, it's not available to iterate through the searching rows. text_search can only select a nearest row matching the entered mask.

How can I make a custom fill handle pattern?

I have a column A3:A71 I wish to populate with values
=COUNTIF(B3:B71,B3)
Where the second argument is incremented with every cell.
Obviously I don't want to copy this function every time, so I was hoping that fill handle would help me. However although it correctly increments the second argument of COUNTIF, it also increments the first one. Even if I correctly populate the first two or three cells in the column A3:A71 with the values
=COUNTIF(B3:B71,B3)
=COUNTIF(B3:B71,B4)
=COUNTIF(B3:B71,B5)
when I drag down from the bottom right corner, I get the function:
=COUNTIF(B6:B74,B6)
=COUNTIF(B6:B74,B7)
=COUNTIF(B6:B74,B8)
=COUNTIF(B9:B77,B9)
=COUNTIF(B9:B77,B10)
=COUNTIF(B9:B77,B11)
Can anybody please tell me how can I force the first argument to stay the same while the second one is increased correctly?
I am using MS Office 2011 for MacOS, but a Windows solution would be just as helpful.
Please try:
=COUNTIF(B$3:B$71,B3)
There are further details at OwenBloggers.com including a table:
and mention that other terms are “absolute cell reference” and “locking”.

Resources