If functions producing different values for likert scale responses - excel

So I am looking to write a function code that will assign different values to different answers.
I.E if someone responds with a "strongly agree" I need a 4 value assigned but if they responded "agree somewhat" I need a 3 assigned.
I imagine this uses a combo of IF, OR and AND functions but I am unsure

Create a lookup table (on right in photo) to store your mappings. Then use a VLOOKUP to convert your string input to a score output. See photo below with setup & usecase

Related

EXCEL: Check for Multiple Values

I'm trying to check for multiple values using the FILTER function. Here is my code:
=FILTER(Projects!$A$2:$P$51,Projects!$E$2:$E$51="Completed")
I would like to check for additional values besides Completed. Like, Canceled, or Review.
Additionally, if I could check for a portion of case-insensitive text like, "rev" that could help too.
Use ISNUMBER(MATCH(...))
=FILTER(Projects!$A$2:$P$51,ISNUMBER(MATCH("*"&Projects!$E$2:$E$51&"*",{"Completed","Canceled","Review"},0)))
FILTER used to return multiple criteria
In this case, we're using the multiplication operator (*) to return all values in our array range (A5:D20) that have Apples AND are in the East region:
=FILTER(A5:D20,(C5:C20=H1)*(A5:A20=H2),"")
Also you can have a detail look at the given link
https://support.microsoft.com/en-us/office/filter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759
Please see the image if you do not understand
https://support.microsoft.com/en-us/office/filter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759

What are common GIS filters that would be used in a spreadsheet-like interface

I have a spreadsheet-like application where a column may be a GEOGRAPPHY type, for example something like POINT(1 1). I haven't used GIS too much personally, and so was curious what is the most common filter that someone might apply to a GEO column. Giving a basic comparison, in Excel on a TEXT column, I would most commonly do something like =value, displaying the available values in a list of checkboxes:
My thought having zero experience other than using things like Google Maps or Kayak is that a user may want to see something like:
Value within [Distance] [units] of [Place]
For example, "Point is within 10 miles of Chicago, Illinois". And the reverse would be "outside of". Is this the most popular filter type, or are there others that are used frequently?

how to make excel choose between a set of values based on conditions

I need help with excel with regards to choosing a set of value in terms of availability and priority.
For example, Part A has these 4 available parameters (TSO,TSR, TST ,TSN) however, not all parameters are available. The priority function is like TSO > TSR > TST > TSN
The method i am using now is very inefficient as i create a lot of extra columns and comparing with =if. In essence, its ugly,time wasting and not 100% foolproof.
Therefore, i am trying to see if there are any sets of excel function to effectively do this. The first priority value to use is TSO (if value is displayed) but if it is not available (blank) i would move to see TSR. If it is blank i would move to see TST, so on and so forth until the last choice TSN.
I have attached a picture to give you guys a clearer picture
Example of how it looks like for a clearer visualisation
I suggest to use the VLOOKUP() function where you can pull any value of your preference using a unique id. So you can use TSO, TSR, TST,and TSN as your IDs.
EXAMPLE
=IF(OR(AND(Sheet2!B1<>"",A1="TSO"),AND(Sheet2!B1<>"",A1="TSR"),AND(Sheet2!B1<>"",A1="TST"),AND(Sheet2!B1<>"",A1="TSN")),VLOOKUP(A1,DATA1,1,FALSE),"")
You may share a screen shot of your sample excel template so that i work on immediately

IF function with multiple conditions

I've been trying to figure this out for the past two hours. I need to create a nested IF statement based on this info. Here's the question:
Incentive: A dollar amount which is based on a percentage discount of the house price as indicated on the Data section of the spreadsheet. It's given only to selected customers complying with any of these conditions:
The house located in New Jersey, zone 2 and is a multiple dwelling.
The house located in California, zone1.
The house located in Florida, single unit.
And here's an image of the Excel provided:
This is what I currently have:
=IF(OR((B10="New Jersey", C10="2", D10="Multiple"), (B10="California", C10="1")), ($B$4*E10), "No"
Any help is appreciated. Thanks in advance!
=IF(OR(AND(B10="New Jersey", --N(C10)=2, D10="Multiple"), AND(B10="California", --N(C10)="1"),AND(B10="Florida", D10="Single")), ($B$4*E10), "No")
You need to:
include a ANDstructure
get the right datatype for your C column (is it number, or is it text)
As previously stated, the error lies in your logic structure. Try the below formula:
=IFERROR(IF(OR(AND($B10="New Jersey",TEXT($C10,"#")=2,$D10="Multiple"),AND($B10="California",TEXT($C10,"#")=1),AND($B10="Florida",$D10="Single")),$B$4*$E10,"No"),"Error!")
We start with the OR function inside the IF function because we want to check if any of the following conditions are true. We follow that with three separate AND functions, each one testing your parameters. Should one of these AND functions return true for each statement within it, you will get $B$4*$E10 as your value; otherwise, we return No. I chose to wrap this all up in an IFERROR so that you can capture any potential errors (should they occur).
Also, I handled for the potential "number-formatted-as-text" issue by converting it to a number within the calculation.

Two or more identical parameters in one sentence

I have a dialogflow intent which includes different parameters.Shown as below:
1.png
I set generic "number" for all number parameters such as "Years to Average Principal" and generic "percentage" for all percentage parameters.Like this:
2.png
When I say something like "Change vacancy rate to 56%" or "change Years to Average Principal to 5", it works well.But when I say a sentence which includes two or more parameters with same type, it sets the first value for all parameters.I used the "Change depreciation percentage to 30% and down payment to 45%" phrase and the result is following images:
3.png
4.png
As I have to use only one intent and one action,would you please help me what should I do to have separate values for different parameters?
I hope I could make it clear. Thanks in advance,
Good try using the "is list" setting for a parameter! Unfortunately, you only set it for one of the parameters, so it treated that as the list and then used the first matching value for the other parameters since both matched the rule for percentage. If one was for percentage and the other for currency, it might have worked better, but probably not.
Two (untested) thoughts about how to get this to work (and it is a good attempt to solve the problem of entering multiple values at a time):
You can try to see if setting all the other parameters as lists will work as well. But this still might have the problem of setting one parameter to a number and the other to a percentage.
Look into Developer Composite Entities. This will let you create a composite entity that contains both the name and value and treat it as a single Entity. Then you can specify, in your sample phrase, that you will accept a list of these Entities.

Resources