Excel Formula with multiple if condition - excel-formula

I have an excel template that is used to conduct the assessment. I have below formula which I use to calculate the assessment scores.
=If(J2="","",If(J2=H2,I2,M2))
If the user skips the question, it will update blank, if the user selects the correct answer, it will update the score mentioned in column "H2". If the user selects an incorrect answer, It will update the negative score mentioned in "M2".
Now, I want to add an additional feature. the formula should also check if the given answer is partially correct and give the 0.5 marks.
I have mentioned the partial correct answer in column "N2". Please assist as to who to update the formula.

You can nest if statements. If I understoody you correctly, try
=If(J2="","",If(J2=N2,0.5,If(J2=H2,I2,M2)))

Related

Macro that finds value given 3 conditions

I need help creating a macro that finds a value given 3 conditions, year, quarter and color. I realize that the easiest way to solve this is by creating a pivot table, but I was asked to solve this using a macro.
Here is what the table looks like, I need to be able to find the value in C12 given the conditions around it.
I appreciate your time and any advice would be pleasantly taken.
You can use the following formula for the worksheet in your question.
=OFFSET($B$2,MATCH($B$12,$B$2:$B$7,0)-1,MATCH($C$11,OFFSET($C$3:$F$3,0,MATCH($C$10,$2:$2,0)-COLUMN($B$2)-1),0)+MATCH($C$10,$2:$2,0)-COLUMN($B$2)-1)

How to add a 'at least X' in a solver solution - Excel

I've developed a solver solution in my excel document where it automatically selects the lowest price in a SUMPRODUCT situation.
To make everything simpler, there is a picture of the actual spreadsheet below. Take into account that =SOMARPRODUTO is actually =SUMPRODUCT in english.
What i'm currently trying to add and haven't been successfull yet, is making a restriction based on another cell.
For example, the solver can only consider solutions from the row [B4:AU4] that have a number higher than the one in the cell [$AW$7].
Perhaps i need to make a if condition and then use the SUMPRODUCT formula?
If the question is not explicit as it should be, please let me know and i'll add more information to it.
You can try this =SOMARPRODUTO((B4:AU4>=$AW$3)*B5:AU5,B6:AU6)
Let me know if it works for you.
You should use a boolean statement to solve your issue,
=IF(CONDITION,PASSED,FAILED)
Basically, just add your SUM function to the PASSED section and your cell verification ($AW$7) to your condition.

Excel 2013: Count unique values or IDs in column B with a condition which needs to be filtered in column A

I am a noob in excel, hence pardon me for any mistakes made.
This question must have been answered before but I couldn't find the right string to make it work for me.
There are around 500 rows and 20 columns (Yes, it is a report)
Column A has a few values (eg: Problem, Change, Request, etc.)
Column B has ticket numbers assigned to each entry. (No, I don't work for a call center, these are Datacenter Operations tickets)
Column B has several duplicate ticket numbers, as many people worked on same ticket OR the ticket was reopened for some reason.
I wish to take a count of unique ticket numbers from Column B when the condition in Column A is Change only.
So if there are 500 ticket number 250 are duplicate for sure, and only 25% of the rest will be Change tickets.
I am not supposed to use a Pivot or filter hence asking this question.
Need a formula to retrieve the count with the condition.
I may put the formula in Sheet2 or at the extreme right column, plz don't worry about it, I will take care of those things.
Many thanks in advance.
Adding to the question,
Let me help you with some data.
Change CRQ1110001
Problem INC1110001
Change CRQ1110001
Problem INC1110001
Change CRQ1110003
Problem INC1110003
Change CRQ1110004
Problem INC1110004
Change CRQ1110004
Change CRQ1110004
Problem INC1110005
Now I wish to only consider Change here without considering duplicate values.
Maybe this helps.
Thanks again.
Based on this website count unique values and with a small change this formula should work, expand the ranges to cover your entire range.
=SUM(IF(FREQUENCY(IF(A2:A10="change",IF(LEN(B2:B10)>0,MATCH(B2:B10,B2:B10,0),""),""), IF(A2:A10="change",IF(LEN(B2:B10)>0,MATCH(B2:B10,B2:B10,0),""),""))>0,1))
Entered with ctrl+shift+enter as it's an array formula.
Note that if you do this over the entire column A:A it will take quite a bit of time to compute as it has to go through a lot of calculations in the array formula.
If your "ticket numbers" in column B are actual numbers then you can use this formula
=SUM(IF(FREQUENCY(IF(A2:A500="Change",B2:B500),B2:B500),1))
confirmed with CTRL+SHIFT+ENTER
If not numeric you need to use a version as per gtwebb's suggestion

Returning multiple values with INDEX and MATCH without VBA

While i have seen this topic answered before i cant seem to understand the solution :(
Here is my worksheet:
https://docs.google.com/spreadsheet/pub?key=0AsCQyX3EZ40SdC1FNFBjVDh6d01iY2g0WnVXOU5GeFE&output=xls
As you can see i need the second INDEX in the first sheet to return the second value looked, but instead (as expected) it shows the first one again.
I am not the best with excel, explain slowly and i will understand fast!
Thanks in advance!
Try this "array formula" in Calculator sheet cell A3
=IFERROR(INDEX(IngredientDB!B$1:B$100,SMALL(IF(IngredientDB!$A$1:$A$100=$B$1,ROW(IngredientDB!$A$1:$A$100)),ROWS(A$3:A3))),"")
confirmed with CTRL+SHIFT+ENTER and copied across and down. When you run out of entries you get blanks - assumes up to 100 rows of data, increase as required
If you wanted to go the pivot table route you can start with this as a base and then customize it to your exact liking.:
Start with your info:
Then add a pivot of your data:
Then set the properties as so and then you can select the search terms, you can also change the settings to allow someone to type it in also:
The result will be as so:

Nesting IF statements in Excel 2010

How do I nest IF statements in Excel 2010? I found my inspiration trying to organize data from Evolus Pencil Support Tickets.
Here is my desired result: I want to nest IF statments to choose between different status levels, such as Fixed, New, Invalid, Done, Duplicate, etc. However, I had to make several tables to achieve this and when I tried to test it, the IF statement only gives me the first choice (Fixed).
Here is the formula to test whether the number is 1-6 and add on the number, and the status level:
=IF(U2="1",
CONCATENATE(VALUE(U2),$V$2,IF(U2="2",
CONCATENATE(VALUE(U2),$W$2,IF(U2="3",
CONCATENATE(VALUE(U2),$X$2,IF(U2="4",
CONCATENATE(VALUE(U2),$Y$2,IF(U2="5",
CONCATENATE(VALUE(U2),$Z$2,IF(U2="6",
CONCATENATE(VALUE(U2),$AA$2,"NO")
The result, however, in the corresponding cells is: Cell is U2 1FixedFALSE Cell is U3 false
Please check out the spreadsheet here
http://win7guruquestions.posterous.com/my-spreadsheet-illustrating-selection-and-if
I hope that you can help me with this. Thanks in advance
the formula posted is missing closing brackets. On the assumption it should be
=IF(U2="1",CONCATENATE(VALUE(U2),$V$2),
IF(U2="2",CONCATENATE(VALUE(U2),$W$2),
IF(U2="3",CONCATENATE(VALUE(U2),$X$2),
IF(U2="4",CONCATENATE(VALUE(U2),$Y$2),
IF(U2="5",CONCATENATE(VALUE(U2),$Z$2),
IF(U2="6",CONCATENATE(VALUE(U2),$AA$2),"NO"))))))
it works, provided values in U2 are entered as strings.
An alternative formula:
=IF(AND(VALUE(U2)>=1,VALUE(U2)<=6),U2&INDEX($V$2:$Z$2,1,VALUE(U2)),"NO")

Resources