Identification of Particular Status which Occurred only once in excel - google-sheets

I have a data set scenario where I want to find the user has picked the call only once ,irrespective of the Time against each Order Id, it does not matter to me, when the user has picked the call once, either first time only, second time only or Nth time
only.
If user has picked Call only once then I want to consider "Yes" against that Order No. Other wise "No".
It can be possible that call attempts can be one or more than one against that Order No.
Note : ex :Order No: 44551 , only one attempt is made and the Status is Responsive, then against this order No. "No" should be there as only one attempt is made and which is Responsive.
Similarly Order No : 3456789, only one attempt is made and the Status is Not Responsive, then against this order No. "Yes" should be there as only one attempt is made and which is Not Responsive.
Data Set

Use COUNTIFS function to check the number of rows meeting various criteria (criteria being Order No. , whether it's responsive, which user made the attempt etc).
Then, either output the results to a new column using
=IF(COUNTIFS(...)=1, "Yes", "No") or put them in a conditional formatting rule with the formula =COUNTIFS(...)=1 to highlight relevant rows.

Related

Google sheets. Change cell value based on chekbox

I’m looking script or formulas or guideline for next task in Google sheets: If checkbox is cheked then value in cell change on “vacation”. If checkbox is unchecked then value in cell go back to previous value. The screenshot visually shows what should happen. I’m newbie and can’t find solution. I will be very grateful if someone helps me in any way. Screenshot
I apologize that I did not accurately state the essence of the question, function "IF" is not suitable since the second condition is dynamic, like this week the specialist works on one schedule (8-11), and next week on a different schedule (it can be any)
it would be great if the "if" function worked like this
=IF(H1=TRUE,"vacation","return the previous value")
=IF(H1=TRUE,"vacation","8-11")
Or you can go to Data Validation and create your own rules like this.
This is how I did mine:
I wanted to make my checkboxes for money management and so if I have a checkbox checked then the value means say $100 and I can play with the value $100 instead of the value TRUE.

automatically flagging duplicate times

What I am attempting to do
My workers submit their clock in and out times trough a google form, I have it set up to then automatically add up the duration and show it next to the work ID and name. Up until now its been working perfectly but then I discovered that some accidentally submitted there same shift 2 times. I would like an easy way to flag this overlap. I have attempted to implement this answer but it does not work for AM times. Is there any way I can also detect this for people who work through the night into the morning?
Sheet setup
Current sheet
You have to add one when the finish time is less than the start time:
=if(query(arrayformula({value(F13:F45+G13:G45),value(F13:F45+H13:H45+(H13:H45<G13:G45))}),
"select count(Col1) where
Col1<"&value(H13+F13-1/10^4+(H13<G13))&"
and Col2>"&value(G13+F13+1/10^4)&" label count(Col1) '' ",0)>1,"overlap","ok")
(have changed one row to create an overlap)
If you were just looking for exact duplicates of the shift times, you might have been able to do it more easily with Unique() though.

Hyperlink from a count query to extract associated data in access

I have a Count query that uses multiple criteria to produce a result looking like:
count ID
1 "abc"
4 "bcd"
5 "def"
1 "cde"
This shows how many times the ID appears in a given database. The datasource is through an odbc connection that updates automatically. So the ID values change everytime it is opened. I would like to try to turn the unique ID or the associated count into a hyperlink that when clicked will return all information involved in the count (*note the database has much more information associated with the ID's than is counted, a date range of the previous three months is applied.) Can this be done simply?
Database format:
ID Instance Device DateBeg DateEnd
Thanks in advance,
LP
The short version -
This should be simple to do using a report (but could also be done using a form I will be explaining how to do a report for this version). You would just make a report that includes all of your fields then call the report on click. It is important to mention that you will need to view the query via a form to make this work.
A more detailed version -
The first step will be to make a form based on your query (you will not be able to do this directly from a query). To do this select your query then click on the create tab then click Multiple Items Form. Adjust as needed.
Then create a report that shows ALL of the records how you want it to display. (I will call it rpt_ViewDetails) (we will limit later)
When you are done adjusting click on the field that contains the "abc" etc. results (if this is a calculated field it will be more complicated.) I will call this field "Criteria" for the example. Go to the events tab on the property sheet (in design view). use the On Dbl Click event and go to code builder.
This is what the code would look like (place in between the private sub.... and the end sub lines of code):
DoCmd.OpenReport "frm_ViewDetails", acViewNormal, , "[Criteria] = " & Me.Critera
Let me know if you have any trouble with this, also let me know if the structure is different than I am assuming, I will need a more detailed report of what the query is doing if this is the case, what the structure of the database is etc.

Automatically updating Data Validation lists based on user input

I have a very large data set (about 16k rows). I have 10 higher level blocks and within each block I have 4 categories (10 rows for each) which use Data Validation lists to show items available in each category. The lists should automatically update based on user input. What I need your help with is that I want to use the same data set for each block and preferably a least calculation/size intensive approach. I have put together a sample file that outlines the issue with examples.
Sample File
Thank you for your help in advance.
Okay, I've found something, but it can be quite time consuming to do.
Select each range of cells. For instance, for the first one, select B3:B18 and right click on the selection. Find 'Name a Range..." and give it the name "_FIN_CNY". Repeat for all the other ranges, changing the name where necessary.
Select the first range of cells to get the data validation, and click on "Data validation", pick the option "Allow: List" (you already have it) and then in the source, put the formula:
=INDIRECT($G$4&"_CNY")
$G$4 is where the user will input. This changes as you change blocks.
_CNY is the category. Change it to _CNY2 for the second category.
Click "OK" and this should be it. Repeat for the other categories.
I have put an updated file on dropbox where you can see I already did it for the data of _FIN for categories CNY, CNY2 and INT and did the one for _GER as well. You'll notice the category of INT for _GER doesn't work, that's because the Named Range _GER_INT doesn't exist yet.

<select> tag reposting

After several failed attempts using ExtJS I have now decided to use javascript.The requirement is to assist a combo box in select tag.If the list contains aa,aaa,aab,abc,bac,cba then if I type 'ab' continuously then it will select 'abc'.Whereas if I type 'a' time gap and then 'b' it will select 'bac' instead of 'abc'. Can anyone tell me whether its possible in js to get what I want?If not js is it possible in Jquery.Please ignore the previous duplicates.
It's possible. You're going to want to track when you your keypress events fire. Capture the time the "a" was entered, and then the time the second key was entered. If it's above a threshold, you want the second letter to be first, and the first letter to come second. If it's below your threshold, you want the first letter first, and the second letter second.

Resources