IF / COUNTIF statement to provide an overall outcome based on multiple options - excel

I have hit a bit of a wall and it is probably an easy fix for someone. I am trying to place an overall grade on excel based on previous entries.
Range is E73:E88
Possible outcomes on those ranges are PASS / N/A / DEVELOPING / 0.
I am trying to figure out a code to show:
if all entries are 0 or N/A then the overall outcome is NOT GRADED.
if the entries are all PASS or a mix of PASS or N/A then the overall outcome is PASS
if any of the entries have DEVELOPING then the overall outcome is DEVELOPING.
I have been using IF and COUNTIF formula but I cant seem to find the correct outcome so I am unsure if I am using the correct method.
=IF(COUNTIF(E73:E88,"DEVELOPING"),"DEVELOPING",IF(COUNTIF(E73:E88,"PASS"),"PASS",IF(COUNTIF(E73:E88,"0"),"NOT GRADED","PASS")))
Any help will be greatly appreciated.
Thanks

You should use ifna function:
=ifna(if(COUNTIF(E73:E88,"DEVELOPING"),"DEVELOPING",if(COUNTIF(E73:E88,"PASS"),"PASS", "not-graduated")),"not-graduated" )

Related

Need help writing IF Statement

I need some help. I rarely use IF statements in excel, I usually do Index Matches, VLookups etc. So when I came across this, I thought I could come here for some help.
I want to have an IF statement that returns 5 values.
In the picture attached, you'll see 5 levels.
If the value is less than or 0 then 5.
If the value is 0.01 - 5.99 then 4.
If the value is 6 - 12.99 then 3.
If the value is 13 - 29.99 then 2.
If the value is 30 or more then 1.
If anyone can help mem with this, that would be amazing!
Thank You!
It seems to me that this is what you need:
=IF(A8<=0,5,VLOOKUP(A8,$A$1:$B$4,2,TRUE))
I would just go with a vlookup like so:
=vlookup(D2,A4:B8,2,1)
If you are looking for a nested if formula and using the data set shown in the image of your question, then this will work:
=IF(A8=B1,A1,IF(OR(A8=B2,A8<=C2),A2,IF(OR(A8=B3,A8<=C3),A3,IF(OR(A8=B4,A8<=C4),A4,IF(A8=B5,A5,"Out of Range")))))
In this formula, I have used cell A8 as the reference value.
If you do not want to change the direction of your data, then using a nested if statement like the below should work:
If you do not want to use the lookup table, then will be easier to use the LOOKUP function with constants:
=LOOKUP(A1,{0,0.01,6,13,30},{5,4,3,2,1})

How to achieve return of one value with multiple criteria

What I'm trying to achieve: Return one value by multiple criteria (from 2 cells).
How: Intersection of particular row or column.
Based on picture, Row=Units Sold , Column=Years(2011,2012,2013,Total)
I tried using INDEX+MATCH because it sounded like what I'm looking for. But it doesn't allow multiple criteria, or at least I've tried and failed.
I've also tried IF+VLOOKUP, failed again.
All my effort would either return error N/A or #Value , etc.
Searched through this website but I can't seem to find what I'm looking for. I'm sure it's pretty simple, but I'm sort of a beginner at Excel. So, apologies if this question overlaps. And, HELP.
Try:
=INDEX(B2:F18,MATCH(H17,B2:B18,0),MATCH(I17,B2:F2,0))

How to reference a Cell in Excel using a User-Input Number

I'm an intermediate Excel user, so you can assume I know the basics. I've got a table for a game that contains the level, and the experience required to get to that level from level 1. Basically I have the below:
Col A Col B
Level Experience Needed
1. 0
2. 10
3. 58
4. 160
5. 329
...
79. 551,002
80. 568,832
I was trying to make a simple UI in the cells themselves where you can just input your current level, input the level you want to get to, and have a formula calculate (essentially just the exp. required for the level you want minus the experience required to get to the current level)
I've searched and cannot find anything that will help me here. I'm sure there's a way (and probably a stupidly easy one) to do what I'm trying to do, but I am at a loss.
What I pictured in my head was something that just took the number input and put that to the cell reference (eg. input 44 and it would then reference B44)
I was hoping for something in-cell, but if it needs to be code in VisualBasic I can get over it (just not really comfortable programming!)
Thanks in advance for the help!
Edit: Can either be in Excel or Google Sheets, not sure if either is easier/harder than the other.
I put current level in cell E1 and desired level in E2 The following formula will pull the values out of the Experience Needed column and subtract them. Is that what you are looking for?
=INDIRECT("B"&E2+1)-INDIRECT("B"&E1+1)

Excel formula score and award a place - Rank based on multiple parameters

Let me share the problem, where I am trying to decide the winner list comparing multiple parameters:
First of all, I need to compare the fault points. The less you have the better place you get. If the fault points are equal, then I need to compare the time. Comparing the time, the faster you performed the greater place you get (green column represents the right result).
I have used this formula:
=IF(AA16="";"";COUNTIF($Z$16:$Z$24;"<"&Z16)+1+SUMPRODUCT(--($Z$16:$Z$24=Z16);--($AA$16:$AA$24>AA16)))
However, I get a wrong comparison for the time parameter. My guess is that it is either a small issue I am having or the formula itself is completely wrong.
Thanks in advance.
Use this formula instead:
=RANK(Z16,Z$16:Z$24,1)+SUMPRODUCT((Z$16:Z$24=Z16)*(AA$16:AA$24<AA16))
See image for reference:
Looks like this might be helpful. They have an example related to breaking ties that I think will work for your scenario.
Excel Functions: Rank

IF statement and multiplying

I have an IF statement =IF(C7="SR",Rates!$G$20,IF(C7="UC",Rates!$H$20,IF(C7="DC",Rates!$G$20,))))
This works great and gives me the correct rate. The next step I need is to calculate that rate with a value from another cell. A simple =SUM(D6*P6) returns #VALUE!
Can someone please assist with this? Many thanks in advance
What are you trying to do with D6 and P6? (what's the value of both fields? numerical values?)
SUM(D6*P6) should work but I don't see what's the utility (just =D6*P6 would give you the same answer since you're not summing anything).

Resources