Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
On K250 cell I've this put a formula so that when user submit data via form formula will work.
=VLOOKUP(F250,Available!$C$1:$E$72,3,false))
But problem is when someone submit a form, row K250 is getting down as K251 & submitted form taking palce K250. I've found some other guys are talking about using Array. I've tried this one but didn't work.
=arrayformula(VLOOKUP(F250,Available!$C$1:$E$72,3,false))
Whats the solution?
If i understood your problem correctly then do this:
Instead of giving a fixed range , use name ranges to avoid this problem.
To access name ranges you can use F3 key while typing vlookup.
Following are some screenshots to help you out.
It should work even your cells shift towards down, if the shifting is happening towards right then you might want to select the entire sheet to avoid confusion.
Hope this helps to solve your problem.
When a form submission is made in Google Sheets, a new row is inserted in the sheet receiving the form submissions, and yes, this will "push down" any formulae that were previously in that row.
And yes, one solution is to use an array formula. Something like this could be entered in row 1:
=ArrayFormula(IF(ROW(F:F)=1;"Column Header";IFERROR(VLOOKUP(F:F;Available!$C$1:$E$72;3*SIGN(ROW(F:F));0)))
Multivalue Parallel Lookup Solution
Note: if this answer is in the right ballpark, I will try and edit your question and tags accordingly.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed yesterday.
Improve this question
Here's the sheet: https://docs.google.com/spreadsheets/d/1TbPKehggzCGWy6LyEuzHZc5RouBHhyju35bqIGpInhM/edit#gid=14120435
I know how to transpose the data in colA (=Transpose(A2:A)). I know how to write an array formula to output the data i'd like (F1), but I'd like to nest the Transpose formula into the formula in F1 so that as items are added to colA, the table on the right populates with the header rows relying on the values in A2:A and the data as it is in ColF
You could try:
=ARRAYFORMULA(LET(header,TOROW(A2:A,1),{header;IF(D2:D="",,E2:E*VLOOKUP(header,A:B,2,))}))
Or:
=ARRAYFORMULA(LET(header,TRANSPOSE(FILTER(A2:A,A2:A<>"")),{header;IF(D2:D="",,E2:E*VLOOKUP(header,A:B,2,))}))
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 11 months ago.
Improve this question
Suppose there's a website that has a list of details of some companies, for example, name, HQ area, turnover, etc. How do I scrape that data and fill it into different columns (like name, turnover) with each row having the details of a separate company?
Google Sheets allow you to import html tables or list with the IMPORTHTML(url, query, index) function.
For example, using the Wikipedia page List of largest companies by revenue as an example.
We want the data from the main table, so the first thing that we have to do, is to know what index it occupies in the page. To do this, we can use document.querySelectorAll('table') or $$('table'), as you can see from the result, the table that we want is in the position 5 of the array, so inside our google sheet we can use:
=IMPORTHTML("https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue","table",5)
From here, you should change the query parameter to list and find what index it occupies within the page using the method described above. In any case, you could always use IMPORTXML(url, xpath_query), and knowing the XPath of the information, you could come up with a similar solution.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have a column in my Google Sheet that shows timeslots for appointments in the following format:
07:15-07:45
09:00-09:30
12:45-13:15
16:30-17:00
In a new column, I would like to condense these into groups so that for instance any timeslot between 07:00-10:00 would be "Early Morning" 10:00-13:00 would be "Late Morning/Early Afternoon" etc.
How would I be able to do this with a formula?
Please try the following
=ArrayFormula(IFERROR(IFS(
IFERROR(REGEXEXTRACT(A2:A11,"(.*)-")*1,"")<TIMEVALUE("10:00:00"),"Ear.Mor.",
IFERROR(REGEXEXTRACT(A2:A11,"(.*)-")*1,"")<TIMEVALUE("13:00:00"),"Lt.Mor.",
IFERROR(REGEXEXTRACT(A2:A11,"(.*)-")*1,"")<TIMEVALUE("16:00:00"),"Ear.Aft.",
IFERROR(REGEXEXTRACT(A2:A11,"(.*)-")*1,"")<TIMEVALUE("19:00:00"),"Lt.Aft.")))
OR
=ArrayFormula(IFERROR(IFS(
IFERROR(INDEX(SPLIT(A2:A11,"-"),0,1),"")<TIMEVALUE("10:00:00"),"Ear.Mor",
IFERROR(INDEX(SPLIT(A2:A11,"-"),0,1),"")<TIMEVALUE("13:00:00"),"Lt.Mor",
IFERROR(INDEX(SPLIT(A2:A11,"-"),0,1),"")<TIMEVALUE("16:00:00"),"Ear.Aft",
IFERROR(INDEX(SPLIT(A2:A11,"-"),0,1),"")<TIMEVALUE("19:00:00"),"Lt.Aft")))
(You can adjust ranges to your needs)
Functions used:
ArrayFormula
IFERROR
IFS
INDEX
TIMEVALUE
REGEXEXTRACT
SPLIT
Welcome to StackOverflow. Since I'm also the new member here like you, I would like to give you some advice and answer your question.
While asking a question there are some rules to follow:
you should give the important information about your question before putting your code
don't ask someone for a direct code. Try to handle it by yourself with doing a research about your question. Maybe there is already an answer to your question which can give you better idea than someone's answer in your post.
we all should understand that most of people here are busy with something. So we should respect their time and not ask already answered question or without having a code.
you can find more about how to ask a question here. I hope it'll help you to at least give an idea of what StackOverflow is.
For the answer to your question, I would suggest that to separate beginning time of appointment and end of it to different columns. Then you can write a formula using if statement like this: IF(AND(D2 > TIME(7,0,0), F2 < TIME(10,0,0)),"Early Morning"," another if statement ") Assume that D2 is beginning of appointment and F2 is the end. I might have made a mistake but overall idea is like that. Please refer to those links for more information about if statements and timeslots:
https://exceljet.net/excel-functions/excel-if-function
https://www.excelhow.net/how-to-compare-time-difference-with-certain-time-in-excel.html
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Hell,
I encountered one problem while combining different sheets(tabs) into one master sheet, e.g I have three sheets named Cola, Pepsi & Thumbsup, I consolidated their results all in my Master sheet using Query formula with null. Whenever anyone entered data in Cola, Pepsi & Thumbsup sheet it comes to my master sheet somewhere in Between the rows. I need it to comes queue wise, is it possible?
The problem I faced is, I am writing a remark on my master sheet on each entry so whenever someone added new data in Cola, Pepsi & Thumbsup it inserted in between the data and break the sequence of my remarks.
The remark I wrote for e.g Cola 103 it shift to cola 102 when someone enters new data in cola sheet.
About the query, it just displays the values. It's kind of impossible to control as your mention. I recommend to use app-script (macro), function append or getValue setValue or getRange copyto as text paste not just display
If your data have timestamp each row. It might work, sort by depending on date and time added. Need to use just one column sorted. In function query ...order by A asc
Anyways, I still recommend to use app-script (macro)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
im new to iOS/xcode app and have a question.
If i make a form with "name" "age" "date now" how/where is it saving the info and how do i make new items ?
Have tried to search google for "xcode saving item to list" but its not what im looking for.
Can someone help me with a link to a tutorial or the name function that i need to look at.
So i can read/learn about
- save function
- show the saved items in a list.
- get one or more saved items to another page/view in the app.
First you need to deal with getting notified when the text in each field changes. This is done by using the delegate methods of the text fields (<UITextFieldDelegate>). In particular, textFieldDidEndEditing: will allow you to grab the text when the edit is complete.
Once you have the text, you need to store it somewhere. This could be in a dictionary, or, if you want to display in a list, it could be in an array.
A dictionary is easier if each of the text fields means something different. Then the keys of the dictionary represent the meaning.
An array is easier if it's just a list of arbitrary text. The issue here is how to know that you haven't got duplicates. In this case it can be better to have a submit button which loops over all of the text fields in order and adds the text from each to the array.
Once you have the text in an array or dictionary you can save it to disk (writeToFile:atomically:) or use that as the source data for a table view.