Formula to return value based in text in multiple cells [closed] - excel

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 5 days ago.
Improve this question
enter image description here
I have a spreadsheet where I want to display certain text dependent on the combination for column an and b.
Below is a picture of the columns and the outcome text I want to display. so for instance if I type "high" and "low stake"....then it will show "handle with care , keep satisfied" in column c
My IF formula didn't work.
enter image description here

Make a "helper" table and use FILTER formula as it would be much easier to change something than in nested IF formula.
Formula:
=IFERROR(FILTER($C$1:$C$4,($A$1:$A$4=A8)*($B$1:$B$4=B8)),"")
Result:

Related

Excel - How to calculate the sum of values in a table based on text from the same cells as the value? [closed]

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 4 months ago.
Improve this question
I need to calculate the sum of values in a range of cells, which have different and/or identical data, based on text that is in the same cells as the value I need calculated.
I have created 4 sheets: data, control, test and result; with more than 5 mil cells with formulas(mostly typed because of errors) and I need to extend the range of all sheets.
Is there a simpler way(than what I've made) to achieve the results from column B?
Thanks.
If you want column B to have that number, then
=left(A2,1)*1
will work.
If the number is 2 digits then you will have to test and deal with that.
Then sum column B:
=sum(B:B)

Excel convert digits into respective words [closed]

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 9 months ago.
Improve this question
I would like to convert the number of digits in excel into respective words as shown in the picture above. How can I achieve this functionality in an excel sheet? Thanks for the answers.
In Formulas > Name Manager, define a named array containing the names of the digits as text:
Select the range B2:E3. Enter the formula =INDEX(DigitsToWords,MID(RIGHT("0000"&VALUETOTEXT($A2),4),COLUMN()-1,1)+1), using Ctrl+Enter to apply it to all cells in the range. You will need to adjust this if you want to accommodate larger, negative or non-integer numbers.
Result:

How to use excel formula to search cell that contain keyword, and return the corresponding value [closed]

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 2 years ago.
Improve this question
I have a column in an excel sheet that contains all the logged issue descriptions.
The column is as such:
pic1
I would like to create another reference sheet to categorise the issues based on the keyword.
E.g. of the ref sheet
pic2
Which excel formula should I use for this logic - if the description column contains the keyword text, return the category.
Was thinking of using if......=SUMPRODUCT(--ISNUMBER(SEARCH(..... , combining with vlookup. but unable to get it.
Anyone can help me on this?
a non-array-version would be:
=INDEX($B$7:$B$10,AGGREGATE(15,6,(ROW($B$1:$B$4))/(ISNUMBER(SEARCH($A$7:$A$10,B1))),1))
another solution would be this ARRAY-FORMULA: CTRL + SHIFT + ENTER:
=INDEX($B$6:$B$9,SMALL(IF(ISNUMBER(SEARCH($A$6:$A$9,B1)),ROW($B$1:$B$4)),1))
It just gives the first found keyword.
EDIT:
AGGREGATE can imitate several excel-functions, in this case 15 means SMALL. The 6 tells the function to ignore errors. This can be used to filter the list of found keywords. Basically it is linenumbers divided by positions of the keyword in the cell. For the first cell we get
[1,2,3,4] / isnumber([9,#VAL!,#VAL!,#VAL!])
= [1,2,3,4] / [1,0,0,0]
= [1,#VAL!,#VAL!,#VAL!]
The errors get ignored and you get row 1 as result, which can be used in INDEX.

How to extract specific ids [closed]

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 2 years ago.
Improve this question
There is probably an easy way to do this. Just cant figure it out.
I have a huge dataset with multiple id:s that can have different code (column 2). How do I go about to extract by specific code "x" in this case and also extract all the ids that contains even one x. See image
From your screenshot it seems you are trying to filter IDs excluding code c. If I am correct then use below formula to E2 cell. If my assumption if wrong then please explain how your output is coming.
=IFERROR(INDEX($A$2:$B$12,AGGREGATE(15,6,(ROW($A$2:$A$12)-ROW($A$1))/($B$2:$B$12<>"c"),ROW(1:1)),COLUMN(A$1)),"")
Edit after clarification: Only for Office365 excel.
So, if you have Office365 excel then use below formula as per screenshot
E2=FILTER(A2:A12,ISNUMBER(MATCH(A2:A12,UNIQUE(FILTER(A2:A12,B2:B12="x")),0)))
F2=FILTER(B2:B12,ISNUMBER(MATCH(A2:A12,UNIQUE(FILTER(A2:A12,B2:B12="x")),0)))
If you do not have Office365 then you need to use combinations of few formulas by array entry which will slow your excel performance. Here is array formulas.
E2=IFERROR(INDEX($A$2:$A$12,AGGREGATE(15,6,(ROW($A$2:$A$12)-ROW($A$1))/(ISNUMBER(MATCH($A$2:$A$12,IF($B$2:$B$12="x",$A$2:$A$12,""),0))),ROW(1:1))),"")
F2=IFERROR(INDEX($B$2:$B$12,AGGREGATE(15,6,(ROW($A$2:$A$12)-ROW($A$1))/(ISNUMBER(MATCH($A$2:$A$12,IF($B$2:$B$12="x",$A$2:$A$12,""),0))),ROW(1:1))),"")
Press CTRL+SHIFT+ENTER to evaluate the formula as it is an array formula.

Multiple cell referencing and average [closed]

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 6 years ago.
Improve this question
I'm a student who's currently going through exams and to help revise I'm making a spreadsheet to keep track of all the marks I've got for questions in example questions.
REFER TO SCREENSHOT & SPREADSHEET DOWNLOAD
I need the average percentage correct to be calculated for each topic.
Download of the spreadsheet for you to test
Screenshot of the spreadsheet I've set up
Considering you already have the count of each question in column 'P' then that is helpful.
You can use SUMIF(G:G,O29,J:J)/P29 to calculate that percentage for each cell in column 'Q'. Once you enter that formula into that cell then simply drag it up and down to fill up all your desired cells in column 'Q'.
You may notice that you will run into a DIVISION BY ZERO error. You can avoid this by surrounding the SUMIF function with an IF function that will simply display a blank cell rather than try to calculate anything if the count of questions is ZERO.
EXAMPLE: IF(P29=0 , "" , sumif(...) )
Note: Once you auto drag the equation choose "fill without formatting" to keep your formatting clean.

Resources